VirtualBox

Ticket #2901 (closed defect: wontfix)

Opened 5 years ago

Last modified 4 years ago

VirtualBox chokes on non-existing disk images

Reported by: Traumflug Owned by:
Priority: major Component: VM control
Version: VirtualBox 2.0.2 Keywords:
Cc: Guest type: other
Host type: Linux

Description

This was reported downstream:  https://bugs.launchpad.net/ubuntu/+source/virtualbox-ose/+bug/282379

If a registered and attached disk image disappears for some reason, VirtualBox can't recover from this situation. This is a report on the version OSE 2.0.2, non-OSE 1.6.2 behaved the same, IIRC.

Steps to reproduce (all done in the GUI):

1) Create a virtual machine with one disk (image) attached, take a snapshot.

2) Add another disk to the virtual machine, take another snapshot, quit VirtualBox.

3) Remove the second disk's image by some other means, e.g. Nautilus or a shell command. This scenario is common if you archive disk images, receive disk images from others and/or use one image with different machines or even different VM softwares.

4) Start VirtualBox and try to run this machine.

Results expected:

VirtualBox notices the missing disk image and offers to run the machine without the second disk.This should make no headaches for the guest OS, as physical disks can be removed as well.

Actual Results:

1) VirtualBox puts an exclamation mark behind the missing disk's entry in the list of available disks.

2) VirtualBox refuses to run the virtual machine (NS_ERROR_FAILURE (0x80004005)).

3) VirtualBox refuses to run the virtual machine even after detaching the non-existing disk from the virtual machine.

4) VirtualBox doesn't allow to replace the disk registration with some other disk image.

5) VirtualBox doesn't allow to remove the non-existing disk's registration with the virtual media manager..

6) VirtualBox doesn't allow to remove the non-existing disk from the list of available disks in virtual media manager.

7) VirtualBox doesn't allow to go back to the first snapshot. Remember, the first snapshot didn't know about the second disk.

Eventually, the GUI refuses to do anything with this virtual machine (all icons and menus greyed out). You have to quit VirtualBox, go to the command line and edit VirtualBox's configuration files manuall to recover.

Change History

comment:1 Changed 5 years ago by frank

  • Component changed from other to VM control

comment:2 Changed 4 years ago by frank

  • Status changed from new to closed
  • Resolution set to wontfix

Actually I don't agree. The guest should not start if there is at least one snapshot and a virtual hard disk is missing. If you would restore that snapshot then from the guest's point of view it would look like the hard disk vanished while the machine is running and this is NOT possible with physical machines. SATA hotplugging is on our TODO list tough.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use