[CentOS-virt] OS-level virtualization using LXC and systemd-nspawn containers

Tue Jan 26 18:24:46 UTC 2021
Scott Dowdle <dowdle at montanalinux.org>


----- Original Message -----
> Can you share your experience with LXC and/or systemd-nspawn
> for RHEL 8 / CentOS 8 operating system on the hardware node?

> I can't use host network for [system] containers.
> Each container must have its own private network.

In that case, perhaps you'd like docker/podman's private networking?

> Backuping persistent containers and restoring from backup - issue.
> I don't want have deal with a mash of different images and layers.

I haven't thought of backups.  I assume there are a number of backup solutions for docker/podman containers but I'm completely ignorant.

> Each my systemd-nspawn container located in separate filesystem:
> # zfs list
> NAME                  USED  AVAIL     REFER  MOUNTPOINT
> tank                  531G  1.13T       96K  /tank
> tank/containers       528G  1.13T      168K  /tank/containers
> tank/containers/1    19.1G  1.13T     8.00G  /tank/containers/1

Ok, so you are turning off SELinux and using ZFS too?  And you still want to stay with EL?  Why?

> Upstream also doesn't support ZFS, but this is extraordinary file system
> with excellent feature set.

Ubuntu and LXD do support ZFS and Canonical's lawyers seem happy to allow ZFS to be bundled with Ubuntu by default.  You should get along nicely.

Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]