VirtualBox

14 年 前 建立

12 年 前 結束

#6877 closed defect (fixed)

Broken if cancel creation snapshot => fixed in SVN

回報者: Gerasev Andrew 負責人:
元件: other 版本: VirtualBox 3.2.2
關鍵字: 副本:
Guest type: Windows Host type: Linux

描述

If cancel creation snapshot, then the configuration will remain in the record about the snapshot and virtual machine is broken.

更動歷史 (6)

回覆:  description comment:1 14 年 前BobO 編輯

Replying to gerasev:

If cancel creation snapshot, then the configuration will remain in the record about the snapshot and virtual machine is broken.

I can confirm this bug also exists in VBox 3.2.8, but with a Linux guest under a Windows7 host and the Linux guest is accessed as a VMDK.

A clearer summary of how to reproduce the bug:

  1. Start VBox and the guest.
  1. Start taking a snapshot.
  1. Hit the Cancel button on the dialog before the snapshot has finished being created.
  1. Restart VBox and try to start the guest.
  1. The guest will not start, failing with a fatal error: "{hard disk} cannot be directly attached to the virtual machine because it has 1 differencing child hard disks"

Possibly there is a way to recover VBox after this bug occurs, but I do not know how to do it and I did read the manual completely, especially the sections on VBoxManage and VMDKs.

comment:2 14 年 前Klaus Espenlaub 編輯

I suspect that "fixing" the problem is quite easy: simply delete the (unattached!) differencing disk under the specified hard disk using the Virtual Media Manager. Untested, so create a backup before trying.

comment:3 14 年 前BobO 編輯

Thank you very much Klaus and MichalN too.

Summary:

  1. In the GUI, remove the existing guest VM,
  2. Create a new guest VM (click the New button),
  3. Use the wizard to set up the new VM (be careful, you should probably select Use existing image VMDK if VBox was accessing the guest via VMDK / raw partition),
  4. Change the Settings (it can be found under the Machine menu) per your requirements,
  5. Quit VBox,
  6. Restart VBox,
  7. Run the guest VM.

Do not do anything to VBox on the command-line; especially, do not edit the VBox XML files by hand and do not use VBoxManage. That's all!

comment:4 14 年 前Steffen Schaumburg 編輯

Bug still occurs in VirtualBox 4.0.4. This was on a Gentoo Linux host with a Win7 guest, and whilst I didnt cancel the snapshotting, it auto-cancelled it due to lack of diskspace. Will following the workaround listed in the last commend by vcoder destroy the snapshots of the VM?

comment:5 12 年 前Klaus Espenlaub 編輯

摘要: Broken if cancel creation snapshotBroken if cancel creation snapshot => fixed in SVN

After lots of debugging we could finally find the cause of this problem. A nasty issue which was very very hard to find.

comment:6 12 年 前Frank Mehnert 編輯

狀態: newclosed
處理結果: fixed

Fix is included in VBox 4.2.6.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette