How to completely remove a template ?

431 views
Skip to first unread message

Swâmi Petaramesh

unread,
Dec 16, 2016, 5:04:55 AM12/16/16
to qubes...@googlegroups.com
Hello,

I had upgraded my fedora-23 template to fedora-24 by cloning it per the
documentation, then moved all my VMs to using the new one.

Then I removed (dnf remove) the fedora-23 package. Still it shows up in
the "Qubes VM manager", and the option "Remove VM" is greyed out.

I have then removed all the fedora-23 folders under /var/lib/qubes ,
still I cannot get rid of the entry in the VM manager.*

Any clue ?

TIA, kind regards.



--
Swâmi Petaramesh <sw...@petaramesh.org> PGP 9076E32E




--
Swâmi Petaramesh <sw...@petaramesh.org> PGP 9076E32E

cubit

unread,
Dec 16, 2016, 6:31:31 AM12/16/16
to Swâmi Petaramesh, qubes...@googlegroups.com
16. Dec 2016 10:04 by sw...@petaramesh.org:

I had upgraded my fedora-23 template to fedora-24 by cloning it per the
documentation, then moved all my VMs to using the new one.

Then I removed (dnf remove) the fedora-23 package. Still it shows up in
the "Qubes VM manager", and the option "Remove VM" is greyed out.

I have then removed all the fedora-23 folders under /var/lib/qubes ,
still I cannot get rid of the entry in the VM manager.*




from dom0 terminal run 


qvm-remove <template or AppVM name>


e.g


qvm-remove fedora-23




Swâmi Petaramesh

unread,
Dec 16, 2016, 8:26:25 AM12/16/16
to cubit, qubes...@googlegroups.com
Thanks for the reply Cubit,

Unfortunately I get

$ qvm-remove fedora-23

This VM has been installed by RPM, use yum remove <pkg name> to remove it!

...Which has been done long ago :/


On 12/16/2016 12:31 PM, cubit wrote:
> qvm-remove <template or AppVM name>

Swâmi Petaramesh

unread,
Dec 16, 2016, 8:41:26 AM12/16/16
to qubes...@googlegroups.com
On 12/16/2016 02:26 PM, Swâmi Petaramesh wrote:
> Thanks for the reply Cubit,
>
> Unfortunately I get
>
> $ qvm-remove fedora-23
>
> This VM has been installed by RPM, use yum remove <pkg name> to remove it!
>
> ...Which has been done long ago :/

Well, I finally soled it by reinstalling, then uninstalling, the old
template RPM.

Thanks for the help :-)

Marek Marczykowski-Górecki

unread,
Dec 16, 2016, 9:39:36 AM12/16/16
to Swâmi Petaramesh, cubit, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Fri, Dec 16, 2016 at 02:26:12PM +0100, Swâmi Petaramesh wrote:
> Thanks for the reply Cubit,
>
> Unfortunately I get
>
> $ qvm-remove fedora-23
>
> This VM has been installed by RPM, use yum remove <pkg name> to remove it!
>
> ...Which has been done long ago :/

If you already removed RPM, you can use qvm-remove --just-db. It will
probably complain that some VM still use it. Normally it should block
package removal, but there is a bug in rpm which result in not aborting.
It is already fixed in rpm-4.13.0:
https://github.com/QubesOS/qubes-secpack/blob/master/QSBs/qsb-012-2014.txt
But Fedora 23 (which is used in dom0) still have 4.13.0-rc1

There is already fix in Fedora testing repository:
https://bodhi.fedoraproject.org/updates/FEDORA-2016-0906f64ec8

- --
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-----
Version: GnuPG v2

iQEcBAEBCAAGBQJYU/yiAAoJENuP0xzK19csUo8H/0zMAiz+xf5Y7P2iNthRxsl9
rnC6MYXh1jL1x58KFEncJYmFTHAmQrkTUX3jsnbK0fVTKdpb5FyLUEfQqyxqDxKD
N7K0MA10yZl0ibbh+sRApBYBLiHq2pN90NgpmqU2NSCqooSGk1yN4wZnmOIEz8Yh
NyvuoHGHD88J78ZDMxk/DCUZqwXg2klTEEEMi/SRNU6+RfbI5qDBugGeHhWVTMYl
R+T0J5mmDXnhDFnhn1b4s4mPOBr8EclW+MSBmZc/brWE52Q9M7QUxY50b1rh/J3G
iW3MrcDSqyyhU4YKeQwhs3/iL/w67mqW8GdEGz5TVGOwyYfYsh4THa0bi2sDgx0=
=wmgx
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages