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/8-Stream container on lxd tryit is not assigned IP #261
Comments
Confirmed macvlan inside centos 8 stream has this issue, also discussed on https://discuss.linuxcontainers.org/t/oracle-and-centos-8-images-networkmanager-not-able-to-manage-macvlan-device/9821 |
So the macvlan issue seems to be because the generated NM connection "System eth0" has a type of Ethernet and NM expects the device type to match, but as its macvlan it doesn't, so the device becomes "unavailable" as no connections can use it. There's a "generic" connection type, but so far I've not been able to coax NM into using the "unavailable" macvlan device. |
This thread seems relevant also: |
@stgraber @monstermunchkin I've not found a way to get macvlan devices working inside a container for Centos 8. My understanding of this issue is that NetworkManager is (correctly) detecting the interface type as macvlan, and then refusing to apply any other connection config except that of I've tried using the "generic" connection type, however this only seems to work with devices that are detected as "generic", of which macvlan isn't one of them. I've had success using the old style network config system (which is still available in centos 8, albeit deprecated), e.g. https://www.thegeekdiary.com/how-to-disable-networkmanager-in-centos-rhel-8/ Its far from ideal, but would there be scope to update our images to use the old style config? This is also likely to solve the other outstanding issue with CentOS 8 veth connections not working on Ubuntu Bionic hosts too (which is apparently a separate issue that NetworkManager is not using the udev workaround to classify the interface as managed). |
Just rechecked on tryit now after our recent image fixes and it's now working properly. |
On the lxd tryit server I ran the following:
Seems the fix #216 was not effective.
Discussed here, @tomponline suggests it's due to the tryit service using
macvlan
nictype.The text was updated successfully, but these errors were encountered: