ublue-os / ucore

An OCI base image of Fedora CoreOS with batteries included
https://projectucore.io
Apache License 2.0
204 stars 33 forks source link

ucore-hci - Add LXC Container Management via Incus #217

Open cmspam opened 4 days ago

cmspam commented 4 days ago

Feature Request: Add LXC Container Management via Incus

I’m very happy that ucore-hci exists for virtual machines, but I’d love to see support for managing LXC containers as well.

Incus is a fork of LXD that excels at managing both LXC containers and virtual machines. While I currently maintain a containerized solution for running Incus, I’ve always envisioned having an immutable appliance with built-in Incus support. Given the existing ZFS support in ucore-hci, Incus could be a great addition to this project.

Incus has official Fedora packages, but they are a little old. More up-to-date packages are actively maintained and available via Copr.

Would there be any interest in exploring this integration?

m2Giles commented 4 days ago

We currently offer a distrobox with incus inside of it. It works when used in rootful mode.

cmspam commented 4 days ago

Indeed, incus can certainly run containerized, but I think there is a big advantage to having it available on a base image like this one, dedicated to virtualization uses, as opposed to having to go through a distrobox or a podman container. Especially seeing as that incus now runs OCI containers, I think it's one of the use cases where it makes more sense to have it be one of the few things not containerized.

m2Giles commented 4 days ago

Yes, I have it on my Ucore image right now.

The big hesitation is that clustered incus instances need to be updated in lockstep. This is not an issue for single instance configurations.

Ultimately, sysext looks like it will be a great solution for this.

cmspam commented 4 days ago

I actually hadn't thought about that until your comment, but I can understand how the full OS image installation and reboots could certainly complicate things for clusters.