Hi,
I’ve installed snap and the LXD package on my Fedora 32 system.
Networking is controlled via systemd-networkd
and systemd-resolved
. I have a bridge br0
on the system, and local networking works properly.
I let lxd init
create the default lxdbr0
bridge for when I want/need a container to be behind NAT, but I also want containers to be able to attach directly to my local network and receive DHCP addresses from my router.
However, the containers set up this way seem to still be getting the NAT’d addresses even when I specify the correct network:
lxc launch images:kali --network=br0
jon@akane $ lxc list
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
+-----------------+---------+-------------------+-----------------------------------------------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+-----------------+---------+-------------------+-----------------------------------------------+-----------+-----------+
| supreme-herring | RUNNING | 10.2.2.105 (eth0) | fd42:2900:fe9a:98e4:216:3eff:fe89:2faf (eth0) |
CONTAINER | 0 |
+-----------------+---------+-------------------+-----------------------------------------------+-----------+-----------+
This should have had a 10.1.1.0/24 address.
I also get non-sensical output like this:
jon@akane $ lxc network show br0
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
config: {}
description: ""
name: br0
type: bridge
used_by:
- /1.0/instances/supreme-herring
managed: false
status: ""
locations: []
~
jon@akane $ lxc network show lxdbr0
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
config:
ipv4.address: 10.2.2.1/24
ipv4.nat: "true"
ipv6.address: fd42:2900:fe9a:98e4::1/64
ipv6.nat: "true"
description: ""
name: lxdbr0
type: bridge
used_by:
- /1.0/instances/supreme-herring
- /1.0/profiles/default
managed: true
status: Created
locations:
- none
The container shows it’s using both profiles even though I explicitly set it to use only one.
Any ideas what is going on?