How to install LXC 6 in Ubuntu 24.04 and Debian 12

Hello community. I plan to use LXC directly instead of Incus and to built open source tools directly for LXC*.

By looking into the packages for both Ubuntu 24.04 and for Debian 12, both seem to only provide 5.x versions.

What is the recommended way to install LXC 6.0.3 on both systems?


*The main reason is to provide a lightweight alternative for Incus without complexities like Docker because of OVN requirements, and with more opinionated defaults (bridge networks, LVM volumes, etc).