Skip to content

Instantly share code, notes, and snippets.

@epu
Created March 10, 2016 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epu/aefd3972d6ac9c7497ba to your computer and use it in GitHub Desktop.
Save epu/aefd3972d6ac9c7497ba to your computer and use it in GitHub Desktop.
removing floppy drive error log
virtualbox-iso: Removing floppy drive...
==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'win2012r2-datacenter' is already locked for a session (or being unlocked)
==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1030 of file VBoxManageStorageController.cpp
@tejas-shah
Copy link

I have been having this issue since October 2015 and no solutions have been spotted so far. I use virtualbox on a server and if there are 2 or more users logged on to the server at time of image export it fails at this stage.

==> virtualbox-iso: Gracefully halting virtual machine...
virtualbox-iso: Removing floppy drive...
==> virtualbox-iso: Error removing floppy: VBoxManage error: VBoxManage.exe: err
or: Failed to get a console object from the direct session (VBOX_E_INVALID_OBJEC
T_STATE)
==> virtualbox-iso: VBoxManage.exe: error: Details: code VBOX_E_VM_ERROR (0x80bb
0003), component MachineWrap, interface IMachine, callee IUnknown
==> virtualbox-iso: VBoxManage.exe: error: Context: "LockMachine(a->session, Loc
kType_Shared)" at line 326 of file VBoxManageStorageController.cpp
==> virtualbox-iso: Unregistering and deleting virtual machine...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Error removing floppy: VBoxManage error: VBoxMan
age.exe: error: Failed to get a console object from the direct session (VBOX_E_I
NVALID_OBJECT_STATE)
VBoxManage.exe: error: Details: code VBOX_E_VM_ERROR (0x80bb0003), component Mac
hineWrap, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Shared)" at li
ne 326 of file VBoxManageStorageController.cpp

==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Error removing floppy: VBoxManage error: VBoxManage.exe: err
or: Failed to get a console object from the direct session (VBOX_E_INVALID_OBJEC
T_STATE)
VBoxManage.exe: error: Details: code VBOX_E_VM_ERROR (0x80bb0003), component Mac
hineWrap, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Shared)" at li
ne 326 of file VBoxManageStorageController.cpp

==> Builds finished but no artifacts were created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment