Pocket-E
Jan15

Change UUID of Virtual Drive (VDI) in VirtualBox

Author // Jim Categories // Quick Notes

I often need to spin up multiple instances of the same OS snapshot in VirtualBox. If you simply make a copy of an existing virtual drive (.vdi) file and then try to add it to your virtual media manager it will complain that a harddisk with the same UUID already exists.

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

In order to reset the UUID on your new disk, I use the following command:

 
C:\>"Program Files\Sun\VirtualBox\VBoxManage" internalcommands sethduuid e:\win_7_office2007_CLEAN\win_7_trash.vdi

Result:

 
VirtualBox Command Line Management Interface Version 3.0.10
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
 
UUID changed to: 32475885-c5cf-4560-8ffa-dcc2a9a74ee3
 

About the Author

Jim

Jim loves hanging out with his friends and having a good time. I mean..he would if he had any friends. But Jim's a loner; A brilliant, misunderstood loner.

Comments (1)

  • Paul Chabot
    26 September 2011 pm30 17:28 |

    This is great. The higher search results are a mishmash of answers that dont work. This is the solution. Plan and simple, thanks!

Leave a comment

You are commenting as guest. Optional login below.


Cancel Submitting comment...