我正在尝试在 ubuntu 服务器计算机(vagrant v1.6.3、Virtualbox 4.3.20r96996)上设置 bosh-lite(然后在本地安装 cloudfoundry)。当 vagrant 尝试启动创建的机器时,设置失败,并出现以下错误:
$ cd bosh-lite
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'cloudfoundry/bosh-lite' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
The guest machine entered an invalid state while waiting for it to boot.
Valid states are 'starting, running'. The machine is in the 'poweroff' state.
Please verify everything is configured properly and try again.
If the provider you're using has a GUI that comes with it, it is often helpful to open that and watch the machine, since the GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the VirtualBox GUI is open.
在运行多个虚拟盒实例(包括用于我的 WordPress 开发的无头 Vagrant(特别是 VVV))的系统意外硬关闭后,在 cmd 上使用
vagrant up
后,我收到此错误。
用
vagrant reload
命令解决了它。
多个 WordPress 开发网站现已备份并运行。
转到计算机的 BIOS 设置。然后开启硬件虚拟化。
我使用Linux Mint
PRETTY_NAME="LMDE 6 (faye)"
NAME="LMDE"
VERSION_ID="6"
我遇到了几乎相同的错误。我之前使用过这些 Vagrant 文件,没有任何问题:
==> default: Waiting for machine to boot. This may take a few minutes...
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'poweroff' state. Please verify everything is configured
properly and try again.
我的 Vagrant 安装方法包括从 HashiCorp 官方网站下载 Vagrant 二进制文件并将其复制到“/usr/local”文件夹。这种安装 Vagrant 的方式是我遇到错误的原因。
我通过删除 Vagrant 二进制文件并使用包管理器安装 Vagrant 解决了这个问题。在安装过程中,我注意到,当简单地将 Vagrant 二进制文件放入 $PATH 变量中包含的文件夹中时,有许多依赖项没有安装。
总结:
- remove existing vagrant binary file
- install vagrant with package manager -> apt install vagrant