Clone VirtualBox Virtual Hard Drive (.vdi file)

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

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.

Notice the two identical sized drives

If you found this useful, please consider leaving a comment or liking us on Facebook or following us on Twitter or subscribing to the RSS feed to have future articles delivered to your feed reader.

Possibly related posts (generated automatically):

  1. Repair Crashed Hard Drive/File System Using fsck!
  2. Free Virtual Drive Software for Windows 7
  3. Install Hackintosh (Mac OS X Snow Leopard) Using VirtualBox on Windows or Ubuntu
  4. Update / install Virtualbox 4.0.8 on Ubuntu 11.04 or 10.10
  5. Install VirtualBox 3.2 on Ubuntu 10.04 Lucid Lynx
  6. VirtualBox Remote Display Using RDP Protocol
  7. Install or Update Virtualbox 4.0 on Ubuntu 10.04, 10.10
  8. 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

has written 1314 posts on this blog.

Meditating towards his "nerdvana", lifehacker is a teacher by the day and a nerdy blogger by the night. He lives to learn and yearns to learn living.

One Comment on “Clone VirtualBox Virtual Hard Drive (.vdi file)”

  • d backup wrote on 29 November, 2011, 5:31

    or Windows Vista

    Like or Dislike: Thumb up 0 Thumb down 0

    [Reply]

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!

*
Your Ad Here

Copyright © 2012 Hack Your Life!. All rights reserved.
Proudly powered by WordPress. Developed by Deluxe Themes