前提・実現したいこと
ConohaのVPSにVirtualBox + Vagrantで仮想環境を構築したいのですが、
vagrant up時に以下で処理が止まってしまい、タイムアウトとなります。
default: SSH auth method: private key
どのように対処すればよいでしょうか。
実行環境
ホストOS: CentOS7.4またはUbuntu18.04
VirtualBox: 5.2.10
Vagrant: 2.0.2
発生している問題・エラーメッセージ
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
試したこと
1 Vagrantfileに以下を追記
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--cableconnected1", "on"]
end
2 VirtualBoxの設定を調整
VBoxManage modifyvm 仮想マシン名 --hwvirtex on --vtxvpid on --vtxux on
あなたの回答
tips
プレビュー