Change the UUID of a Virtual Box .vdi file

To change the UUID of a .vdi file run the following command:

VBoxManage internalcommands sethduuid "full path of your .vdi file"

If you need to change the UUID to a specific UUID then add the UUID at the end :

VBoxManage internalcommands sethduuid "/Users/muktadiur/centos.vdi" "fffd5d63-ac8c-411b-acc8-1d960077fc4e "