Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VirtualBox upgrade trashed my virtual machine [closed]

Tags:

virtualbox

I had Virtual Box 3.2 working fine, emulating 32-bit Windows XP in a 64-bit Windows 7 host. Then I upgraded to VirtualBox 4.0.4, and everything seemed to work (after I installed a couple of things -- USB2.0 support, Guest Additions).
Then I restored a snapshot that was taken under version 3.2, and now I've lost everything. I get the error message:

The selected virtual machine is *inaccessible*. Please inspect the error message shown
below and press the **Refresh** button if you want to repeat the accessibility check:

Could not find an open hard disk with UUID {b0e666ef-1041-415a-8329-876b337e1958}.
Result Code: 
VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)
Component: 
VirtualBox
Interface: 
IVirtualBox {d2de270c-1d4b-4c9e-843f-bbb9b47269ff}

I tried creating a new virtual machine from the vdi file, but it locks up when loading WINDOWS\System32\DRIVERS\lfsfilt.sys. I tried re-installing version 3.2, but I get exactly the same problems.

I have a VirtualBox.xml file in my .VirtualBox directory, and various files (Virtual Dell.xml, Virtual Dell.xml-prev etc.) in .VirtualBox\Machines\Virtual Dell.

Help please! How do I get my virtual machine back?

like image 241
TonyK Avatar asked Mar 06 '11 10:03

TonyK


People also ask

Can you recover a deleted virtual machine in VirtualBox?

Unfortunately , If you didn't configure any backups and deleted both the VM and Disks attached to them , It is highly not possible to recover/restore the VM .

How do I recover deleted files in VirtualBox?

There are two basic VirtualBox VM recovery options in this situation: Boot the VM using some kind of recovery media, access the VHD and copy whatever data you need to another VHD or across the network to a share. Attach the VHD to another VM as a secondary drive, boot this other VM, and recover the data from there.

How do I revert to a previous version of a VirtualBox?

In the list of snapshots, right-click on any snapshot you have taken and select Restore. By restoring a snapshot, you can go back in time. The current state of the machine is lost, and the machine is restored to the exact state it was in when the snapshot was taken.

How do I Uninstal in VirtualBox?

Go to the "Start" (shell), "Contol Panel", "Programs and Features". A list of installed applications will be displayed in alphabetical order. Left click "Oracle VM VirtualBox" so it is selected, then "right click" it and choose "Uninstall" from the menu.


2 Answers

This bug happened to me recently (I assume it's a VirtualBox bug) using snapshots in v4.

I fix'em opening the VirtualBox.xml file and:

  1. Search the UUID of the missing drive (b0e666ef-1041-415a-8329-876b337e1958 in this case), normally will be a tag (notice the />).
  2. Remove the tag which generate the error.
  3. Now, if the problematic HardDisk tag was inside another HardDisk tag (one with open and close tag) reconvert this last tag in one without close.

Sorry, my english it's not good enough for a good explanation, let me show you an example:

Original non-working XML piece:

<HardDisks>
    <HardDisk uuid="{ac511969-288a-44b4-b7ac-df5808c1a4ca}" 
        location="/home/me/.VirtualBox/HardDisks/machine_name.vdi" 
        format="VDI" type="Normal">
        <HardDisk uuid="{e4e44e9d-aad0-4e2f-8ef8-d3d4d64f997f}" 
            location="/home/me/.VirtualBox/Machines/machine_name/Snapshots/{e4e44e9d-aad0-4e2f-8ef8-d3d4d64f997f}.vdi" 
            format="VDI"/>  <!-- Problematic snapshot -->
    </HardDisk>
</HardDisks>

Fixed XML piece:

<HardDisks>
    <HardDisk uuid="{ac511969-288a-44b4-b7ac-df5808c1a4ca}" 
        location="/home/me/.VirtualBox/HardDisks/machine_name.vdi" 
        format="VDI" type="Normal" /> <!-- Notice we've changed this tag and remove his closing tag since it's not more needed -->
</HardDisks>

This at least works for me, I loose the snapshot but recover the virtual machine.

Hope this help you.

like image 167
Terseus Avatar answered Oct 31 '22 20:10

Terseus


in Virtual Media Manager, is the XP VDI disk attached to the virtual machine? If it is not then open settings for the VM and add the VDI in the Storage tab

like image 28
yolo Avatar answered Oct 31 '22 19:10

yolo