-
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
Host only adapter cannot be configured when its name not is a standard eth* name #4288
Comments
I have get the same error on my Mac: ip link set eth1 down Stdout from the command: Stderr from the command: Cannot find device "eth1" the soft version is: |
From Linux guest perspective, The following distributions already switched to
Before Vagrant fixes this in code, an easy temporary workaround is to pass |
This is fixed now. |
(in master). I agree with @terrywang we need to make Vagrant more systemd-aware in the future. But for a 1.6.4 release I think this will work fine. |
@mitchellh: Sorry, but this won't work for me with vagrant version
|
@denderello Have you tried to pass |
I think that while the bug is not fixed this issue must be open. |
@terrywang helps with your image, but not on my own one. If I use the parameter there vagrant won't even be able to connect to the machine. :( |
Can't test `ping` because of a Vagrant bug <hashicorp/vagrant#4288> (closed but it seems not yet fixed). <https://github.com/terrywang/vagrantboxes/blob/master/archlinux-x86_64.md> via <https://wiki.archlinux.org/index.php/Vagrant#Base_Boxes_for_Vagrant>.
Can't test `ping` because of a Vagrant bug <hashicorp/vagrant#4288> (closed but it seems not yet fixed). Gem installs are borked (the executable is only readable by root), so we have to install as vagrant. <https://github.com/terrywang/vagrantboxes/blob/master/archlinux-x86_64.md> via <https://wiki.archlinux.org/index.php/Vagrant#Base_Boxes_for_Vagrant>.
When you configure a Vagrantfile to set up a Host Only Adapter in a distro that not use standard eth names the "vagrant up" script stops and give an error.
The config line is:
config.vm.network "private_network", ip: "192.168.33.10"
And the output error:
The interface name in this case is enp0s8 not eth1.
If you wish, you can reproduce:
$ vagrant init ogarcia/archlinux-201408-x64
Edit Vagrantfile to add: config.vm.network "private_network", ip: "192.168.33.10"
$ vagrant up
The text was updated successfully, but these errors were encountered: