无法创建任何 VM。 Vagrant VM 'poweroff' 状态。

Cannot create any VM. Vagrant VM 'poweroff' state.

我有 Mac OS X Capitan 和 Virtualbox 版本 5.0.24。当尝试 运行 vagrant up 我收到错误

A VirtualBox machine with the name 'xxxx' already exists

所以我检查了全局状态,发现它已经存在但处于 'poweroff' 状态。当我尝试恢复它时出现错误。

The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'restoring, running'. The machine is in the
'poweroff' state. Please verify everything is configured
properly and try again.

我重装了不同版本的virtualbox,还是无法解决问题。我试图破坏虚拟机,但是当我 运行 vagrant up 时,我又遇到了同样的问题。此外,我转到 Virtualbox 的 GUI,那里有 none vm(就像它不存在一样)。知道为什么以及如何解决这个问题吗?

当您 运行 vboxmanage list vms

时,虚拟机应该会出现

反正 vagrant 给了你这个名字,你可以做下面的事情

vboxmanage showvminfo 'xxxx'
vboxmanage unregistervm 'xxxx'

第一个命令会让您知道与 VM 关联的文件在哪里。注销 VM 后,您可以将它们从磁盘中删除。

您现在应该可以再次 运行 vagrant up