mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2024-12-27 08:19:24 -05:00
Update remove-vm-manually.md
I added a description of how to remove templates installed by a package manager that are no longer listed in that or falsely labeled as such
This commit is contained in:
parent
7691d10ad7
commit
6dde2810ff
@ -7,12 +7,14 @@ permalink: /doc/remove-vm-manually/
|
|||||||
How to Remove VMs Manually
|
How to Remove VMs Manually
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
How to Remove a TemplateVM Manually (R3.2)
|
How to Remove a TemplateVM Manually
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
|
|
||||||
Try the [normal method] before resorting to this one.
|
Try the [normal method] before resorting to these.
|
||||||
All of the following commands should be executed in a dom0 terminal.
|
All of the following commands should be executed in a dom0 terminal.
|
||||||
|
|
||||||
|
### R3.2
|
||||||
|
|
||||||
1. Remove the TemplateVM's directory:
|
1. Remove the TemplateVM's directory:
|
||||||
|
|
||||||
$ rm -rf /var/lib/qubes/vm-templates/<template-name>
|
$ rm -rf /var/lib/qubes/vm-templates/<template-name>
|
||||||
@ -32,3 +34,22 @@ All of the following commands should be executed in a dom0 terminal.
|
|||||||
|
|
||||||
[normal method]: /doc/templates/#how-to-install-uninstall-and-reinstall
|
[normal method]: /doc/templates/#how-to-install-uninstall-and-reinstall
|
||||||
|
|
||||||
|
### R4.0
|
||||||
|
|
||||||
|
When a template is marked as 'installed by package manager', but cannot be uninstalled there, trying to uninstall manually will result in the error "ERROR: VM installed by package manager: template-vm-name". Do as follows to be able to uninstall the template:
|
||||||
|
|
||||||
|
1. Check the state of `installed_by_rpm`
|
||||||
|
|
||||||
|
$ qvm-prefs template-vm-name
|
||||||
|
|
||||||
|
2. If `installed_by_rpm - True]`, mark the template as not installed by package manager
|
||||||
|
|
||||||
|
$ qvm-prefs template-vm-name installed_by_rpm false
|
||||||
|
|
||||||
|
3. Re-check the state of `installed_by_rpm`
|
||||||
|
|
||||||
|
- If `installed_by_rpm - False`, remove the template like you would a regular qube:
|
||||||
|
|
||||||
|
$ qvm-remove template-vm-name
|
||||||
|
|
||||||
|
- If `installed_by_rpm` remains `True`, reboot your computer to bring qubes.xml in sync with qubesd, and try again to remove the template.
|
||||||
|
Loading…
Reference in New Issue
Block a user