今回は実際にVagrantを使って仮想マシンを立ち上げます。…
VagrantでBoxを作成し、そのBoxからVMを作成したところエラーが出たので、対処法をメモしておきます。
vagrant upでVMを起動すると以下の様なエラーがでました。
1 2 3 4 5 6 7 8 9 10 11 | The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! ARPCHECK=no /sbin/ifup eth1 2> /dev/null Stdout from the command : Device eth1 does not seem to be present, delaying initialization. Stderr from the command : |
eth1 などと書いてあるのでネットワーク関係の問題のようです。
以下のサイトを参考に設定を変更します。
参考サイト
macで作られたvagrant boxをもらったときに出るネットワークエラーの対処法
vagrant sshでvmにログインします。
1 | vagrant ssh |
ログイン後以下のコマンドを実行
1 | sudo ln -s -f /dev/null /etc/udev/rules .d /70-persistent-net .rules |
VMからログアウトして、vagrantを再起動。
1 | vagrant reload |
これで、エラーが出力されなくなりました。