Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在EC2上的Ubuntu 12.04上运行Vagrant时出错_Vagrant - Fatal编程技术网

在EC2上的Ubuntu 12.04上运行Vagrant时出错

在EC2上的Ubuntu 12.04上运行Vagrant时出错,vagrant,Vagrant,我使用的是安装在Amazon EC2上的Ubuntu服务器12.04.2 LTS,架构为x86_64,机器类型为m1.medium 要安装virtualbox,我做了 sudo apt-get install virtualbox 现在, 总是停下来说 Bringing machine 'default' up with 'virtualbox' provider... [default] Box 'precise32' was not found. Fetching box from sp

我使用的是安装在Amazon EC2上的Ubuntu服务器12.04.2 LTS,架构为x86_64,机器类型为m1.medium

要安装virtualbox,我做了

sudo apt-get install virtualbox 
现在,

总是停下来说

Bringing machine 'default' up with 'virtualbox' provider...
[default] Box 'precise32' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading or copying the box...
Extracting box...te: 8240k/s, Estimated time remaining: --:--:--)
Successfully added box 'precise32' with provider 'virtualbox'!
[default] Importing base box 'precise32'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...

我看不出有错误。它从您提供的URL中下拉框,导入它,然后开始引导。一旦它完成引导,您应该能够
vagrant ssh
进入虚拟机。

我没有看到错误。它从您提供的URL中下拉框,导入它,然后开始引导。一旦它完成引导,您应该能够
vagrant ssh
进入虚拟机。

如果我正确理解了这个问题,那么vagrant就被困在“引导虚拟机”中,永远不会真正启动

尝试设置环境变量以启用日志记录

$ VAGRANT_LOG=DEBUG vagrant up


另外,尝试使用不同的图像。precise32映像可能具有旧版本的virtual box guest additions

如果我正确理解了这个问题,那么vagrant会被困在“启动VM”中,而从未真正启动过

尝试设置环境变量以启用日志记录

$ VAGRANT_LOG=DEBUG vagrant up


另外,尝试使用不同的图像。precise32映像可能具有旧版本的virtual box guest additions

我也看到了同样的结果(“永远启动VM”)。看起来这不是vagrant的选项:

我也看到了相同的结果(“永远启动VM”)。看起来这不是vagrant的选项:

,但它从未完成引导。它只是在“启动VM…”时停止。您在virtualbox中检查过状态了吗?您应该能够看到引导进度。但它永远不会完成引导。它只是在“启动VM…”时停止。您在virtualbox中检查过状态了吗?您应该能够看到引导进度。