Remove original Template-VM, keeping the package for reinstallation

35 views
Skip to first unread message

799

unread,
Mar 29, 2018, 7:40:12 PM3/29/18
to qubes...@googlegroups.com
Hello,

I am cloning the default templates before applying any changes in order to start from scratch in case of problems

Thereof I have now several templates and it feels crowded.

Question:
How can I remove the default template VMs from Qubes but keeping the installation package, so that I can reinstall if I would like to start with a fresh template VM?


[799]

Marek Marczykowski-Górecki

unread,
Mar 29, 2018, 8:02:19 PM3/29/18
to 799, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Try `qubes-dom0-update --action=download qubes-template-...`

If that doesn't work, then use --action=reinstall but answer 'n' to the
final question. You'll find the package in /var/lib/qubes/updates/rpm.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAlqzdwUACgkQ24/THMrX
1yyR5Qf8ClnVZZb60pI0jdGvMkEwmEtB4AQ1xmpnWYXxLCiTtDfkKGhuzeXzGl/N
bR+tt6a8MckyA65SYFGQYXdPwNGGKqCp0Z8g88fcLDGpnyu45Jz7Qy83XvWkSbvV
tA24Q6p/24YrMZah5wb72omrcm2P5NTdyQjyc6LMHx0vmqAkWZ4avVfRuqF7OLfg
+bU82HNsuNxe0Ptcpmf+oxTFZbuF6kaC5V8MS0EXvD57Ykmliwddu5lLBCI6cz7E
HaGVZpOB5dU5eXyv45dOpp8gaf1tB+Z956zKIqL/IRFCqTbFGzaiIPHf9Xuvl0QA
41J+TXN5MyeuT00+4qtcCl1PavBiLw==
=Lk2G
-----END PGP SIGNATURE-----

sevas

unread,
Mar 29, 2018, 10:31:59 PM3/29/18
to qubes-users
Hi. I think that was only half of the answer. I have had this problem too: of
removing original templates; ie- debian-9, fedora-26.

The documentation;
https://www.qubes-os.org/doc/remove-vm-manually/
is only viable via templates that are not "installed by (system/dom0)".

The GUI gives the error "You cannot remove templates that were installed by
(system/dom0)". The TTY gives that error plus many more, even when following the
documentation above.

I had to reinstall my entire system because I interrupted a backup restore and
the restore gave me too many templates that were "installed by system":
debian-9; debian-9-1; fedora-26; fedora-26-1

A small bug that should be noted: sometimes when deleting qubes, they still have
a target.wants at boot.

cooloutac

unread,
Apr 1, 2018, 2:28:13 PM4/1/18
to qubes-users

I couldn't the original dvm template. It was just keep telling domain was in use but I coudln't figure out where lol. could delete custom dvm templates np. Not sure about other default qubes didn't try. Was curious about that myself never had that problem in 3.2


I have also had the exact same problem with restore, was giving me double vms. Figured this out after reinstalling whole system lmao. and it happened to me again and realized it was from restore backup. It doubled the ones that were previously installed instead of overwriting them.

But so instead of just deleting the ones with 0.0kb i just deleted all appvms and restored them again and let it finish.

now no errors on boot now except the usual failed to install kernel modules or something marek said while back it was safe to ignore.

Also made sure not to select use all template with whonix updatevm because then fedora can't update and you have to edit some config file. I had to reinstall whole system cuase of that too just be on the safe side haha.

cooloutac

unread,
Apr 1, 2018, 2:30:16 PM4/1/18
to qubes-users
I did use qube-manager in global settings and selected sys-whonix as updatevm though, which just sets it for dom0. fedora template use default sys-firewall still I believe this way.
Reply all
Reply to author
Forward
0 new messages