-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Networking configuration fails on Ubuntu with systemd > v197 #6653
Comments
Hi @gMagicScott This has been fixed in the master branch. I don't recall the other issue, but I know we fixed it. I was able to successfully bring up an ubuntu 15.10 box just now with virtualbox (using
|
It took more effort than I expected to get Ruby setup to try the latest master branch. Using 038276f, I still get the same error. My current Vagrantfile: Vagrant.configure(2) do |config|
config.vm.box = "boxcutter/ubuntu1510"
config.vm.network "private_network", ip: "192.168.50.4"
end Here's the output I'm getting:
I made a gist of full output from On another note, I tried both the current version of vagrant and the master branch to bring up the box with the network line commented out. Both succeeded. |
Also getting this error with ubuntu 15.10 with vagrant 1.8.1 |
The latter suffer from hashicorp/vagrant#6653
a workaround for hashicorp/vagrant#6653
a workaround for hashicorp/vagrant#6653
In Ubuntu 15.10, systemd now uses "predictable network interface names".
When Vagrant sets up the networking during
vagrant up
, it ends with an error that/sbin/ip addr flush dev eth#{interface} 2> /dev/null
fails.For network setup, currently Ubuntu falls back to the Debian networking capability. The template being used hard codes
eth
followed by a number from theoptions[:interface]
. When I tried it, it compiled toeth2
.The command is failing because there is no interface
eth2
, there aren't any that start witheth
. In my test, the interface you would want isenp0s3
.The only OS that's using these predictable interface names that I know of is Ubuntu 15.10, but there are probably more, or will be in the near future. You can read more on how the predictable names are determined here.
I saw this issue was reported in boxcutter/ubuntu#34, but I don't think it's an issue for the base box to solve.
The text was updated successfully, but these errors were encountered: