madsurgeon
(David Andel)
February 14, 2022, 7:47pm
1
I am thinking of having a nested structure of containers on which someone could work having access only to the first level container and not to the host.
That structure would then have to be deployed to another host, on bare metal, so that the first level container would become the host OS.
Is that doable in any way?
How would I proceed?
TCB13
February 16, 2022, 11:32am
2
Most certainly, what you’re looking for is nested containers.
https://ubuntu.com/blog/nested-containers-in-lxd
Interesting…
Can I add security.nesting true and lxc config set net-01 security.privileged true to the profile?
How to do it? just add these strings to file under the section config:?
For extra security you might also want to have the first level to be VM’s instead of containers:
Introduction
LXD 4.0 natively supports virtual machines and thanks to a built-in agent, can have them behave almost like containers.
Images
Community images (images:)
We are producing VM images daily for the following distributions:
Arch Linux
CentOS (7 and up)
Debian (8 and up)
Fedora
Gentoo
OpenSUSE
Ubuntu
For those that have cloud variants for container images, they have matching cloud variants for VM too.
Those images are currently the preferred ones for all of those distributions as…
This way your users will be a lot more isolated from the bare metal machine.