VagrantとVirtualBoxでVMを作成し、ネットワーク設定を行っています。
[環境]
ホストOS:OS X El Captan
ゲストOS:CentOS7
VirtualBox:5.1.6
Vagrant:1.8.6
enp0s3:NAT
enp0s8:ホストオンリーアダプター
enp0s9:ブリッジアダプター
Vagrant fileの設定
VagrantFile
1config.vm.network "private_network", ip: "192.168.33.10" 2config.vm.network "public_network", type: 'dhcp', bridge: 'en0: Wi-Fi (AirPort)'
vagrant upをすると、以下のエラーが出ます。
The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! # Down the interface before munging the config file. This might # fail if the interface is not actually set up yet so ignore # errors. /sbin/ifdown 'enp0s8' || true # Move new config into place mv '/tmp/vagrant-network-entry-enp0s8-**********-0' '/etc/sysconfig/network-scripts/ifcfg-enp0s8' # Bring the interface up ARPCHECK=no /sbin/ifup 'enp0s8' # Down the interface before munging the config file. This might # fail if the interface is not actually set up yet so ignore # errors. /sbin/ifdown 'enp0s9' || true # Move new config into place mv '/tmp/vagrant-network-entry-enp0s9-**********-1' '/etc/sysconfig/network-scripts/ifcfg-enp0s9' # Bring the interface up ARPCHECK=no /sbin/ifup 'enp0s9' Stdout from the command: Device 'enp0s9' successfully disconnected. Stderr from the command: Error: Connection activation failed.
ちなみにenp0s8の192.168.33.10にはホストOSからPingが通ります。
enp0s9には無線でDHCPからIPアドレスを割り振りたいのですが、できません。
どなたか解決方法をお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2016/10/31 05:14
2016/10/31 10:03