Page 1 of 1

Remove HDD by uuid not working

Posted: 5. Dec 2014, 10:25
by talr
Hi

i'm using VBox 4.3.18.

i'm trying to remove an HDD from the Virtual Media Manager via VBoxManage.
the HDD has been detached from any VM, and they do not have any snapshots.

i first list all the available hdd using: VBoxManage list hdds
and try to remove the medium using the command: VBoxManage closemedium disk 88d7c7ce-9c21-4d39-94f5-fdcbec6e7ef7
however, i get an error:

VBOXMANAGE.EXE: error: The given path '88d7c7ce-9c21-4d39-94f5-fdcbec6e7ef7' is not fully qualified
VBOXMANAGE.EXE: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee IUnknown
VBOXMANAGE.EXE: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at l
ine 178 of file VBoxManageDisk.cpp

when i use a fully qualified file name of the disk it works (sometimes...), sometimes the command return ok with no error as if the hdd removed, by i can still see it in "VBoxManage list hdds" and in the Vbox UI.
uuid does not work at all.

the command line help states that uuid are supported:
VBoxManage closemedium disk|dvd|floppy <uuid|filename>

Re: Remove HDD by uuid not working

Posted: 5. Dec 2014, 14:42
by mpack
Try wrapping the UUID in {curly braces}, that being the convention for UUIDs.