Hello,
new template Fedora 39 successfully downloaded and already replaced the old Fedora 38 templates in 39.
Now the problem. Now I want to change the last template, the default dvm from fedora 38 to fedora 39. would work if it wasn’t for the sys-usb. Because I would have to switch it off to be able to change the template. Well, if I shut it down I can’t do anything anymore, because my mouse and keyboard are attached to it.
potentially followed by disaster.
I always recommend a failsafe:
#!/usr/bin/bash
qvm-shutdown --wait sys-usb
sleep 10
qvm-prefs sys-usb template <NEW_TEMPLATE>
qvm-start sys-usb
## Delete this section after testing
sleep 120
qvm-shutdown sys-usb
sleep 10
qvm-prefs sys-usb template <OLD_TEMPLATE>
sleep 5
qvm-start sys-usb
## Delete this section after testing
That gives you 2 minutes to test out the new template backed sys-usb,
and will then revert to the old.
Once you are happy you can delete, or comment out, the testing section, and
rerun the script to make the change permanent.
I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.
I’m looking for an option that is similar because Qubes is my daily driver on my desktop and I am picky about my keyboard. I really like this type of solution because it is the creation of an editable script that could progress with the system.
Here is my process when I tested it today:
Saved the text as <filename> .
Used chmod -x <filename> in a terminal window in the correct directory to make it executable.
Had to bash <filename> for it to run.
I got the following errors:
qvm-shutdown: command not found
qvm-prefs: command not found
qvm-start: command not found
Here is where I could use some clarification in the process:
It makes sense that these commands can only be run from dom0. Is that a correct assumption?
I’m so glad that I did this as a practice with a script! I would have locked myself out again.
qvm-prefs: error: template for DispVM must have template_for_dispvms=True
Then tried in dom0 terminal qvm-prefs --set fedora-39-dvm template_for_dispvms True (also tried with the ‘=’ included)
and got this error
qvm-prefs: error: no such property: ‘template_for_dispvms’
‘template_for_dispvms’ shows up under man qvm-prefs but not under qvm-prefs --help-properties fedora-39-dvm
Under the ‘–help-properties’ info I couldn’t find a similar property.
I’m at a loss of how to change it. Any idea what I missed?
So I spent a few minutes reading and testing some of the commands to change my default-dvm when I am using a desktop with only usb keyboard.
Here is what I made as a bash script.
Does anyone suggest a better method other than forcing qvm-shutdown or is there a better order to shut down templates? I’m self taught with this. I guess most people are really. If you’re new to Qubes and want an explanation of what it is doing line by line let me know and I’ll update this.