Unable to discard snapshot to remove VM
Posted: 3. Oct 2009, 16:27
Hello.
I want to remove guest OS on VirtualBox, but I can't remove it.
The error message says that I can't remove it because it has a snapshot.
So, I try to discard the snapshot, but it failed.
In this time, the error message says that the disk has more than one child harddisk.
(What does "child harddisk" mean?
The VM has only one snapshot which I tried to discard.)
How can I remove the snapshot & remove the VM?
I no longer need the VM, the disk which it used and the snapshot.
Regards.
--- Information ---
Host: Open Solaris
Software: VirtualBox 3.0.6 r52128
$ uname -a
SunOS ex5800 5.11 snv_111b i86pc i386 i86pc Solaris
$ VBoxManage unregistervm dev_ubuntu --delete
VirtualBox Command Line Management Interface Version 3.0.6
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
ERROR: Cannot unregister the machine 'dev_ubuntu' because it has 1 snapshots
Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Machine, interface IMachine, callee nsISupports
Context: "UnregisterMachine(uuid, machine.asOutParam())" at line 294 of file VBoxManage.cpp
$ VBoxManage snapshot dev_ubuntu discard snap_20091003
VirtualBox Command Line Management Interface Version 3.0.6
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
0%...FAILED
Error: failed to discard snapshot. Error message: Hard disk '/export/home/admin/.VirtualBox/HardDisks/dev_ubuntu.vdi' has more than one child hard disk (7)
I want to remove guest OS on VirtualBox, but I can't remove it.
The error message says that I can't remove it because it has a snapshot.
So, I try to discard the snapshot, but it failed.
In this time, the error message says that the disk has more than one child harddisk.
(What does "child harddisk" mean?
The VM has only one snapshot which I tried to discard.)
How can I remove the snapshot & remove the VM?
I no longer need the VM, the disk which it used and the snapshot.
Regards.
--- Information ---
Host: Open Solaris
Software: VirtualBox 3.0.6 r52128
$ uname -a
SunOS ex5800 5.11 snv_111b i86pc i386 i86pc Solaris
$ VBoxManage unregistervm dev_ubuntu --delete
VirtualBox Command Line Management Interface Version 3.0.6
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
ERROR: Cannot unregister the machine 'dev_ubuntu' because it has 1 snapshots
Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Machine, interface IMachine, callee nsISupports
Context: "UnregisterMachine(uuid, machine.asOutParam())" at line 294 of file VBoxManage.cpp
Code: Select all
$ VBoxManage showvminfo dev_ubuntu
VirtualBox Command Line Management Interface Version 3.0.6
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
Name: dev_ubuntu
Guest OS: Ubuntu
UUID: 39cbc183-05e7-4254-9b42-f7fe09d12c68
Config file: /export/home/admin/.VirtualBox/Machines/dev_ubuntu/dev_ubuntu.xml
Memory size: 128MB
VRAM size: 12MB
Number of CPUs: 1
Boot menu mode: message and menu
Boot Device (1): DVD
Boot Device (2): HardDisk
Boot Device (3): Not Assigned
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: off
PAE: off
Time offset: 0 ms
Hardw. virt.ext: on
Nested Paging: off
VT-x VPID: off
State: powered off (since 2009-10-03T13:53:43.740000000)
Monitor count: 1
3D Acceleration: off
Floppy: empty
SATA: enabled
IDE Controller: PIIX4
DVD: empty
NIC 1: MAC: 0800273DD5D7, Attachment: Internal Network 'intnet', Cable connected: on, Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
UART 1: disabled
UART 2: disabled
Audio: disabled
Clipboard Mode: Bidirectional
VRDP: disabled
USB: enabled
USB Device Filters:
<none>
Shared folders: <none>
Guest:
Statistics update: disabled
Snapshots:
Name: snap_20091003 (UUID: 0f151052-5b2f-4157-beee-a109452bf3d9)
VirtualBox Command Line Management Interface Version 3.0.6
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
0%...FAILED
Error: failed to discard snapshot. Error message: Hard disk '/export/home/admin/.VirtualBox/HardDisks/dev_ubuntu.vdi' has more than one child hard disk (7)