Clone VirtualBox Virtual Hard Drive (.vdi file)
If you want to make a copy of your existing virtual box virtual hard drive (.vdi) file, you cannot just make a copy and expect VirtualBox to add it via the Virtual Media Manager. If you try doing so, it is going to throw and error saying that the UUID of the drive being added is identical to that already existing in the library. There are multiple solutions to this problem:
Approach 1: Use the clonehd command over existing virtual drive file to duplicate it to a new drive. At the command prompt do the following. While I did test these commands on Ubuntu Lucid, I would expect them to be identical over all platforms (Windows, Snow Leopard etc.)
VBoxManage clonehd <name_of_input_hd> <name_of_output_hd>
You can optionally use the UUID as the input filename, and you must not include “<>” while giving the file name.
Approach 2: For people who already copied the virtual drive (.vdi) to a new file. Use the following command to change the UUID, after which you should be able to add the new drive to your media library.
VBoxManage internalcommands sethduuid <filename>
Now just use the media manager to add the new cloned drive.
You might also like
|Free Virtual Drive Software for Windows 7 SlySoft Virtual...||Install Hackintosh (Mac OS X Snow Leopard) Using VirtualBox on Windows or Ubuntu If you have...||Transfer Ubuntu Windows Dual Boot Installation to New Hard Drive One might need...||Repair Crashed Hard Drive/File System Using fsck! Well I just...|