Remove HDD by uuid not working

Discussions related to using VirtualBox on Windows hosts.
Post Reply
talr
Posts: 12
Joined: 1. Dec 2014, 18:45

Remove HDD by uuid not working

Post 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>
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Remove HDD by uuid not working

Post by mpack »

Try wrapping the UUID in {curly braces}, that being the convention for UUIDs.
Post Reply