Qvm-template command not found

Hello, I am running qubes version 4.0.
I wanted to install Fedora template 40, but I got an error saying the template does not exist.
So I tried to list the available templates, but I found that

qvm-template returns “command not found” !

I don’t understand what is happening, seems like this basic utility is not present.
With bash autocomplete the only command starting with that is qvm-template-postprocess … any ideas?

Hello

Qubes OS 4.0 is deprecated for a while. You should consider updating.

where did you run this command? You should run it in a dom0 terminal.

1 Like

Qubes OS 4.0 is deprecated for a while. You should consider updating.

yes, I am planning to, but first I want to back everything up and I am not able at the moment.

where did you run this command? You should run it in a dom0 terminal.

in a dom0 terminal!

  1. Did you modify your $PATH?
  2. What is the output of the command “rpm -q qubes-core-admin-client” in dom0?
  1. No, never modified $PATH
  2. qubes-core-admin-client-4.0.33-1.c25.noarch

Doing a find on / does not return any file named qvm-template

maybe qvm-template did not exist back in Qubes 4.0 :woman_shrugging: there is no HISTORY section in this command man page, so I can’t tell.

1 Like

If I remember correctly, the new template mechanism (including qvm-template + its GUI) was introduced in Qubes 4.1, so this won’t work. Before that, you had to install a package with qubes-dom0-update. You won’t be able to install a Fedora 40 template anyway, since they stopped providing templates for that Qubes version a while ago.

You have 2 choices here:

  • Create a backup of everything and install a fresh Q4.2 system
  • In-place upgrade from 4.0 to 4.1 and from 4.1 to 4.2 using qubes-dist-upgrade

If you decide to do a backup, keep in mind that you will need to upgrade your template and standalone qubes to the new Qubes version using the following scripts in order:

4.0 to 4.1:

4.1 to 4.2:

Reboot your templates/standalones between each version upgrade.

1 Like