If I open “Qubes Template Manager”, in the list of “installed templates” I see my debian-13-xfce marked as
This template is a local template, not installed from a repository.
I am not exactly sure what I did (maybe I cloned the original template, deleted the original, and rename the copy or something like that).
The fact is, the original debian13-xfce template does not appear in the “Available templates” list.
My goal: I want to move back to an official template.
Question: What is the best way to achieve that?
I cannot download the original debian-13-xfce because it does not appear in the list of “available templates” in the template manager. Since my sys-net is based on my (altered) debian-13-xfce I am afraid I will lock myself out of the network if I just delete my altered debian-13-xfce template
Possible solution? I could:
download from the list debian-12-xfce
Set it as the template for sys-net
delete my altered debian-13-xfce
re-install the official debian-13-xfce
set back debian-13-xfce as the template of sys-net
You can shutdown your qubes, rename your current debian-13-xfce template, install the debian-13-xfce from repository and then switch the template of your qubes.
I just tried your suggestion @MellowPoison .
My altered debian is now called debian-13-xfce-new. And all is good.
However if I go to the Template Manager, I do not see any debian-13-xfce in the list of available templates.
It’s a bit weird, I only have:
archlinux
debian-12-minimal
fedora-42-minimal
fedora-42
Kicksecure-17
There is no debian xfce (either 12 or 13).
EDIT: In the list of my installed templates, I see: fedora-42-xfce, whonix-gateway and whonix-workstation. In other words, my debian-13-xfce-new has disappeared from the list after changing its name.
In fact a little issue emerged. I am describing it here just in case it is useful to others.
I have managed to:
rename my old debian 13 to debian-13-xfce-new, which is now the template for several VMs
Download the original debian-13-xfce
Redefine the template for several VMs to be debian-13-xfce.
However there is an issue now.
If I try to delete debian-13-xfce-new, it gives me this error:
This qube cannot be deleted, it is used as template for default-mgmt-dvm
After a little search, I have found here that default-mgmt-dvm is a hidden VM. The last post (Dec 2024) proposes a solution to avoid issues, but I assume it has not been implemented yet in Qubes 4.3 rc2.
So I need to redefine the template for default-mgmt-dvm.
This cannot be done with the Qube Manager program, because it hides the default-mgmt-dvm. But it is possible using the terminal as follows:
qvm-pref default-mgmt-dvm template debian-13-xfce
Now I could finally delete debian-13-xfce-new and all is good.