VirtualBox

Ticket #9584 (new defect)

Opened 3 years ago

Last modified 3 years ago

vboxmanage closemedium disk broken: "The object is not ready", worked in 3.x

Reported by: virtualboxbug Owned by:
Priority: major Component: virtual disk
Version: VirtualBox 4.1.2 Keywords: closemedium
Cc: Guest type: Windows
Host type: Windows

Description (last modified by frank) (diff)

VBoxManage closemedium disk deleteme.vdi --delete

gives

VBoxManage.exe: error: The object is not ready
VBoxManage.exe: error: Details: code E_ACCESSDENIED (0x80070005),
  component Medium, interface IMedium, callee IUnknown
Context: "FindMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType,
  pMedium.asOutParam())" at line 174 of file VBoxManageDisk.cpp

The same result with full path to the vdi or without the extension; in fact whatever I write as the disk name I get the same error. It worked in 3.x and the vdi can be removed using the GUI. I can't use --delete when unregistering the VM because I want to keep the OS disk.

MAYBE RELATED:

some other guy at  http://daniel.hepper.net/blog/ got

$ VBoxManage list vms
"" {b68ed7a7-6e72-4f16-a438-8775cd80d9b3}
$ VBoxManage unregistervm {b68ed7a7-6e72-4f16-a438-8775cd80d9b3} --delete
VBoxManage: error: The object is not ready
VBoxManage: error: Details: code E_ACCESSDENIED (0x80070005),
  component Machine, interface IMachine, callee nsISupports
Context: "Delete(ComSafeArrayAsInParam(aMedia),
  pProgress.asOutParam())" at line 175 of file VBoxManageMisc.cpp
Segmentation fault

some other guy at  http://forums.virtualbox.org/viewtopic.php?f=7&t=38150

Simply unregistering the machine without detaching the drives first seems to work, however unregistering the machine with the '--delete' flag gives:

Code: Select all   Expand viewCollapse view
    VBoxManage: error: The object is not ready
    VBoxManage: error: Details: code E_ACCESSDENIED (0x80070005),
  component Machine, interface IMachine, callee nsISupports
    Context: "Delete(ComSafeArrayAsInParam(aMedia),
  pProgress.asOutParam())" at line 167 of file VBoxManageMisc.cpp
    Segmentation fault (core dumped)

Change History

comment:1 Changed 3 years ago by frank

  • Description modified (diff)
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use