How to create a container with Gentoo based on systemd?

I tried to use -t download, there is only funtoo available, no gentoo. Old script “/usr/share/lxc/templates/lxc-gentoo” supposed to use SysV-init based containers, don’t work with systemd-based containers.
How to make gentoo available in that “download” list? Host system is Debian 11, if that important.

I can confirm its not in the list.

The only difference between funtoo and gentoo in the images list website is that gentoo doesn’t have a “default” variant. https://uk.lxd.images.canonical.com/

@amikhalitsyn can you take a look and see if lxc-create supports non-default variants.
@monstermunchkin is there a reason gentoo image doesn’t have a default variant?

I’ve managed to get “openrc” variants of gentoo using this:
lxc-create -t download -n my_container -- --variant="openrc"

We are filtering out other variants except the “default” here:

I’m not sure that we need to filter out variants on the listing stage.

1 Like
`lxc-create -t download -n my_container -- --variant="systemd"`

also works.

1 Like