New server, container has no ipv4

Hi. Similiar problem as I have had before.

Brand new vanilla install of Ubuntu Server 22.04
lxd version = 5.0.0

lxc launch images:ubuntu/22.04 container1

… aaand it has no ipv4

is it because of systemd-resolv?

I have tried:
lxc config device override container1 eth0
lxc config device set container1 eth0 ipv4.address 10.219.47.10

also:
lxc network set lxdbr0 raw.dnsmasq=$'port=0\ndhcp-option=option:dns-server,9.9.9.9'

No joy.

What am I missing?

uugghh

I think I got it.

frgn host has their own firewall and provision the external IP on the vps with dhcp

sudo ufw allow in on lxdbr0
lxc restart container1

and now it has an ipv4

This is VMWare, I’m telling you. Why are people still using that junk?

Ah yeah, we have a documentation section covering ufw.

1 Like