unregistervm with empty drives
Posted: 4. Nov 2010, 01:23
I've noticed that unregistervm doesn't work if the vm has "empty" drives:
VBOX 3.2.10
showvminfo
The machine doesn't really have any medium attachments, should this behavior really be expected?
VBOX 3.2.10
showvminfo
Code: Select all
Storage Controller Name (0): a
Storage Controller Type (0): PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 2
Storage Controller Port Count (0): 2
a (0, 0): Empty
a (0, 1): EmptyCode: Select all
VBoxManage unregistervm foobar
Oracle VM VirtualBox Command Line Management Interface Version 3.2.6_OSE
(C) 2005-2010 Oracle Corporation
All rights reserved.
ERROR: Cannot unregister the machine 'foobar' because it has 2 medium attachments
Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Machine, interface IMachine, callee nsISupports
Context: "UnregisterMachine(uuid, machine.asOutParam())" at line 164 of file VBoxManageMisc.cpp