LoginSignup
4
4

More than 5 years have passed since last update.

Vagrant1.4.0でCentOS6.5(Redhat系VM)のprivate_networkがうまく設定されない

Posted at

Vagrant1.4.0でprivate_networkを設定したCentOS6.5のVMを立ち上げようとしたら以下のエラーが出た。
結果、vagrant sshでは繋がるけど、private_networkが設定されるはずのeth1がゲストに存在しなくてIPでsshできない。

[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] Configuring and enabling network interfaces...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

/sbin/ifdown eth1 2> /dev/null

Stdout from the command:



Stderr from the command:

Vagrant1.4.0かつRedhat系のOSで発生するバグだった
https://github.com/mitchellh/vagrant/issues/2614

すぐ直したい場合は
<Vagrantインストールディレクトリ>/embedded/gems/gems/vagrant-1.4.0/plugins/guests/redhat/cap/configure_networks.rb
をGithubの最新版にすればOK

4
4
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4