-
Notifications
You must be signed in to change notification settings - Fork 0
recover vm (on virtualbox) uses biosdevnames for LAN interfaces #5
Comments
See URL: https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ |
Adding |
@gdha I got the same issue, but in the other way ... My original system (ubuntu 16.04) got interfaces named enp0s1, but when I boot on the rescue media, I got eth0 and no IP (because I try to force I think there some systemd files missing into the recovery or may be not called during boot. It is a libvirt VM on KVM ppc64le |
@schabrolles I believe ReaR issue rear/rear#1400 could be an advantage to have and https://github.com/gdha/rear-automated-testing/blob/master/templates/BAREOS-with-ISO-biosdevnames.conf#L38 hack could be added automatically... |
@gdha I have solve my issue here: (#1349)
|
See also https://coreos.com/blog/intro-to-systemd-networkd.html
|
Interesting, thanks for the link @gdha I'm still working on my Free time to improve the network part. I'm close to have something functional; but as you said: No Rush. I don't want to push it for the next 2.3 version but for Future ReaR.
There is stilI some bugs and l also need additional test for vlan / bonding. |
@schabrolles can you cross-post (or summarize) the RH argumentation, they require an account to read the full article. |
It is a very (very) "light" explanation .... (which did not convince me by the way); but because they choose this way (as ubuntu, debian and other) we will have to update the way we are dealing with network migration (currently only based on udev persistent rules) ... here it is: Environment
Issue
Resolution The new rules for persistent network device naming were done because the previous method of using the 70-persistent-net.rules file caused a lot of problems. These included requiring a writable root directory, issues when a MAC address changes for any reason (the address is still reserved in udev so an ethX interface without a matching MAC address will be skipped over) and race conditions with the kernel, which also uses ethX for assigning interfaces. Because of the above issues, the upstream developers of systemd/udev have removed the 70-persistent-net.rules functionality and replaced it with the default naming scheme present in Red Hat Enterprise Linux 7. For more detailed information, please visit the upstream URL explaining the full rationale for the naming change at http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ |
the client and server vm are both using eth0 and eth1 as LAN interface names. However, with virtualbox (not with libvirt) the LAN interfaces are the biosdevnames enp0s3 and enp0s8 on the recover vm
Therefore, we need manual to edit
/etc/scripts/system-setup.d/60-network-devices.sh
script and change the eth0 with enp0s3 and eth1 with enp0s8 and then run the script (with bash). With the libvirt vm we do not have this problem. Reason unkown?The text was updated successfully, but these errors were encountered: