Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Configuring and enabling network interfaces" fails with ssh error #2614

Closed
mwhahaha opened this issue Dec 9, 2013 · 73 comments
Closed

"Configuring and enabling network interfaces" fails with ssh error #2614

mwhahaha opened this issue Dec 9, 2013 · 73 comments
Labels

Comments

@mwhahaha
Copy link

mwhahaha commented Dec 9, 2013

I just updated to 1.4.0 and when I attempt to start up I'm getting an error when it attempts to configure eth1. This was previously working on 1.3.5. I'm running on OSX using VirtualBox and attempting to start up a centos box.

vagrant up output:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'centos-min'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Fixed port collision for 22 => 2222. Now on port 2200.
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2200 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[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 eth1 2> /dev/null

Stdout from the command:



Stderr from the command:

Vagrantfile:

Vagrant.configure("2") do |config|
  config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box"
  config.vm.box = "centos-min"
  config.vm.hostname = "puppet-client"
  config.vm.network :private_network, ip: "192.168.101.20"
  config.ssh.forward_agent = "true"
  config.ssh.forward_x11 = "true"
  config.vm.provision :shell, :path => "bootstrap/puppetclient.sh"
end

When I log into the box, eth1 exists but doesn't have an ifcfg-eth1 configuration file.

When vagrant up is run with debug, here's the ERROR trace when it quits.

ERROR vagrant: /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/communicators/ssh/communicator.rb:86:in `execute'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/communicators/ssh/communicator.rb:96:in `sudo'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/guests/redhat/cap/configure_networks.rb:26:in `block (2 levels) in configure_networks'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/util/retryable.rb:17:in `retryable'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/guests/redhat/cap/configure_networks.rb:25:in `block in configure_networks'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/guests/redhat/cap/configure_networks.rb:21:in `each'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/guests/redhat/cap/configure_networks.rb:21:in `configure_networks'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/guest.rb:88:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/guest.rb:88:in `capability'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/providers/virtualbox/action/network.rb:123:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/providers/virtualbox/action/clear_network_interfaces.rb:26:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/providers/virtualbox/action/prepare_nfs_settings.rb:14:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builtin/synced_folders.rb:68:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builtin/synced_folder_cleanup.rb:28:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:118:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/providers/virtualbox/action/prepare_forwarded_port_collision_params.rb:30:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builtin/env_set.rb:19:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builtin/provision.rb:52:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:13:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/providers/virtualbox/action/set_name.rb:48:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builder.rb:116:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:69:in `block in run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/util/busy.rb:19:in `busy'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:69:in `run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builtin/call.rb:51:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builder.rb:116:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:69:in `block in run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/util/busy.rb:19:in `busy'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:69:in `run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builtin/call.rb:51:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builder.rb:116:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:69:in `block in run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/util/busy.rb:19:in `busy'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:69:in `run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builtin/call.rb:51:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builtin/call.rb:57:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builtin/call.rb:57:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/builder.rb:116:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:69:in `block in run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/util/busy.rb:19:in `busy'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/action/runner.rb:69:in `run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/machine.rb:147:in `action'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'
@jeremyfelt
Copy link
Contributor

I'm getting the same error with the same CentOS box and Vagrant 1.4.0. Still collecting details.

@tmatilai
Copy link
Contributor

tmatilai commented Dec 9, 2013

Please run with --debug option and gist the output.

@tmatilai
Copy link
Contributor

tmatilai commented Dec 9, 2013

But with the info provided it seems that /sbin/ifdown eth1 call fails. The code was introduced by #2450.

@nickanderson
Copy link
Contributor

I was just about to report the same issue.
Vagrant 1.4.0
Virtualbox 4.3.4r91027
Guest OS: Centos 6.4

Environment you can reproduce with
http://d1p7n4ueskxxum.cloudfront.net/enterprise-getting-started/vagrant_env-201311171314.tar.gz

vagrant up policyserver produces
https://gist.github.com/nickanderson/7882454

@mwhahaha
Copy link
Author

mwhahaha commented Dec 9, 2013

Here's my debug log, https://gist.github.com/mwhahaha/7882462

@jeremyfelt
Copy link
Contributor

My debug output: https://gist.github.com/jeremyfelt/7882501

@lukedemi
Copy link

Same issue here: https://gist.github.com/lukedemi/7884896

Vagrant 1.4.0
CentOS 6.4
VirtualBox 4.3.4 r91027

Relevant portion of Vagrantfile:

    app.vm.provider "virtualbox" do |v|
      v.name = "app"
      v.customize ["modifyvm", :id, "--memory", 5120]
      v.customize ["modifyvm", :id, "--ioapic", "on"]
      v.customize ["modifyvm", :id, "--cpus", "4"]
      v.customize ["modifyvm", :id, "--natnet1", "10.0.2.0/24"]
    end

    app.vm.network "private_network", ip: '10.0.3.15'

@tmatilai
Copy link
Contributor

Thanks for all the debug logs. This should be easily reproducible.

@makern
Copy link
Contributor

makern commented Dec 10, 2013

The code change which seems to have introduced this is in 1ad756d

-              machine.communicate.sudo("/sbin/ifdown eth#{interface} 2> /dev/null", :error_check => false)
+              # The interface should already be down
+              machine.communicate.sudo("/sbin/ifdown eth#{interface} 2> /dev/null")

While the comment is correct that the interface is down at this point, running

/sbin/ifdown eth1

results in an error of

usage: ifdown <device name>

on CentOS 6.5 for me. Simple fix is to just add :error_check => false back in?

@makern
Copy link
Contributor

makern commented Dec 10, 2013

To be more precise, the interface is not just down at that point it's actually missing and not configured, i.e. #{network_scripts_dir}/ifcfg-eth1 doesn't exist which is probably why ifdown fails.

@mitchellh
Copy link
Contributor

I agree with your assessment @makern. Reading through this code it doesn't make any sense that that ifdown would really ever succeed unless there is some fluke. I've re-added error_check: false

@makern
Copy link
Contributor

makern commented Dec 10, 2013

Great, thanks!

@tmatilai
Copy link
Contributor

The stack traces show that the error comes from line 26. Same commit/PR, but earlier block. -> Reopening.

@tmatilai tmatilai reopened this Dec 10, 2013
@makern
Copy link
Contributor

makern commented Dec 10, 2013

You are right @tmatilai, should have checked this more closely. Adding error_check: false on both places works for me.

@tmatilai
Copy link
Contributor

Yeah, might not make sense to retry multiple times in the first block either. But I haven't had time to test this myself, so didn't make a PR for that. Feel free to do so. =)

