Vagrant
+ Chef
でRailsの環境を構築しています。
初回のvagrant up
時は成功するのですが、
Windows上のVagrantでのみ、2回め以降のvagrant up
およびvagrant reload
時に下記のエラーが発生します。
※ 長いので、途中で省略しております。
お手数ですがログの全文はこちらを参照ください。
==> default: Attempting graceful shutdown of VM... ==> 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: 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 default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Remote connection disconnect. Retrying... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Configuring and enabling network interfaces... C:/HashiCorp/Vagrant/embedded/gems/gems/net-scp-1.1.2/lib/net/scp.rb:392:in `await_response_state': use v4.0.0 (RuntimeError) from C:/HashiCorp/Vagrant/embedded/gems/gems/net-scp-1.1.2/lib/net/scp.rb:363:in `block (3 levels) in start_command' from C:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.9.2/lib/net/ssh/connection/channel.rb:311:in `call' from C:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.9.2/lib/net/ssh/connection/channel.rb:311:in `process' from C:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:223:in `block in preprocess' from C:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:223:in `each' from C:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:223:in `preprocess' (略)
Vagrantfile
は以下のとおりです。
Vagrant.configure(2) do |config| config.vm.box = "centos65" config.vm.network "private_network", ip: "192.168.33.10" config.ssh.forward_agent = true # config.vm.provider "virtualbox" do |vb| # vb.gui = true # end config.vm.provision "chef_solo" do |chef| chef.cookbooks_path = "chef/site-cookbooks/" chef.add_recipe "yum" chef.add_recipe "git" chef.add_recipe "node" chef.add_recipe "ruby" end config.omnibus.chef_version = :latest end
使用しているバージョンは下記のとおりです。
- VirtualBox 4.3.30
- Vagrant 1.7.4
※ VirtualBoxを5.0にしても同様の現象が発生しました。
一向にエラーが解消できないので、解決策ご存知の方がいれば教えてくださいm(_ _)m
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/10/05 01:41
2015/10/06 03:44
2015/10/28 01:44