tomp
(Thomas Parrott)
January 1, 2021, 8:15am
2
Yes there was a fix for veth devices added to our images recently see CentOS 8 Stream container not assigned IPv4/IPv6 addresses
However there is some ongoing discussion in that thread about getting it to work on a Ubuntu bionic host.
Also I note you are actually using macvlan and not veth and for this case there is an issue open to address this (hopefully it will be similar to the fix for veth).
See
opened 01:08PM - 23 Dec 20 UTC
closed 02:33AM - 16 Jun 21 UTC
On the [lxd tryit](https://linuxcontainers.org/lxd/try-it) server I ran the foll… owing:
```
root@tryit-precise:~# lxc launch images:centos/8-Stream centos8stream
Creating centos8stream
Starting centos8stream
root@tryit-precise:~# lxc list centos8stream
+---------------+---------+------+------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+---------------+---------+------+------+-----------+-----------+
| centos8stream | RUNNING | | | CONTAINER | 0 |
+---------------+---------+------+------+-----------+-----------+
root@tryit-precise:~# lxc image ls
+-------+--------------+--------+----------------------------------------+--------------+-----------+----------+------------------------------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCHITECTURE | TYPE | SIZE | UPLOAD DATE |
+-------+--------------+--------+----------------------------------------+--------------+-----------+----------+------------------------------+
| | 6940ae22b743 | no | Centos 8-Stream amd64 (20201222_07:08) | x86_64 | CONTAINER | 126.81MB | Dec 23, 2020 at 2:41am (UTC) |
+-------+--------------+--------+----------------------------------------+--------------+-----------+----------+------------------------------+
root@tryit-precise:~# lxc exec centos8stream bash
[root@centos8stream ~]# cat /etc/udev/rules.d/86-nm-unmanaged.rules
ENV{ID_NET_DRIVER}=="veth", ENV{NM_UNMANAGED}="0"
```
Seems the fix https://github.com/lxc/lxc-ci/pull/216 was not effective.
Discussed [here](https://discuss.linuxcontainers.org/t/1-6-lxd-containers-not-assigned-ipv4-ipv6-addresses), @tomponline suggests it's due to the tryit service using `macvlan` nictype.
1 Like