makern added a commit to makern/vagrant that referenced this issue Dec 10, 2013
mitchellh added a commit that referenced this issue Dec 11, 2013
guests/redhat: Don't error if ifdown fails [GH-2614]
@mitchellh
Copy link
Contributor

Should be fixed with #2628 :) Closing againn.

@jfilip
Copy link
Contributor

jfilip commented Dec 11, 2013

FWIW, this issue only seems to affect the initial creation of a VM. A VM that has already been created will still be able to be brought up fine but destroying the VM and recreating it produces this error. I've replicated this behaviour both on my MacBook Pro and my Fedora 20 workstation.

@sarahgerweck
Copy link

Will we see a point release for this? I'd like to update but running with a home-grown Vagrant package isn't a good option for me.

@fsimmend
Copy link

+1 for a point release.

@thpham
Copy link

thpham commented Dec 12, 2013

would be great to have a new release or somewhere we can download a nightly build ?

@tmatilai
Copy link
Contributor

Sure the release comes soonish, but if this is blocking you, you can always apply the patches directly into <vagrant_install_dir>/embedded/gems/gems/vagrant-1.4.0/. (This is of course not a good idea in general :))

@frayedknot
Copy link

@mikelaspina FWIW, As a workaround, I set that network to auto_config: false and I then used shell provisioning to take care of it.

@quasiben
Copy link

@frayedknot, can you describe the shell provision you do? I'm getting this error on vagrant 1.7.2 centos 6.6

