VirtualBox 升级毁掉了我的虚拟机

发布于 2024-10-20 16:10:50 字数 1459 浏览 7 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

迷途知返 2024-10-27 16:10:50

我最近在使用 v4 中的快照时遇到了这个错误(我认为这是 VirtualBox 的错误)。

我修复了打开 VirtualBox.xml 文件并:

  1. 搜索丢失驱动器的 UUID(在本例中为 b0e666ef-1041-415a-8329-876b337e1958),通常是一个标签(注意 />)。
  2. 删除产生错误的标签。
  3. 现在,如果有问题的硬盘标签位于另一个硬盘标签(带有打开和关闭标签的硬盘标签)内,则将最后一个标签重新转换为不关闭的标签。

抱歉,我的英语还不够好,无法很好地解释,让我给你看一个例子:

原始的非工作 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>

这至少对我有用,我丢失了快照但恢复了虚拟机。

希望这对您有帮助。

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.

若水般的淡然安静女子 2024-10-27 16:10:50

在虚拟媒体管理器中,XP VDI 磁盘是否连接到虚拟机?如果不是,则打开 VM 设置并在“存储”选项卡中添加 VDI

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

[浮城] 2024-10-27 16:10:50

另一种选择是插入 Hiren's BootCD 的 ISO 并使用浏览器/文件管理器之一磁盘访问

BootCD 还具有 Windows 98 + XP 的迷你版本

another option is to plug in the ISO of Hiren's BootCD and use one of the Browsers / File Managers for disk access

the BootCD also has mini versions of Windows 98 + XP

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文