My VM in virtualbox can not start due to this error, I don't want to destroy it and reinstall it again, anyway to recover it ?
There was an error while executing VBoxManage
, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.
Command: ["modifyvm", "319fcce3-e8ff-4b6f-a641-3aee1df6543f", "--natpf1", "delete", "ssh"] Stderr: VBoxManage: error: The machine 'centos64_c6402_1454036461345_59755' is already locked for a session (or being unlocked) VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 493 of file VBoxManageModifyVM.cpp
You need to press "host key" which is written in right bottom corner of VirtualBox window. Looking at your screenshot its Right Ctrl .
So, while in scaled or full screen mode inside VirtualBox installed on Windows, you need to press Right Ctrl + C key combination to exit scaled mode.
1 Answer. This error is thrown because the host memory is not sufficient for the VM to run. Close all the applications running on your host machine and just run the VM. The best option will be to increase the RAM of your system and further increase the RAM provided to the VM.
Running this on the command line unlocked the VM:
vboxmanage startvm <vm-uuid> --type emergencystop
Where <vm-uuid>
is the number in the error message: Command: ["modifyvm", "<vm-uuid>" [...]
. After that I was able to control the VM (start, halt, etc). Using Virtualbox 4.1 on Ubuntu.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With