Configure network interface in CentOS 8.4

I run CentOS 8 LXD containers on CentOS 8 host.

I have the containers configured to have a static IP address and use network-scripts for configuration. This has been working OK.

I recently updated the host and one container system from CentOS 8.2 to 8.4. When I start the container, it fails to configure
the network interface. Another container, running CentOS 8.2, with essentially identical network configuration starts and configures without problem.

Here’s what I see:

$ ifup eth0 (actually running as root; markdown gobbles # as formatting)
Error: Connection activation failed: No suitable device found for this connection (device lo not available because device is strictly unmanaged).

$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
19: eth0@if20: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 00:16:3e:d4:c4:27 brd ff:ff:ff:ff:ff:ff link-netnsid 0

$ nmcli con
NAME UUID TYPE DEVICE
eth0 5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03 ethernet –

$ nmcli dev
DEVICE TYPE STATE CONNECTION
eth0 ethernet unmanaged –
lo loopback unmanaged –

$ cat ifcfg-eth0
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME=eth0
DEVICE=eth0
ONBOOT=yes
IPADDR=192.168.20.33
PREFIX=24
GATEWAY=192.168.20.1
IPV6_DISABLED=yes
DNS1=192.168.20.1
DNS2=75.75.75.75
DNS3=8.8.8.8
DEFROUTE=yes

Any suggestions?

There appears to be a bug in NetworkManager-1.30.0. I downgraded to NetworkManager-1.26.0 and things work.

1 Like

Ah, that’s good to know!