unregistervm with empty drives

This is for discussing general topics about how to use VirtualBox.
Post Reply
kihjin
Posts: 71
Joined: 18. Nov 2008, 21:30
Primary OS: Ubuntu other
VBox Version: OSE self-compiled
Guest OSses: Ubuntu, Windows XP

unregistervm with empty drives

Post by kihjin »

I've noticed that unregistervm doesn't work if the vm has "empty" drives:

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): Empty

Code: 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
The machine doesn't really have any medium attachments, should this behavior really be expected?
Post Reply