Nested VM not available in LXD stable?

I have created a ubuntu VM (cloud variant). When I set “security.nesting=true” for the VM, I get this:

Error: Invalid config: Unknown configuration key: security.nesting

This is my command:

lxc config set testing security.nesting=true

Am I doing something wrong? Or is nesting variable not available for VMs?

Security.nesting is container only setting as it doesn’t make sense for VMs which have their own kernel and thus allow running containers inside them in any case.

If both host kernel and guest kernel are recent enough then you can do VM nesting too on amd64.

1 Like

Oh, I thought that setting applies to both containers and VMs.

So, is it not possible to disable nesting on VMs? (preventing the creation of VMs inside a VM)