Virtual machine inaccessible

This is for discussing general topics about how to use VirtualBox.
Post Reply
blixt
Posts: 3
Joined: 7. Mar 2008, 11:24

Virtual machine inaccessible

Post by blixt »

Hello. After I closed and reopened VirtualBox, one of the VMs was suddenly inaccessible. The error description is the following:

Code: Select all

Hard disk 'C:\Documents and Settings\a403761\.VirtualBox\VDI\Windows XP.vdi' with UUID {2a321369-7c91-4890-8afd-997fe972e5e0} is already attached to a machine with UUID {05a60796-91c9-46e0-84c9-8adc02c91fef} (see 'C:\Documents and Settings\a403761\.VirtualBox\Machines\Windows XP\Windows XP.xml').

Result Code: E_FAIL (0x80004005)
Component: Machine
Interface: IMachine {31f7169f-14da-4c55-8cb6-a3665186e35e}
Now the funny thing is that I looked in the XML file, and the VM I get the error in is the one with the UUID {05a60796-91c9-46e0-84c9-8adc02c91fef}. So basically I'm getting an error that the hard disk image for the VM is already attached to the VM so it can't be attached to the VM. Catch-22 anyone?

Is there any solution to this?

Host OS: Windows XP
Guest OS: Windows XP
VirtualBox version: 1.5.6


Update
One thing I noticed when comparing the Windows XP.xml file and an XML file for another VM is that for the XP VM, the UUID of the <HardDiskAttachment> tag in the <Hardware> section of the <Machine> is the same as the UUID of the <HardDiskAttachment> tag in the <Hardware> section of the first <Snapshot>. In the other VM XML file, the UUIDs differed. Could this be the cause of the error?
gpilkay
Posts: 3
Joined: 7. Mar 2008, 04:39

Post by gpilkay »

I've had this trouble before too, it can be resolved without loosing everything. Just re-build the machine and when it's time to give ti a hard drive file, give it the existing one. You may have to go to the virtual drive manager and de-list it from the other machine that you'll wipe out. Keep in mind, though, that this does not save your snapshots, just the current disk.
Post Reply