vagrant upしようとしたら、VBOX_E_INVALID_OBJECT_STATE (0x80bb0007)のエラーが出た時の対処法
備忘録です。
vagrant up
をしようとしたら、以下のエラーがでました。
There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["modifyvm", "cab8ae41-fe92-4cf9-b5f4-1a8bae9da524", "--natpf1", "delete", "ssh"] Stderr: VBoxManage: error: The machine 'vccw.test' 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 531 of file VBoxManageModifyVM.cpp
ロックされてる的な事を言っているので、以下のコマンドを入力したら解消されました。
VBoxManage startvm vccw.test --type emergencystop
vccw.test
は仮想マシーンの名前です。UUIDでも大丈夫とのことです。
最近vagrantが不安定なので、一回再構築しようかな。