即使在 Vagrant halt/reload 命令之后,VirtualBox Headless Frontend 进程也不会停止

VirtualBox Headless Frontend process wont stop even after Vagrant halt/reload command

之前来自 Vagrant 的进程 运行 不是 stopped/killed 在 运行 Vagrant halt/reload 之后,这反过来又给我这个错误。

Command: ["startvm", "c76a8bec-7a40-47c9-b01f-1c8b2b0a7def", "--type", "headless"]

Stderr: VBoxManage.exe: error: The VM session was closed before any attempt to power it on VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component SessionMachine, interface ISession

我很确定这是因为进程 运行 因为当我通过任务管理器终止进程并重新运行命令时它可以正常工作。似乎是什么导致进程未被删除?还是 Vagrant halt/reload 实际上没有阻止他们?

在 Virtualbox 6.1 和 Vagrant 2.2 中使用 Windows10

我在两台不同的 Windows 10 台机器上看到过这种行为。即使不使用 Vagrant 也会发生这种情况;有时无头虚拟机进程根本不会退出。我在 VirtualBox 6.1 之前从未见过它,我怀疑它只是 VirtualBox 中的一个错误。