virtualbox - virtualbox 中的虚拟机已锁定 session (或正在解锁)

标签 virtualbox

由于此错误,我在 virtualbox 中的虚拟机无法启动,我不想销毁它并重新安装它,无论如何都要恢复它?

执行 Vagrant 使用的 CLI VBoxManage 时出现错误 用于控制 VirtualBox。命令和 stderr 如下所示。

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

最佳答案

在命令行上运行此命令解锁了虚拟机:

vboxmanage startvm <vm-uuid> --type emergencystop

哪里<vm-uuid>是错误消息中的数字:Command: ["modifyvm", "<vm-uuid>" [...] 。之后我就能够控制虚拟机(启动、停止等)。 在 Ubuntu 上使用 Virtualbox 4.1。

关于virtualbox - virtualbox 中的虚拟机已锁定 session (或正在解锁),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35169724/

相关文章:

linux-kernel - 在 18.04.1-Ubuntu 下的 VirtualBox 中构建最新的 linux 内核时出错

virtualbox - 如何使单个virtualbox窗口全屏

command-line-interface - 未知子命令 : 'execute' when using guestcontrol option

linux - Virtualbox无法启动虚拟机

windows - 以太网上的 SocketCAN

vagrant - 如何解决 Vagrant 无法在 OS X El Capitan 上启动 VirtualBox 的问题?

docker - 如何为每个使用不同框的多个提供程序编写Vagrantfile?

networking - Virtualbox - 配置两个虚拟机相互通信/主机和互联网

assembly - 如何在自定义操作系统中的程序集中关闭 acpi?

networking - 连接两台虚拟机