Vagrant - up时出现error--vm内存不足

问题

退出VM,再进入时,画面显示

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["modifyvm", "74e2a381-79e2-43c0-a75b-a3cec691babcdefg", "--natpf1", "delete", "ssh"]

Stderr: VBoxManage.exe: error: Code E_FAIL (0x80004005) - Unspecified error (extended info not available)
VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 529 of file VBoxManageModifyVM.cpp

原因

内存不足,vm冥想中
此时ssh也连接不上,reload也无法启动

解决

通过virtualbox的管理工具关闭
管理者模式启动Powershell

PS C:\Program Files\Oracle\VirtualBox>  .\VBoxManage.exe controlvm 74e2a381-79e2-43c0-a75b-a3cec691babcdefg poweroff
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
 vagrant up

可以正常重新启动

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章