Created new fedora-26 dvm, how to delete old dvm

276 views
Skip to first unread message

[799]

unread,
Jan 18, 2018, 3:27:54 PM1/18/18
to qubes-users
Hello,

After migrating my templates to Fedora 26, I have also created a new disposable VM, based on a Fedora 26 template.

I have set the new DVM to start, from all other AppVMs, as such the DVM should not be referenced to in any other app vm.
I tried to remove the default DVM, but it didn't work.
What do I need to do, to get rid of the old (Fedora 25 based) DVM which comes with the default Qubes 4rc3 isntallation ?

[799]

my procedure to create a new Fedora 26 DVM:

---8<----------
# Create a new Disposable App-VM "my-dvm" which is based on a custom template t-fedora-26
qvm-create --template t-fedora-26 --label red --property template_for_dispvms=True --class=AppVM my-dvm

# TEST: Start an application in this dvm
qvm-run --dispvm=my-dvm xterm

# Fix menu entry from Domain: my-dvm to Disposable: my-dvm
# https://groups.google.com/forum/#!msg/qubes-users/gfBfqTNzUIg/sbPp-pyiCAAJ
# https://github.com/QubesOS/qubes-issues/issues/1339#issuecomment-338813581
qvm-features vmname appmenus-dispvm 1
qvm-sync-appmenus --regenerate-only my-dvm

# Change the Disp-VM from an AppVM (here: my-untrusted)
qvm-prefs --set my-untrusted default_dispvm my-dvm

# Try to start something from this AppVM in a disposable VM
qvm-run --auto my-untrusted 'qvm-open-in-dvm https:/google.de'
# This should start a new dispvm which is based on your dvm-App

---8<----------




Gesendet von ProtonMail mobile


donoban

unread,
Jan 18, 2018, 3:34:54 PM1/18/18
to qubes...@googlegroups.com
On 01/18/2018 09:27 PM, '[799]' via qubes-users wrote:
> Hello,
>
> After migrating my templates to Fedora 26, I have also created a new
> disposable VM, based on a Fedora 26 template.
>
> I have set the new DVM to start, from all other AppVMs, as such the DVM
> should not be referenced to in any other app vm.
> I tried to remove the default DVM, but it didn't work.
> What do I need to do, to get rid of the old (Fedora 25 based) DVM which
> comes with the default Qubes 4rc3 isntallation ?
>


At least in Qubes 3.2 you can try with 'qvm-ls' for finding it and
'qvm-remove vm-name' for delete it.

I think something like 'qvm-remove fedora-25-dvm' should work.

But I don't know if it's different on Qubes 4.

signature.asc

cooloutac

unread,
Jan 18, 2018, 3:45:53 PM1/18/18
to qubes-users

[799]

unread,
Jan 19, 2018, 6:35:17 PM1/19/18
to don...@riseup.net, qubes...@googlegroups.com
> I tried to remove the default DVM, but it didn't > work. What do I need to do, to get rid of the
> old (Fedora 25 based) DVM which comes with > the default Qubes 4rc3 isntallation ?

After some trial and error I found out what was causing the problem, deleting the default fedora-25-dvm and the fedora-25 template.

I had not only to migrate all AppVMs to the new fedora-26 template, I also had to edit /var/lib/qubes/qubes.xml and change the entries default_template and default_dispvm from fedora-25 to fedora_26.

After that I was able to qvm-remove the fedora-25-dvm and also the fedora-25 template via sudo dnf remove qubes-template-fedora-25

[799]

Reply all
Reply to author
Forward
0 new messages