Before you start, please NOTE: this guide does not cover rootless containers!
On an hypervisor with LXD installed, create a new container, ensuring that -c security.nesting=true -c security.privileged=true
is set:
lxc launch -c security.nesting=true -c security.privileged=true images:fedora/35 my-container
If the container already exists, set this parameter through lxc config
:
lxc config set my-container security.nesting=true
lxc config set my-container security.privileged=true