Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu 流浪汉不工作了_Ubuntu_Vagrant_Digital Ocean_Vagrant Provision - Fatal编程技术网

Ubuntu 流浪汉不工作了

Ubuntu 流浪汉不工作了,ubuntu,vagrant,digital-ocean,vagrant-provision,Ubuntu,Vagrant,Digital Ocean,Vagrant Provision,当我在digitalocean服务器(ubuntu)上运行vagrant up命令时,它会显示以下错误。此命令在本地运行正常,但在服务器上不运行 $ 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", "

当我在digitalocean服务器(ubuntu)上运行
vagrant up
命令时,它会显示以下错误。此命令在本地运行正常,但在服务器上不运行

$ 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", "d2015e22-d634-46d6-9de5-9ca5e9ecea38", "--natpf1", "delete", "ssh", "--natpf1", "delete", "tcp9100", "--natpf1", "delete", "tcp9101", "--natpf1", "delete", "tcp9102", "--natpf1", "delete", "tcp9103", "--natpf1", "delete", "tcp9104", "--natpf1", "delete", "tcp9105"]

Stderr: VBoxManage: error: The machine 'LaunchKit_default_1473257270586_51004' 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

VirtualBox认为您的虚拟机仍在运行

  • 它可能由一个进程持有 运行ps-ef | grep-i“vbox”并终止与VM关联的进程(如果有)

  • 如果找不到进程,请强制VBox停止VM

    VBoxManage controlvm LaunchKit_default_1473257270586_51004 poweroff