Centos 7 Template Cannot be Installed on Qubes OS 4.1.0-rc4

The following attempt to install CentOS-7 template via dom0 terminal / command: sudo qubes-dom0-update --enablerepo=qubes-templates-community qubes-centos-7

results with the following error message: qvm-template: error: Same version of template ‘Centos 7’ not found

OS Details:
xen_version: 4.14.2

The same command works in Qubes 4.0, this could be a bug?

Centos 7 isn’t available for v4.1


unlike 4.04


Not a bug.
You can install Centos 8 from qubes-templates-community-testing - it
hasn’t yet migrated to the standard repository.
Centos 7 isn’t built for 4.1

I never presume to speak for the Qubes team.
When I comment in the Forum or in the mailing lists I speak for myself.

You may also wish to enable testing repositories and then use qvm-template-gui to check which templates are available for Qubes 4.1.

You may also wanted to keep in mind that Centos 8 is deprecated and updating is not possible, so we are waiting for Centos8 Stream template

See R4.1: Maintaining or not CentOS 7

1 Like

Good to know, thank you all!

Bumping just in case someone gets to find this old thread via suggestions - as it happened to me.

While CentOS 7 may not be that easily available in 4.1, one can still download the RPM manually, copy it to dom0 and install locally. It may not be supported but I found out it works fine - along with updating the system to the newest version.


qvm-run --pass-io qube 'cat /home/user/Downloads/qubes-template-centos-7-4.0.1-201909141946.noarch.rpm' > qubes-template-centos-7-4.0.1-201909141946.noarch.rpm
sudo dnf localinstall ./qubes-template-centos-7-4.0.1-201909141946.noarch.rpm


one can, with some clever tricks, update it to CentOS 8.5 and then migrate to a successor (AlmaLinux, EuroLinux, Rocky Linux, CentOS Stream). I wrote appropriate information on that in the Community Docs


And then

I already did it here

user@debian-11-mininal-bedrock:/$ sudo strat centos cat /etc/os-release
NAME=“CentOS Stream”
ID_LIKE=“rhel fedora”
PRETTY_NAME=“CentOS Stream 9”
REDHAT_SUPPORT_PRODUCT=“Red Hat Enterprise Linux 9”

That makes me wonder if the current state of AlmaLinux’ ELevate project would allow to upgrade a 8.x qube to AlmaLinux 9.0.

They recently announced an initial, non-production-ready support for 8 to 9 migration but I’m curious if this would work within a qube rather than non-qube system. Has anyone tried it?

Or if that’s not possible, I’ll just wait for 9.0 ready-made templates. :slight_smile:

Try and tell :wink:

Nope, either I’m doing something wrong or it’s normal that it (leapp) throws a Python exception upon launching.

The good thing about the whole situation is that I noticed the earlier instructions on migration were wrong since I had already tweaked a system before writing them. This time with the new PR I started from a fresh CentOS 8.2 install.