-
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
CentOS 7.0 + VMware Provider + Vagrant 1.6.5 = Failure #4558
Comments
you're bumping into what's called Predictive Network Interface Naming. You can disable that when building the base box, but that's the only a viable workaround I know of. |
How do you disable it when building a base box? I'm using Packer and I think I'm hitting this problem. |
There's multiple options to disable it, you can read about the feature at [1]. I chose the kernel-parameter option which means you need to change two things in your packer builds:
|
This is a major issue, and needs a better solution. Consistent Network Device Naming is the future, and it would be nice for the VMWare plugin to catch up with the times. It's been in Fedora for quite some time now, and is a real problem for me with regards to my development workflow and CentOS 7. |
This isn't actually an issue with the VMware provider, but instead with Vagrant core itself. The guest for RHEL/Cent needs to be udpated to detect this and handle it. |
From this article: Using this fix in the image makes networking behave predictably:
|
@mitchellh point me to the part of the vagrant codebase where you think this needs to be fixed, i'll fix it myself, it doesn't seem like anyone else is going to address this. |
The following SSH command responded with a non-zero exit status. /sbin/ifdown ens33 Stdout from the command: ERROR : [/etc/sysconfig/network-scripts/ifdown-eth] Device ens33 has MAC address 00:0C:29:3E:2D:9C, instead of configured address 00:0C:29:59:C4:97. Ignoring. |
it seems vagrant 1.7.2 appends to the right ifcfg file now for centos7, but it's appending the config 3 times and not removing the default config, it should probably just open the file for write |
Hey folks, Just did a bunch of research into this issue, and I have some updates for you. Using the latest Vagrant and VMware plugins, the error message as reported by @mattstep is still reproducible on I managed to track it down to a file leaked from the bootstrapping process. Even with no additional network interfaces, it shows up at
The hard-coded MAC address in there is the problem - it was generated based on the interface present during bootstrapping, but each new VM is going to boot with its own set of devices with their own hardware addresses. I've confirmed that removing that file and rebooting the VM causes the MAC address error to go away and everything to behave as expected. It looks like this issue was fixed recently for chef's boxes: chef/bento#321 - it can be fixed in a similar way for other boxes. So given all this, I'm going to close this as a box-specific issue - feel free to lobby for reopening if you believe there's still a Vagrant-level problem here.
This is true - it happens in the error case thanks to the fact that there's a |
I've already seen #4195 and #4171, and the issue persists.
I happen to know that, for whatever reason, the default name of the ethernet interface is
eno16777728
instead ofeth0
.The text was updated successfully, but these errors were encountered: