2016-04-03 21 views
0

Core i3でUbuntu 15.10 64bitを使用しています。私はVagrant 1.8.1とVirtualBoxをインストールしました。Vagrantで実行中のubuntu/trusty32を取得できません

私は次のようでした:

$ vagrant box add ubuntu/trusty32 
$ vagrant init ubuntu/trusty32 
$ vagrant up 

vagrant upを行った後、私は、以下に示すエラーが発生します。 VirtualBoxを開くと、システムが起動してユーザー名とパスワードを待っていることがわかります。

注:hashicorp/precise32を迷惑メールで実行することに問題はありません。 ubuntu/trusty32との問題のみがあります。

~/vagrant$ vagrant up 
Bringing machine 'default' up with 'virtualbox' provider... 
==> default: Importing base box 'ubuntu/trusty32'... 
==> default: Matching MAC address for NAT networking... 
==> default: Checking if box 'ubuntu/trusty32' is up to date... 
==> default: Setting the name of the VM: vagrant_default_1459678892518_13508 
==> 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: 22 (guest) => 2222 (host) (adapter 1) 
==> default: Booting VM... 
==> default: Waiting for machine to boot. This may take a few minutes... 
    default: SSH address: 127.0.0.1:2222 
    default: SSH username: vagrant 
    default: SSH auth method: private key 
Timed out while waiting for the machine to boot. This means that 
Vagrant was unable to communicate with the guest machine within 
the configured ("config.vm.boot_timeout" value) time period. 

If you look above, you should be able to see the error(s) that 
Vagrant had when attempting to connect to the machine. These errors 
are usually good hints as to what may be wrong. 

If you're using a custom box, make sure that networking is properly 
working and you're able to connect to the machine. It is a common 
problem that networking isn't setup properly in these boxes. 
Verify that authentication configurations are also setup properly, 
as well. 

If the box appears to be booting properly, you may want to increase 
the timeout ("config.vm.boot_timeout") value. 

私は再び$ vagrant upを与え、これは私が

~/vagrant$ vagrant up 
Bringing machine 'default' up with 'virtualbox' provider... 
==> default: Checking if box 'ubuntu/trusty32' is up to date... 
==> default: VirtualBox VM is already running. 

得たものである私も$ vagrant sshを試してみましたが、私は次のようです。

~/vagrant$ vagrant ssh 
ssh_exchange_identification: read: Connection reset by peer 

これは私のVagrantfile

誰も私は問題が何であるかを知っているだろうか?

+0

あなたの 'Vagrantfile'を投稿してください。' $ vagrant init ubuntu/trusty32'の後で修正しましたか? –

+0

いいえ、私はそれに何も変更しませんでした。 Vagrantfileはinitコマンドで生成されました。 – robomon

答えて

1

あなたは

$ vagrant reload 

または

$ vagrant halt && vagrant up 

を試してみて、あなたはより良い運を持っているかどうかを確認することができます。

私はちょうどあなたの正確な一連のステップを試して、それは私のために働いた。また、ボックスのデフォルトのタイムアウトは300秒(5分)ですので、何か変なことがあります。これに

# config.vm.provider "virtualbox" do |vb| 
# # Display the VirtualBox GUI when booting the machine 
# vb.gui = true 
# 
# # Customize the amount of memory on the VM:  
# vb.memory = "1024" 
# end 

:...

変更、これを上記のコマンドが動作しない場合は、VirtualBoxのインターフェイスを介して、それを起動してみてくださいすることができ、または変更することによって、あなたのVagrantfileは、次のようにGUIが表示されることが持っています:

config.vm.provider "virtualbox" do |vb| 
    # Display the VirtualBox GUI when booting the machine 
    vb.gui = true 

# # Customize the amount of memory on the VM:  
# vb.memory = "1024" 
end 

もう一度$ vagrant upを試してください。表示される新しいウィンドウ/ GUIには、追加情報が含まれている場合があります。

上記のすべてが失敗した場合は、再度マシンをシャットダウンする前に、あなたのvagrantディレクトリ内のファイルvagrant_up.logにデバッグフラグと出力との内容が、マシンを起動します

$ vagrant up --debug > vagrant_up.log 2>&1 && vagrant halt 

を試すことができます。結果のログをここに投稿することができます。

EDIT

この回答のコメントを通じてより多くのトラブルシューティングの後、この画像は、投稿されました:

vb.gui

Virtualboxの/浮浪者は、ブートを継続するために、ネットワークアダプタを待っていることを示し、どのシーケンス。

もう一度ネットワークインターフェイスを有効にするためにVagrantfileを変更することでこれを解決できます。

、ブートにマシンを許可する必要があり、あなたのVagrantfileconfigセクションに以下の1行として追加:私も同じ問題に直面していた

config.vm.network "private_network", ip: 192.168.30.10 
+0

お返事ありがとうございます。しかし、私は成功しませんでした。 oyuがログから問題を見つけることができるかどうか教えてくださいhttp://pastebin.com/KrHbNXg5 – robomon

+0

@robomon GUIで起動するとどうなりますか? –

+0

私はこのhttp://pastebin.com/qvefc1agを取得するgem/ruby​​エラー。 'vb.gui = true'セクションの行を適切にコメント解除していないと思われるので、Rubyエラーがあると確信していません。 – robomon

0

。私は仮想化を有効にするためにBIOSを変更しようとしました。

関連する問題