@quasiben
Copy link

should this issue be re-opened? It seems to keep cropping up as far back as 1.4?

@sidewinder12s
Copy link

I am also getting a hang.

vagrant 1.7.2
virtualbox 4.3.24
windows 8.1
centos 7

Says that it assumes that this command failed to run: /sbin/ifup enp0s8

I was trying to configure a private network with DHCP and telling virtualbox that it is an internal network.

@anton-kasperovich
Copy link

Same...

Vagrant 1.7.2
VirtualBox 4.3.26r98988
MacOSx 10.10.2
Ubuntu precise64

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:
stdin: is not a tty

Downgrade to 1.7.0 helped

@mazjs
Copy link

mazjs commented Apr 13, 2015

Having the same problem with Vagrant 1.7.2 (centos 6.6).

Error output:

default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
GuestAdditions 4.3.24 running --- OK.
==> 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!

 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:

Mine is a packaged box. First time if I use any given default box it works fine. When I try to package it as a box and run the box from local the above problem shows up.

@istvan-ujjmeszaros
Copy link

I have to fix this issue manualy after every box update, which is really annoying.
These are the steps I make:

]$ vagrant ssh
]$ sudo su -

]$ rm -rf /etc/udev/rules.d/70-persistent-net.rules 
]$ rm -rf /etc/sysconfig/network-scripts/ifcfg-eth1

]$ vim /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes

]$ exit
]$ exit

]$ vagrant reload
]$ vagrant ssh

]$ sudo su -
]$ vim /etc/sysconfig/network-scripts/ifcfg-eth1

# you will see the Vagrant generated code
# remove what you put in there; leave the generated stuff

]$ exit
]$ exit

]$ vagrant reload

@mazjs
Copy link

mazjs commented Apr 23, 2015

Sorry forgot to update this:

Actually, yah, almost the same thing I did too to make the network connection work. However, I think my case is a bit different. I have used a repackaged box which caused this issue. If I remove /etc/udev/rules.d/70-persistent-net.rules before packaging the box; I do not face this issue. I'm trying vagrant/ packaging it from windows 7.

Hope this helps.

Thanks.

@skyler
Copy link

skyler commented Apr 25, 2015

@istvan-ujjmeszaros your solution worked for me. Yosemite 10.10.3, Vagrant 1.7.2, VirtualBox 4.3.26, Centos 6.5 final.

@ghost
Copy link

ghost commented Apr 25, 2015

FWIW, I worked around this by avoiding the key replacement altogether. I instead used a "config.ssh.private_key_path = File.expand_path()" directive in the Vagrantfile.

With that change, v1.7.2 is working fine.

@ghost
Copy link

ghost commented Apr 25, 2015

I should also note that in an earlier provisioning step, I update /etc/sysconfig/network-scripts/ifcfg-eth0 to set "ONBOOT=yes". I leave Adapter 1 in "NAT" mode for Vagrant in the source box/vm.

I've been fine since making those changes.

@holms
Copy link

holms commented May 12, 2015

Would be nice if anyone could solve this finally?? Fresh box from veewee template, which I've converted to CentOS 7.1 doesn't work either got the same problem.

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

/usr/sbin/biosdevname --policy=all_ethN -i bash: line 3: /usr/sbin/biosdevname: No such file or directory

Stdout from the command:



Stderr from the command:

bash: line 3: /usr/sbin/biosdevname: No such file or directory

I've tried to install biodevname package (yes. rpm exists), I've tried to set param for bootloader to stop using biosdevname.. nothing helps.

Here's CentOS7 box: https://github.com/holms/vagrant-centos7-box/releases

@holms
Copy link

holms commented May 12, 2015

@mitchellh Some progress finally:

Taken from here:
http://unix.stackexchange.com/questions/81834/how-can-i-change-the-default-ens33-network-device-to-old-eth0-on-fedora-19

Added two parameters in kickstart, to bootloader section:

bootloader --location=mbr --driveorder=sda --append="net.ifnames=0 biosdevname=0"

