Virtualbox : change the UUID of a virtual disk

To change the UUID of a virtual disk:

VBoxManage internalcommands sethduuid <filepath> [<uuid>]

Examples#

  • With a vdi disk : VBoxManage internalcommands sethduuid disk.vdi
  • With a vmdk disk and choosing the UUID : VBoxManage internalcommands sethduuid disk.vmdk e4f44ef2-524a-1d28-b74b-f7fea9bc855
Share