On Fri, 2020-05-01 at 18:22 +0100, Miguel Barbosa Gonçalves wrote:
> On 2020-05-01 17:48, [email protected] wrote:
> > On Friday, May 1, 2020 at 12:39:54 AM UTC-4, seshu wrote:
> >
> > One question that just occured to me about upgrading the
> > template
> > VM's. Many of the comments and posts in this forum are assuming
> > Qubes is installed on a laptop. I have it installed on a
> > desktop,
> > and my keyboard / mouse uses sys-usb. I need to have this appVM
> > running to use the peripheral obviously. But, since the appVM
> > is
> > running, I can't update the templateVM?
>
> Hi!
>
> Before I had an additional USB controller for my keyboard and mouse,
> which by the way is a great idea as good PS/2 devices are are to
> find
> new, I used the following commands in dom0
>
> $ qvm-stop --wait sys-usb; \
> qvm-prefs sys-usb template fedora-31; \
> qvm-start sys-usb
>
> This stops the sys-usb qube, changes the template and starts it
> again.
>
> Be careful and do not make any mistakes because if the sys-usb qube
> does
> not start you might be locked out.
>
> Hope this helps.
>
> Cheers,
> Miguel
>
I am on a desktop, too, and would not know where another USB controller
should be on the machine, whence Brendan's suggestions are not feasible
for me. I take it the above commands replace the template rather than
upgrading the same template? I think swapping out the templates might
be a safer route for a qubes-newbie like me.
I do not have a sys-usb, since I installed Qubes OS while using a USB
keyboard. Which domain are my USB devices attached to? The Qubes
documentation is not explicit about that, it only says removing the
sys-usb qube will attach the devices directly to dom0. Is that the way
Qubes configures itself when installing without PS/2 keyboard?
Is it possible to amend the above commands with an automatic revert?
I'm thinking of the way one changes display settings in Windows. After
a change, a diaglogue box is presented asking whether you want to keep
the new settings. If the user does not acknowledge in a few seconds,
the old state is restored. Could the following work?
Thanks
Olaf
#!/bin/bash
qvm-stop --wait $QUBE_WITH_USB
qvm-prefs $QUBE_WITH_USB template fedora-${NEW_VERSION}
qvm-start $QUBE_WITH_USB
echo "hit Ctrl-C to keep the new fedora $NEW_VERSION"
sleep 10
# if keyboard still works, the user will be able to interrupt here.
qvm-stop --wait $QUBE_WITH_USB
qvm-prefs $QUBE_WITH_USB template
fedora-${OLD_VERSION}
qvm-start $QUBE_WITH_USB
echo "failed to upgrade to fedora-${NEW_VERSION}"
--
You received this message because you are subscribed to the Google Groups
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qubes-users/13e3b003ed5f43eab6e7ba843eb98f0d6f7d34e7.camel%40aatal-apotheke.de.