And here's the next issue:

==> otrs: 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/ifup eth2

Stdout from the command:

ERROR    : [/etc/sysconfig/network-scripts/ifup-eth] Error, some other host already uses address 10.0.1.100.


Stderr from the command:

@holms
Copy link

holms commented May 13, 2015

Some progress in here... I've removed udev rule, and added biosdevname package holms/vagrant-centos7-box@030375653

  config.vm.network "private_network", ip: opts[:private_ip], :adapter => 2

This is fully working for me :)

@ghost
Copy link

ghost commented May 25, 2015

Hi all, I have been banging my head against this for days now, trying all combinations of removing the udev rule 70-persistent-net.rules, adding all kinds of configuration to the network script at ifcfg-eth1, removing it and so on. Whenever I packaged the virtualbox machine and used it as a base box to spawn a new VM, I would be getting this:

==> 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!

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:

All that using VirtualBox 4.3.28, Vagrant 1.7.2 and a CentOS 6.5 image.

The solution that finally worked for me was to remove if cfg-eth1 and linking the udev rules file to /dev/null like so:

sudo ln -sf /dev/null /etc/udev/rules.d/70-persistent-net.rules

@oknate
Copy link

oknate commented Jun 2, 2015

thanks, yakarij! Your solution worked for me!

sudo rm /etc/udev/rules.d/70-persistent-net.rules
sudo ln -sf /dev/null /etc/udev/rules.d/70-persistent-net.rules

then rebuild the base box.

@fehomeh
Copy link

fehomeh commented Sep 12, 2015

Cheers yakarij, I had the same problem with CentOS-6.7 (2.6.32-573.3.1.el6.x86_64) within Vagrant 1.7.4 and VirtualBox 5.0.2r102096 and problem still was there, your decision helped a lot! Thanks!

windperson added a commit to windperson/vagrant_docker_env that referenced this issue Mar 27, 2016
@xrbd
Copy link

xrbd commented Apr 3, 2016

+1 for jakarij's solution.

The 'ln -sf /dev/null /etc/udev/rules.d/70-persistent-net.rules' was the magic for me.

Vagrant 1.8.1 on Win 7 64 bit
Scientific Linux release 6.7 (Carbon) Kernel 2.6.32-431.el6.x86_64 inside Virtualbox Version 5.0.16

@kzw
Copy link

kzw commented May 22, 2016

This problem shows up when I package a ubuntu 16.04 because by default this distribution does not use ethX any more. Altougth there are ways to make it use ethX, is it possible to pass in the parameter from vagrant file so that we can change this pattern to enp0sX

Or even better, vagrant should figure this out by itself.

@kzw
Copy link

kzw commented May 22, 2016

0505771 might be a fix for this but my version 1.8.1 does not seem to have this fix. How do I make a new vagrant binary from source?

@josegreyes
Copy link

i am having the same issue as @kzw does. Is specifying a different O/S a workaround for this issue?

@mpictor
Copy link

mpictor commented Aug 26, 2016

Another variant. Haven't found a solution yet...

==> 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!

cat /sys/class/net/bonding_masters/address

Stdout from the command:

cat: /sys/class/net/bonding_masters/address: Not a directory


Stderr from the command:


@asifiqbal
Copy link

asifiqbal commented Sep 9, 2016

I am seeing this error too

[default] GuestAdditions 5.0.26 running --- OK.
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
Vagrant attempted to execute the capability 'configure_networks'
on the detect guest OS 'linux', but the guest doesn't
support that capability. This capability is required for your
configuration of Vagrant. Please either reconfigure Vagrant to
avoid this capability or fix the issue by creating the capability.

TL;DR

I am using vagrant-1.8.5 on host ubuntu 16.04

@jkobus
Copy link

jkobus commented Apr 17, 2018

anyone who is looking for a solution when sitting on ubuntu 16.04 with vagrant 1.8: installing vagrant from deb package (vagrant 1.9.8 for example) fixes this issue.

@ghost
Copy link

ghost commented Mar 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests