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.
How did you create fedora-40_dvm qube? It is clone of fedora-40 template?
TemplateVM can’t be disposable template.
Disposable template should be app qube (AppVM).
yes, I downloaded Fedora 40 according to the description. Then I created 2 clones, one with the name fedora-40_App and one with fedora-40_dvm. So I have 3 templates. The fedora-40_AppVM is for my App VM and the dvm clone should be for my dvm. What do I have to do differently, I don’t understand what I have done wrong
i just want to change my “default-dvm” where my sys usb and my sys-firewall is running the template for it from fedora-39 to fedora-40.
The name for my template fedora-40_dvm I have chosen only so that I know that it is the template for the default dvm.
Disposable template is an app qube, not a template qube:
Create default-f40-dvm app qube based on fedora-40 template.
Open default-f40-dvm qube Settings → Advanced tab and enable “Disposable template” option.
Now you have default-f40-dvm disposable template qube.