How to change the template for a usb qube?

I keep meaning to add this to the FAQ, as it has come up many times.
It is always safer and better to test before committing such a change:

#!/usr/bin/bash
qvm-shutdown sys-usb --wait
qvm-prefs sys-usb template default-dvm-minimal
qvm-start sys-usb
sleep 180
qvm-shutdown sys-usb --wait
qvm-prefs sys-usb template OLD_DVM_TEMPLATE
qvm-start sys-usb`

If you do this, then you are set if there’s anything wrong with the
change, as the system will revert to your previous setting. If all works
well, just comment out the last 4 lines and run the script again.

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.

3 Likes