I have a fedora41 template vm, but a yellow triangle exclamation point is displayed on the state of Qubes manger. The prompt is that this template is no longer supported. It asked me to install a new template in Qubes template manager, but when I started Qubes template manager, it kept refreshing, but nothing was displayed to update.
I want to delete this template, but it uses deault-dvm as the template, and deault-dvm is the template of sys-usb, so I can’t delete anything, otherwise the mouse and keyboard will not work.
i guess you are on 4.2 and are unable to install fedora42. I will address the “how to change sys-usb or other vital running qubes template” and not the “I can’t install the newer template part”, those are two different problems you likely face.
Would it be an option to switch to debian? In case your gui failes you to change templates of running qubes, you can do the following in dom0:
# randomly changing templates to another OS might break things. Better to switch to a newer fedora than debian if possible.
target_template="debian-12-xfce"
source_template="fedora-41-xfce"
# Find running qubes. tail is needet do ommit the first "NAME" line.
qvm-ls --fields name --running | tail -n +2 > running_qubes
# Find qubes with fedora-41
qvm-ls --fields name --template "$target_template" | tail -n +2 > fedora_qubes
# Find all running qubes with fedora (intersection of both lists)
join fedora_qubes running_qubes > running_fedora_qubes
# Now we kill the fedora_running qubes.
while read q; do
qvm-kill "$q"
done <running_fedora_qubes.txt
# Do the template switching
while read q; do
qvm-prefs "$q" template "$target_template"
done <running_fedora_qubes.txt
# Start qubes back up
while read q; do
qvm-start "$q"
done <running_fedora_qubes.txt
# Failsave: If you do not close this script within 1 minute, it will shutdown the system.
sleep 60
sudo shutdown -h now
#There are residual files, you should delete them. For troubleshooting this script does not do that for you.
You can do parts manually, but after killing sys-usb your template switching must occur automatically to avoid breakage.
Maybe there is a better way, but this should work, i did not try this script, it’s kinda hail mary and i would try to switch all other qubes manually but sys-usb. Maybe you could add a failsave that autostarts after this process looking for a good running sys-usb and if that does not run, or the script is not terminated within 10 minutes rolls back the changes.