Installing Network Manager in privileged LXC container

I have noticed that when I set a privileged container which has network-manager installed, the container loses it’s IP and network connection after a restart.

lxc launch images:debian/buster v3
lxc config set v3 security.privileged true

What can I do to have network-manager in a privileged container?

The container has a bridged interface.

hi xiki.

I hope the picture below will help you.

After installing snapcraft up to snap, you can install network-manager with apt.

Thank you^^