###前提・実現したいこと
vagrant up及びvagrant sshをしたい
###発生している問題・エラーメッセージ
vagrant up に関して
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.
VagrantFileに
config.vm.provider "virtualbox" do |vb| vb.customize ["modifyvm", :id, "--cableconnected1", "on"] end
config.vm.provider :virtualbox do |vb| # Don't boot with headless mode vb.gui = true # # Use VBoxManage to customize the VM. For example to change memory: # vb.customize ["modifyvm", :id, "--memory", "1024"] end
を記述するという解決策を見つけたので試しているところです
vagrant sshに関して
ssh_exchange_identification: Connection closed by remote host
こっちに関してはetc/hosts.allowにsshd:ALLを加えるという対策は行いましたがうまく行きませんでした。
よろしくお願いします!
たまたま似たような話を見かけたけど、こんなboxだったりして?http://qiita.com/temori1919/items/27e080d70b39900b0838
`vb.customize ["modifyvm", :id, "--cableconnected1", "on"] `と同じことですがVirtualBox側からも指定できるのでちゃんとそうなっているか確認してみては。
ホストOS、Vagrantのバージョン、VirtualBoxのバージョン、追加したBOX。 このあたりの情報がわかればば、環境を再現できるので解決できるかもしれません。
逆にいえば、環境がわからないことには詳細な原因を調べるのは困難です。
個人がアップしているような出所不明のboxも複数ありますので、元々のbox自体が壊れていたら、何を設定しても無理です。
まずは、具体的な環境やバージョンを教えてください。
回答2件
あなたの回答
tips
プレビュー