2013-05-17 148 views
0

我正在使用m1.medium機器類型在Amazon EC2,架構x86_64上安裝Ubuntu Server 12.04.2 LTS。在EC2上運行Ubuntu 12.04上的Vagrant時出現錯誤

要安裝VirtualBox我做

sudo apt-get install virtualbox 

現在,

vagrant init precise32 http://files.vagrantup.com/precise32.box 
vagrant up 

總是停止說

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... 

回答

0

我沒有看到一個錯誤。它會從您輸入的URL中取出該框,然後導入它並開始啓動。一旦完成啓動,您應該能夠將vagrant ssh加入虛擬機。

+0

但它永遠不會啓動。它只是停在「引導虛擬機...」 – vincelake

+0

你檢查過virtualbox的狀態嗎?您應該能夠看到啓動進度。 – bfitzpatrick

0

如果我正確地理解了這個問題,那麼流浪者被困在「啓動虛擬機」並從未真正開始?

嘗試設置環境變量啓用日誌

$ VAGRANT_LOG=DEBUG vagrant up 

http://docs-v1.vagrantup.com/v1/docs/debugging.html

而且,嘗試使用不同的圖像。精確的32圖像可能具有較舊版本的虛擬盒子添加。

相關問題