Using Ubuntu 20.04 LTS for LXD host with LXD 4.8 installed via snap.
lxd init
used a prior created lxdbr0
bridge network
sudo snap install lxd
lxc network create lxdbr0 --type=bridge ipv4.address=10.10.10.1/24
sudo lxd init
df -hT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs tmpfs 394M 1.1M 393M 1% /run
/dev/vda1 ext4 79G 6.3G 70G 9% /
tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs tmpfs 394M 0 394M 0% /run/user/0
/dev/loop0 squashfs 32M 32M 0 100% /snap/snapd/10492
/dev/loop1 squashfs 56M 56M 0 100% /snap/core18/1932
/dev/loop2 squashfs 72M 72M 0 100% /snap/lxd/18546
tmpfs tmpfs 1.0M 0 1.0M 0% /var/snap/lxd/common/ns
I created 6x LXD containers for various OSes and all but one - the very last one created has IPv4/IPv6 addresses assigned for some reason ? why would centos83stream container not have IPv4/IPv6 assigned ?
lxc launch ubuntu:20.04 ubuntu20
lxc launch images:debian/10 debian10
lxc launch images:centos/7 centos79
lxc launch images:centos/8 centos80
lxc launch images:oracle/8 oracle80
lxc launch images:centos/8-Stream centos83stream
lxc list
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| centos79 | RUNNING | 10.10.10.93 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:fe16:7dfb (eth0) | CONTAINER | 0 |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| centos80 | RUNNING | 10.10.10.101 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:fe64:cf6d (eth0) | CONTAINER | 0 |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| centos83stream | RUNNING | | | CONTAINER | 0 |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| debian10 | RUNNING | 10.10.10.19 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:fef8:ede (eth0) | CONTAINER | 0 |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| oracle80 | RUNNING | 10.10.10.7 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:fefc:8d02 (eth0) | CONTAINER | 0 |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| ubuntu20 | RUNNING | 10.10.10.131 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:feec:546f (eth0) | CONTAINER | 0 |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
lxc network show lxdbr0
config:
ipv4.address: 10.10.10.1/24
ipv6.address: fd42:c19:1dbf:b8d7::1/64
ipv6.nat: "true"
description: ""
name: lxdbr0
type: bridge
used_by:
- /1.0/instances/centos79
- /1.0/instances/centos80
- /1.0/instances/centos83stream
- /1.0/instances/debian10
- /1.0/instances/oracle80
- /1.0/instances/ubuntu20
- /1.0/profiles/default
managed: true
status: Created
locations:
- none
lxc network list
+--------+----------+---------+---------------+--------------------------+-------------+---------+
| NAME | TYPE | MANAGED | IPV4 | IPV6 | DESCRIPTION | USED BY |
+--------+----------+---------+---------------+--------------------------+-------------+---------+
| eth0 | physical | NO | | | | 0 |
+--------+----------+---------+---------------+--------------------------+-------------+---------+
| eth1 | physical | NO | | | | 0 |
+--------+----------+---------+---------------+--------------------------+-------------+---------+
| eth2 | physical | NO | | | | 0 |
+--------+----------+---------+---------------+--------------------------+-------------+---------+
| lxdbr0 | bridge | YES | 10.10.10.1/24 | fd42:c19:1dbf:b8d7::1/64 | | 7 |
+--------+----------+---------+---------------+--------------------------+-------------+---------+
ifconfig lxdbr0
lxdbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.10.1 netmask 255.255.255.0 broadcast 0.0.0.0
inet6 fd42:c19:1dbf:b8d7::1 prefixlen 64 scopeid 0x0<global>
inet6 fe80::216:3eff:feee:6605 prefixlen 64 scopeid 0x20<link>
ether 00:16:3e:ee:66:05 txqueuelen 1000 (Ethernet)
RX packets 20990 bytes 1357591 (1.3 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 23575 bytes 248043853 (248.0 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
on working centos80
lxc exec centos80 -- ip route show
default via 10.10.10.1 dev eth0 proto dhcp metric 100
10.10.10.0/24 dev eth0 proto kernel scope link src 10.10.10.101 metric 100
on not working centos83stream output is empty
lxc exec centos83stream -- ip route show
diff of centos80 vs centos83stream installed packages
diff -u <(lxc exec centos80 -- yum -q list installed | tr -s ' ' | column -t| awk '{print $1}') <(lxc exec centos83stream -- yum -q list installed | tr -s ' ' | column -t| awk '{print $1}')
--- /dev/fd/63 2020-12-13 09:02:39.180946457 +0000
+++ /dev/fd/62 2020-12-13 09:02:39.180946457 +0000
@@ -10,17 +10,19 @@
bzip2-libs.x86_64
ca-certificates.noarch
centos-gpg-keys.noarch
-centos-linux-release.noarch
-centos-linux-repos.noarch
+centos-stream-release.noarch
+centos-stream-repos.noarch
chkconfig.x86_64
coreutils.x86_64
coreutils-common.x86_64
+cpio.x86_64
cracklib.x86_64
cracklib-dicts.x86_64
cronie.x86_64
cronie-noanacron.x86_64
crontabs.noarch
crypto-policies.noarch
+crypto-policies-scripts.noarch
cryptsetup-libs.x86_64
curl.x86_64
cyrus-sasl-lib.x86_64
@@ -37,12 +39,13 @@
diffutils.x86_64
dnf.noarch
dnf-data.noarch
+dracut.x86_64
elfutils-debuginfod-client.x86_64
elfutils-default-yama-scope.noarch
elfutils-libelf.x86_64
elfutils-libs.x86_64
-epel-release.noarch
expat.x86_64
+file.x86_64
file-libs.x86_64
filesystem.x86_64
findutils.x86_64
@@ -51,6 +54,8 @@
gdbm-libs.x86_64
geolite2-city.noarch
geolite2-country.noarch
+gettext.x86_64
+gettext-libs.x86_64
glib2.x86_64
glibc.x86_64
glibc-all-langpacks.x86_64
@@ -61,7 +66,12 @@
gnutls.x86_64
gpgme.x86_64
grep.x86_64
+grub2-common.noarch
+grub2-tools.x86_64
+grub2-tools-minimal.x86_64
+grubby.x86_64
gzip.x86_64
+hardlink.x86_64
ima-evm-utils.x86_64
info.x86_64
initscripts.x86_64
@@ -69,10 +79,14 @@
iproute.x86_64
iptables-libs.x86_64
iputils.x86_64
-jq.x86_64
json-c.x86_64
+kbd.x86_64
+kbd-legacy.noarch
+kbd-misc.noarch
keyutils-libs.x86_64
+kmod.x86_64
kmod-libs.x86_64
+kpartx.x86_64
krb5-libs.x86_64
libacl.x86_64
libarchive.x86_64
@@ -83,8 +97,8 @@
libcap-ng.x86_64
libcom_err.x86_64
libcomps.x86_64
+libcroco.x86_64
libcurl.x86_64
-libcurl-devel.x86_64
libdb.x86_64
libdb-utils.x86_64
libdnf.x86_64
@@ -95,8 +109,11 @@
libffi.x86_64
libgcc.x86_64
libgcrypt.x86_64
+libgomp.x86_64
libgpg-error.x86_64
libidn2.x86_64
+libkcapi.x86_64
+libkcapi-hmaccalc.x86_64
libksba.x86_64
libmaxminddb.x86_64
libmetalink.x86_64
@@ -107,7 +124,6 @@
libnghttp2.x86_64
libnsl2.x86_64
libpcap.x86_64
-libpkgconf.x86_64
libpsl.x86_64
libpwquality.x86_64
librepo.x86_64
@@ -138,29 +154,27 @@
logrotate.x86_64
lua-libs.x86_64
lz4-libs.x86_64
+memstrack.x86_64
mpfr.x86_64
ncurses.x86_64
ncurses-base.noarch
ncurses-libs.x86_64
nettle.x86_64
npth.x86_64
-oniguruma.x86_64
openldap.x86_64
openssh.x86_64
openssh-clients.x86_64
-openssh-server.x86_64
openssl.x86_64
openssl-libs.x86_64
openssl-pkcs11.x86_64
+os-prober.x86_64
p11-kit.x86_64
p11-kit-trust.x86_64
pam.x86_64
passwd.x86_64
pcre.x86_64
pcre2.x86_64
-pkgconf.x86_64
-pkgconf-m4.noarch
-pkgconf-pkg-config.x86_64
+pigz.x86_64
platform-python.x86_64
platform-python-pip.noarch
platform-python-setuptools.noarch
@@ -192,12 +206,14 @@
systemd.x86_64
systemd-libs.x86_64
systemd-pam.x86_64
+systemd-udev.x86_64
trousers.x86_64
trousers-lib.x86_64
tzdata.noarch
util-linux.x86_64
vim-minimal.x86_64
-wget.x86_64
+which.x86_64
+xz.x86_64
xz-libs.x86_64
yum.noarch
zlib.x86_64
centos80 processes
lxc exec centos80 -- ps aufxww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 424 0.0 0.2 264508 2644 pts/0 Rs+ 09:12 0:00 ps aufxww
root 1 0.0 0.6 176540 6300 ? Ss 01:55 0:00 /sbin/init
root 39 0.0 0.5 94012 5528 ? Ss 01:55 0:00 /usr/lib/systemd/systemd-journald
root 49 0.0 0.4 83772 4172 ? Ss 01:55 0:00 /usr/lib/systemd/systemd-logind
dbus 51 0.0 0.2 54140 2600 ? Ss 01:55 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root 52 0.0 1.0 368840 10436 ? Ssl 01:55 0:00 /usr/sbin/NetworkManager --no-daemon
root 61 0.0 0.2 22860 2016 ? Ss 01:55 0:00 /usr/sbin/crond -n
root 62 0.0 0.1 6516 1016 console Ss+ 01:55 0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud console 115200,38400,9600 linux
root 71 0.0 0.4 211556 4908 ? Ssl 01:55 0:01 /usr/sbin/rsyslogd -n
centos83stream processes
lxc exec centos83stream -- ps aufxww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 84 0.0 0.0 264504 2368 pts/0 Rs+ 09:12 0:00 ps aufxww
root 1 0.0 0.1 176576 7216 ? Ss 09:11 0:00 /sbin/init
root 43 0.0 0.1 91924 5604 ? Ss 09:11 0:00 /usr/lib/systemd/systemd-journald
root 45 0.0 0.1 97276 5220 ? Ss 09:11 0:00 /usr/lib/systemd/systemd-udevd
dbus 55 0.0 0.0 54144 2780 ? Ss 09:11 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root 56 0.0 0.1 83780 5088 ? Ss 09:11 0:00 /usr/lib/systemd/systemd-logind
root 61 0.0 0.2 368628 10328 ? Ssl 09:11 0:00 /usr/sbin/NetworkManager --no-daemon
root 71 0.0 0.0 22860 2124 ? Ss 09:11 0:00 /usr/sbin/crond -n
root 72 0.0 0.0 6512 1116 console Ss+ 09:11 0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud console 115200,38400,9600 linux
root 75 0.0 0.1 211552 4444 ? Ssl 09:11 0:00 /usr/sbin/rsyslogd -n
diff of centos80 vs centos83streamās config show expanded
diff -u <(lxc config show centos80 --expanded) <(lxc config show centos83stream --expanded)
--- /dev/fd/63 2020-12-13 09:15:44.037896268 +0000
+++ /dev/fd/62 2020-12-13 09:15:44.037896268 +0000
@@ -1,25 +1,22 @@
architecture: x86_64
config:
- boot.autostart: "true"
image.architecture: amd64
- image.description: Centos 8 amd64 (20201211_07:08)
+ image.description: Centos 8-Stream amd64 (20201213_03:49)
image.os: Centos
- image.release: "8"
- image.serial: "20201211_07:08"
+ image.release: 8-Stream
+ image.serial: "20201213_03:49"
image.type: squashfs
image.variant: default
- limits.memory: 1024MB
- limits.memory.swap: "true"
security.syscalls.blacklist: keyctl errno 38
- volatile.base_image: 7693e677168b04a7339ccd24fc05da1a5ce9e2c59d2a9c060b2aa7cdf9e27be8
- volatile.eth0.host_name: veth5afa6e81
- volatile.eth0.hwaddr: 00:16:3e:64:cf:6d
+ volatile.base_image: 8ff65a3eb95be09488bd1a999e24e5eceb0d76d7a862bad8c0d28a96e27f3635
+ volatile.eth0.host_name: vethd5c33949
+ volatile.eth0.hwaddr: 00:16:3e:f0:43:88
volatile.idmap.base: "0"
volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.last_state.power: RUNNING
- volatile.uuid: b8494936-54c5-4ee2-bc63-a6ce2a1ba68f
+ volatile.uuid: 8fd2fa9e-8cc0-4308-bcf5-916544ebb1b0
devices:
eth0:
name: eth0
If I create a new centos 7.9 container IPs are assigned
lxc launch images:centos/7 centos79-2
lxc list
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| centos79 | RUNNING | 10.10.10.93 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:fe16:7dfb (eth0) | CONTAINER | 0 |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| centos79-2 | RUNNING | 10.10.10.43 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:febe:4abf (eth0) | CONTAINER | 0 |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| centos80 | RUNNING | 10.10.10.101 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:fe64:cf6d (eth0) | CONTAINER | 0 |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| centos83stream | RUNNING | | | CONTAINER | 0 |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| debian10 | RUNNING | 10.10.10.19 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:fef8:ede (eth0) | CONTAINER | 0 |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| oracle80 | RUNNING | 10.10.10.7 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:fefc:8d02 (eth0) | CONTAINER | 0 |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| ubuntu20 | RUNNING | 10.10.10.131 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:feec:546f (eth0) | CONTAINER | 0 |
+----------------+---------+---------------------+----------------------------------------------+-----------+-----------+
now if I create a centos 8.3 image and use the centos 8 to centos 8 stream migration method, all works fine
lxc launch images:centos/8-Stream centos83stream
lxc exec centos83to83stream -- dnf -y install centos-release-stream
lxc exec centos83to83stream -- dnf -y distro-sync
lxc exec centos83to83stream -- cat /etc/redhat-release
CentOS Stream release 8
lxc exec centos83to83stream -- cat /etc/os-release
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream
lxc list
+--------------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+--------------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| centos79 | RUNNING | 10.10.10.93 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:fe16:7dfb (eth0) | CONTAINER | 0 |
+--------------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| centos80 | RUNNING | 10.10.10.101 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:fe64:cf6d (eth0) | CONTAINER | 0 |
+--------------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| centos83stream | RUNNING | | | CONTAINER | 0 |
+--------------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| centos83to83stream | RUNNING | 10.10.10.127 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:fe19:b4f4 (eth0) | CONTAINER | 0 |
+--------------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| debian10 | RUNNING | 10.10.10.19 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:fef8:ede (eth0) | CONTAINER | 0 |
+--------------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| oracle80 | RUNNING | 10.10.10.7 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:fefc:8d02 (eth0) | CONTAINER | 0 |
+--------------------+---------+---------------------+----------------------------------------------+-----------+-----------+
| ubuntu20 | RUNNING | 10.10.10.131 (eth0) | fd42:c19:1dbf:b8d7:216:3eff:feec:546f (eth0) | CONTAINER | 0 |
+--------------------+---------+---------------------+----------------------------------------------+-----------+-----------+
where would I start troubleshooting ?
cheers
George