VirtualBox

Opened 14 years ago

Closed 11 years ago

#6877 closed defect (fixed)

Broken if cancel creation snapshot => fixed in SVN

Reported by: Gerasev Andrew Owned by:
Component: other Version: VirtualBox 3.2.2
Keywords: Cc:
Guest type: Windows Host type: Linux

Description

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

Change History (6)

in reply to:  description comment:1 by BobO, 14 years ago

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 by Klaus Espenlaub, 14 years ago

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 by BobO, 14 years ago

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 by Steffen Schaumburg, 13 years ago

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 by Klaus Espenlaub, 11 years ago

Summary: 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 by Frank Mehnert, 11 years ago

Resolution: fixed
Status: newclosed

Fix is included in VBox 4.2.6.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use