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.
Possibly related posts (generated automatically):
- Repair Crashed Hard Drive/File System Using fsck!
- Free Virtual Drive Software for Windows 7
- Install Hackintosh (Mac OS X Snow Leopard) Using VirtualBox on Windows or Ubuntu
- Update / install Virtualbox 4.0.8 on Ubuntu 11.04 or 10.10
- Install VirtualBox 3.2 on Ubuntu 10.04 Lucid Lynx
- VirtualBox Remote Display Using RDP Protocol
- Install or Update Virtualbox 4.0 on Ubuntu 10.04, 10.10
- Install Ubuntu inside Windows with VMware or Virtual Box
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... | Update / install Virtualbox 4.0.8 on Ubuntu 11.04 or 10.10 VirtualBox... | $63: Western Digital 1 TB USB 2.0 Desktop External Hard Drive Amazon's 10%... |
About the Author
One Comment on “Clone VirtualBox Virtual Hard Drive (.vdi file)”
Write a Comment
Gravatars are small images that can show your personality. You can get your gravatar for free today!







or Windows Vista
Like or Dislike:
0
0
[Reply]