Monday, July 16, 2012

Change UUID of (VDI) Virtual Disk in VirtualBox

If you want to duplicate a virtual disk, you can use the Virtual media manager to duplicate a virtual disks. Or, the quick and dirty way, by copying a VDI and then renaming it. However, when you try to add the new disk in your media manager, Virtual Box will complain with the following error:


A hard disk with UUID {xxx...} is already registered.


To solve this problem, go to the command prompt, and type the following:


(on a Windows Host)

C:\>"Program Files\Sun\VirtualBox\VBoxManage" internalcommands sethduuid e:\Your VDI folder\YourVdiskname.vdi


(on a Linux Host)

VBoxManage" internalcommands sethduuid e:\Your VDI folder\YourVdiskname.vdi





No comments:

Post a Comment

Please be courteous, even if you do not share the same view.