hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.24k stars 4.44k forks source link

Configuring private_network results vagrant up issuing a failure message due to /sbin/ifdown being called without arguments. #3702

Closed andy-schmidt closed 10 years ago

andy-schmidt commented 10 years ago

Windows 8.1, Vagrant 1.6.0, MinGW via git-bash. A Vagrantfile/ base box compatible with Vagrant 1.5.4 results in the following output with error message:

$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'bigfix/RHE60x64BuildVM'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'bigfix/RHE60x64BuildVM' is up to date... ==> default: Setting the name of the VM: Main_default_1399510227376_94375 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat default: Adapter 2: hostonly ==> default: Forwarding ports... default: 52311 => 62311 (adapter 1) default: 80 => 62312 (adapter 1) default: 22 => 2222 (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key default: Warning: Connection timeout. Retrying... default: Warning: Remote connection disconnect. Retrying... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Setting hostname... ==> 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

Stdout from the command:

Stderr from the command:

usage: ifdown

The Vagrantfile network configuration is as follows:

config.vm.hostname = "localbuild.test"

config.vm.network "private_network", type: "dhcp" config.vm.network :forwarded_port, guest: 52311, host: 62311 config.vm.network :forwarded_port, guest: 80, host: 62312

When the "private_network" is removed from the Vagrantfile, "vagrant up" completes successfully.

mitchellh commented 10 years ago

Fixed in 1.6.1 released soon