How do you assign static IP addresses to LXD containers when deploying a unit with Juju?

Hello all.

I’m in a situation where I need to configure static IPs on two LXD containers.

TLDR: I’m hitting a bug when deploying ceph-fs charm in a manually provisioned VMware VM, and I’m facing a bug: LP #2112465, and I’m trying a workaround.

I tried:

lxc network set br0 \
  ipv4.address=10.10.198.0/24 \
  ipv4.dhcp=false \
  ipv4.nat=false

But an error shows up:

Error: Only managed networks can be modified

Does anyone know how to “convince” Juju and LXD to deploy 2 LXD containers with static IPs without having MAAS or DHCP?

Hi @msmarcal ,

Could you please provide some more details about your network setup? Where does bridge br0 come from? Do you need to attach this specific bridge to LXD containers?