bonsai's blog

ITベンチャー所属。Webエンジニア兼マーケッターです。python習得しようと頑張ってるごく一般的なサラリーマン。※ブログ初心者の為、至らぬ所は..m(_ _)m

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が不安定なので、一回再構築しようかな。