linux - Linux 上的 Vagrant Up 错误

标签 linux vagrant virtualbox

我尝试在我的 Ubuntu 14.04 上运行 vagrant。因此,我执行了以下步骤:

-安装vagrant -安装虚拟机 -为提供者添加框

然后我运行

vagrant up

命令。

运行命令后,我获取了这些输出,然后出现一条错误消息,我无法弄清楚如何解决并正确运行它。

Bringing machine 'default' up with 'virtualbox' provider...

==> default: Checking if box 'udacity/ud381' 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: Forwarding ports...

default: 5000 (guest) => 5000 (host) (adapter 1)

default: 22 (guest) => 2222 (host) (adapter 1)

==> default: Booting VM... There was an error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "0399f946-6a87-4310-a22d-c1a4525ae2f0", "--type", "headless"]

Stderr: VBoxManage: error: The virtual machine 'ud381_default_1463617458900_49294' has terminated unexpectedly during startup with exit code 1 (0x1) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine

我应该怎么做才能修复这些错误?

最佳答案

在 Ubuntu 16.04 上确保卸载任何以前版本的 virtualbox:

sudo apt-get purge virtualbox virtualbox-dkms virtualbox

从 virtualbox.org 下载的重新安装 virtualbox

sudo dpkg -i Downloads/virtualbox-5.1_5.1.22-115126-Ubuntu-xenial_amd64.deb

这为我修复了错误。

关于linux - Linux 上的 Vagrant Up 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37312334/

相关文章:

linux - 如何使用 sed 替换包含整数的行

mysql - 使用 bash 脚本在 CentOS 6 VM (Vagrant) 上安装 MySQL

Vagrant + Ansible 解析超慢

virtual-machine - VBox管理 : error: Failed to create the host-only adapter

linux - 运行 “docker system prune”之后,Docker镜像不再持久/消失。如何使它们再次持久?

python - 我的 python 程序在 Windows 7 中运行良好并打印到控制台,但在 Linux Mint 中出现错误?

linux - 如何在引导时捕获整个内核 panic

python - 如何在 Mac 上安装 VirtualBox SDK

linux - 重定向 stdin 会引发不明确的重定向错误

ubuntu - 是什么原因导致 Magento Cloud CLI 帐户登录不断失败?