How to replace template to a fresh one

In fact a little issue emerged. I am describing it here just in case it is useful to others.

I have managed to:

  1. rename my old debian 13 to debian-13-xfce-new, which is now the template for several VMs
  2. Download the original debian-13-xfce
  3. 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.

1 Like