FAI 5.3.6 stretch: Predictable Network Interface Names

Alexander Bugl alexander.bugl at mpimet.mpg.de
Wed Aug 22 16:54:59 CEST 2018


Hi,

I currently have a problem with FAI version 5.3.6 directly from stretch
regarding Predictable Network Interface Names:

When I boot a VM to be installed I get eth0 as network interface name:

# grep eth0 /var/log/fai/localhost/last/dmesg.log
[    0.990874] vmxnet3 0000:0b:00.0 eth0: NIC Link is Up 10000 Mbps
[    1.170530] vmxnet3 0000:0b:00.0 eth0: intr type 3, mode 0, 3 vectors
allocated

But then the script DEBIAN/30-interface (which is the same as in the
simple examples from
/usr/share/doc/fai-doc/examples/simple/scripts/DEBIAN/30-interface)
stumbles upon a mismatch between the runtime interface name "ens192" and
just quits (and does not create /etc/network/interfaces):

# less /var/log/fai/localhost/last/shell.log
=====   shell: DEBIAN/30-interface   =====
Device "ens192" does not exist.
DEBIAN/30-interface  OK.

I can work around this booting the to be installed VM with kernel option
net.ifnames=0 _and_ booting the installed VM with the same option, then
I have a correctly created /etc/network/interfaces with eth0 in it.

But I'd like to have ens192 (a predictable network interface name).

So the question is: How to get the boot system of FAI (dracut?) to
create not eth0, but ens192 during boot?

With regards, Alex

-- 
Alexander Bugl


More information about the linux-fai mailing list