Fix “VBoxManage: error: Cannot register the hard disk … because a hard disk … already exists”

If you get an error like this when running a vboxmanage command:

VBoxManage: error: Cannot register the hard disk 'disk.vdi' {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} because a hard disk 'disk.vdi' with UUID {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} already exists

You can change the UUID of the hard disk:

vboxmanage internalcommands sethduuid disk.vdi

Or you may bypass it by using the given UUID instead of the hard disk vdi file. For example:

vboxmanage modifyhd {6bc03a41-794b-4a84-adaf-789436919417} --compact

Note: vboxmanage is for GNU/Linux and Windows, in Mac OS X it’s VBoxManage.



You might also like

Create a bootable Ubuntu USB drive from an ISO in Ubuntu
The first thing we need to do is download an Ubuntu ISO file. The second one is plugin the USB drive...

Hide Mac OS X Recovery partition
Sometimes the Mac OS X Recovery partition can be seen because it's mounted automatically on boot. This...

Ubuntu: Fix “The disk drive for /tmp is not ready yet or not present”
Adding explicitly the /tmp to fstab solves the problem. Just add this to your /etc/fstab file:tmpfs...

Backup and restore hard drive with “dd”
Look for the hard drives device with mount or sudo fdisk -l and unmount it. In my case it's going to...

  1. hi guys,
    im trying to convert .vmdk to .vdi by following command:
    vboxmanage clonehd “Parcel Dev Master-disk1.vmdk” “Parcel Dev Master-disk1.vdi” –format vdi
    but i got error like cannot register to hard disk as the UUID already exists.
    i dont know what is the exact reason of this error.
    plz help me to fix this by exact solution.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.