hey. I love what you do here! You are skilled in computers… Advanced brilliant OS. <3
I’m not as good as you with computers, but i know a few things in linux. Kinda new, but i want to use Qubes i like it allot and the idea of it.
But could anyone please write down the commands here to update from fedora 30 to 32?
I have tried this and now i have both fedora 32 and 30, and im not sure i have done everything right. Might have messed up the disposableVMs…
Could you please edit this right? I can start with the first.
Detailed instructions for standard Fedora TemplateVMs
These instructions will show you how to upgrade the standard Fedora TemplateVM. The same general procedure may be used to upgrade any template based on the standard Fedora TemplateVM.
Note: The prompt on each line indicates where each command should be entered: dom0 , fedora-<old> , or fedora-<new> , where <old> is the Fedora version number from which you are upgrading, and <new> is the Fedora version number to which you are upgrading.
- Ensure the existing template is not running.
[user@dom0 ~]$ qvm-shutdown fedora-30
- Clone the existing template and start a terminal in the new template.
[user@dom0 ~]$ qvm-clone fedora-30 fedora-32
[user@dom0 ~]$ qvm-run -a fedora-32 gnome-terminal
- Attempt the upgrade process in the new template.
[user@fedora-<new> ~]$ sudo dnf clean all
[user@fedora-<new> ~]$ sudo dnf --releasever=<new> distro-sync --best --allowerasing
Note: dnf might ask you to approve importing a new package signing key. For example, you might see a prompt like this one:
warning: /mnt/removable/updates-0b4cc238d1aa4ffe/packages/example-package.fc<new>.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID XXXXXXXX: NOKEY
Importing GPG key 0xXXXXXXXX:
Userid : "Fedora <new> (<new>) <fedora-<new>@fedoraproject.org>"
Fingerprint: XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-<new>-x86_64
Is this ok [y/N]: y
This key was already checked when it was installed (notice that the “From” line refers to a location on your local disk), so you can safely say yes to this prompt. Note: If you encounter no errors, proceed to step 4. If you do encounter errors, see the next two points first.
- If
dnfreports that you do not have enough free disk space to proceed with the upgrade process, create an empty file in dom0 to use as a cache and attach it to the template as a virtual disk.
[user@dom0 ~]$ truncate -s 5GB /var/tmp/template-upgrade-cache.img
[user@dom0 ~]$ dev=$(sudo losetup -f --show /var/tmp/template-upgrade-cache.img)
[user@dom0 ~]$ qvm-block attach fedora-<new> dom0:${dev##*/}
Then reattempt the upgrade process, but this time use the virtual disk as a cache.
[user@fedora-<new> ~]$ sudo mkfs.ext4 /dev/xvdi
[user@fedora-<new> ~]$ sudo mount /dev/xvdi /mnt/removable
[user@fedora-<new> ~]$ sudo dnf clean all
[user@fedora-<new> ~]$ sudo dnf --releasever=<new> --setopt=cachedir=/mnt/removable --best --allowerasing distro-sync
If this attempt is successful, proceed to step 4.
-
dnfmay complain:
At least X MB more space needed on the / filesystem.
In this case, one option is to [resize the TemplateVM’s disk image]) before reattempting the upgrade process. below for other options.)
4. Check that you are on the correct (new) Fedora release.
[user@fedora-<new> ~]$ cat /etc/fedora-release
- (Optional) Trim the new template. ), but it does not hurt. Some users have [reported]that it makes a difference.)
[user@fedora-<new> ~]$ sudo fstrim -av
[user@dom0 ~]$ qvm-shutdown fedora-<new>
[user@dom0 ~]$ qvm-start fedora-<new>
[user@fedora-<new> ~]$ sudo fstrim -av
- Shut down the new TemplateVM.
[user@dom0 ~]$ qvm-shutdown fedora-<new>
- Remove the cache file, if you created one.
[user@dom0 ~]$ sudo losetup -d $dev
[user@dom0 ~]$ rm /var/tmp/template-upgrade-cache.img
-
(Recommended) [Switch everything that was set to the old template to the new template.]
-
(Optional) Make the new template the global default.
[user@dom0 ~]$ qubes-prefs --set default_template fedora-<new>
- (Optional) Remove the old template. (Make sure to type the name of the old template, not the new one.)
[user@dom0 ~]$ sudo dnf remove qubes-template-fedora-<old>
Also… It’s this i dont know how to make right also… I messed it up. Please edit the right ones…
Switching
When you install a new template or upgrade a clone of a template, it is recommended that you switch everything that was set to the old template to the new template:
- Make the new template the default template.
Applications Menu --> System Tools --> Qubes Global Settings --> Default template
- Base AppVMs on the new template.
Applications Menu --> System Tools --> Qubes Template Manager
- Base the DisposableVM Template on the new template.
[user@dom0 ~]$ qvm-create -l red -t new-template new-template-dvm
[user@dom0 ~]$ qvm-prefs new-template-dvm template_for_dispvms True
[user@dom0 ~]$ qvm-features new-template-dvm appmenus-dispvm 1
[user@dom0 ~]$ qubes-prefs default-dispvm new-template-dvm
- Updating the template for sys-usb if peripheral devices are dependent upon the VMIf you are running Qubes on a desktop or other device where the peripheral devices such as keyboard / mouse / trackpad are dependent upon the sys-usb appVM then updating the template is a challenge. In this situation, you can use the following commands in a dom0 terminal window to update the templateVM.
$ qvm-shutdown --wait sys-usb; qvm-prefs sys-usb template fedora-31; qvm-start sys-usb
Be careful to run this set of commands as shown above (3 commands in a single line) because if the sys-usb VM does not start back up you may be locked out of your machine.
Thanks! I just want a new fresh install with fedora 32 and not fedora 30… That’s stable. But i might just use fedora 30 if it’s to hard for me to upgrade…


