Logo
Blog: Change UUID of Virtual Drive (VDI) in VirtualBox

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
 
Blog Index