VirtualBox升级破坏了我的虚拟机

Ton*_*nyK 6 virtualbox

我让Virtual Box 3.2正常运行,在64位Windows 7主机中模拟32位Windows XP.然后我升级到VirtualBox 4.0.4,一切似乎都有效(在我安装了一些东西之后 - USB2.0支持,Guest Additions).
然后我恢复了在3.2版本下拍摄的快照,现在我已经丢失了所有内容.我收到错误消息:

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}
Run Code Online (Sandbox Code Playgroud)

我尝试从vdi文件创建一个新的虚拟机,但在加载时会锁定WINDOWS\System32\DRIVERS\lfsfilt.sys.我尝试重新安装版本3.2,但我得到了完全相同的问题.

我的VirtualBox.xml目录中有一个文件.VirtualBox,以及各种文件(Virtual Dell.xml,Virtual Dell.xml-prev等).VirtualBox\Machines\Virtual Dell.

请帮忙!如何恢复虚拟机?

Ter*_*eus 19

我最近发生了这个错误(我认为这是一个VirtualBox错误),使用v4中的快照.

我修复了打开VirtualBox.xml文件的问题:

  1. 搜索丢失的驱动器的UUID(在这种情况下为b0e666ef-1041-415a-8329-876b337e1958),通常是一个标签(注意/>).
  2. 删除生成错误的标记.
  3. 现在,如果有问题的HardDisk标记位于另一个HardDisk标记内(一个具有打开和关闭标记),则将其中的最后一个标记重新转换为不关闭.

对不起,我的英语不太好,不能给出一个好的解释,让我给你举个例子:

原始的非工作XML片段:

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

固定XML片段:

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

这至少对我有用,我放松了快照但恢复了虚拟机.

希望这对你有所帮助.