Whonix 17 install issue

[Main@dom0 ~]$ qubes-prefs | grep default_kernel
default_kernel - 6.1.75-1.fc32

You can remove the old kernels using this command in dom0:

sudo dnf remove kernel-qubes-vm-6.1.57-1.fc32 kernel-qubes-vm-6.1.62-1.fc32

If you still won’t have enough space to install the templates then you can also check the old kernel packages used by dom0 and remove them as well:

dnf list installed | grep kernel

One kernel you mentioned is the default kernel. You want me to delete that?

Isn’t default_kernel - 6.1.75-1.fc32?

Yes my mistake. here is the output

[Main@dom0 ~]$ sudo dnf remove kernel-qubes-vm-6.1.57-1.fc32
No match for argument: kernel-qubes-vm-6.1.57-1.fc32
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
[Main@dom0 ~]$ sudo dnf remove kernel-qubes-vm-6.1.62-1
No match for argument: kernel-qubes-vm-6.1.62-1
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!

Hm, that’s strange.
What’s the output of this command?

dnf list installed | grep kernel

[Main@dom0 ~]$ dnf list installed | grep kernel
kernel.x86_64 1000:6.1.57-1.qubes.fc32 @qubes-dom0-cached
kernel.x86_64 1000:6.1.62-1.qubes.fc32 @qubes-dom0-cached
kernel.x86_64 1000:6.1.75-1.qubes.fc32 @qubes-dom0-cached
kernel-devel.x86_64 1000:6.1.57-1.qubes.fc32 @qubes-dom0-cached
kernel-devel.x86_64 1000:6.1.62-1.qubes.fc32 @qubes-dom0-cached
kernel-devel.x86_64 1000:6.1.75-1.qubes.fc32 @qubes-dom0-cached
kernel-modules.x86_64 1000:6.1.57-1.qubes.fc32 @qubes-dom0-cached
kernel-modules.x86_64 1000:6.1.62-1.qubes.fc32 @qubes-dom0-cached
kernel-modules.x86_64 1000:6.1.75-1.qubes.fc32 @qubes-dom0-cached
kernel-qubes-vm.x86_64 1000:6.1.57-1.qubes.fc32 @qubes-dom0-cached
kernel-qubes-vm.x86_64 1000:6.1.62-1.qubes.fc32 @qubes-dom0-cached
kernel-qubes-vm.x86_64 1000:6.1.75-1.qubes.fc32 @qubes-dom0-cached
qubes-core-dom0-linux-kernel-install.x86_64 4.1.25-1.fc32 @qubes-dom0-cached
qubes-kernel-vm-support.x86_64 4.1.19-1.fc32 @qubes-dom0-cached

Oh, my bad, the correct command to remove them is this one:

sudo dnf remove kernel-qubes-vm-6.1.57-1.qubes.fc32 kernel-qubes-vm-6.1.62-1.qubes.fc32

i removed them.

Try to install the whonix-gateway-17 template.

[Main@dom0 ~]$ qvm-template install --enablerepo=qubes-templates-community whonix-gateway-17 whonix-workstation-17
‘/home/Main/.cache/qvm-template/qubes-template-whonix-gateway-17-0:4.0.6-202402022331.rpm’ already exists, skipping…
Downloading ‘qubes-template-whonix-workstation-17-0:4.0.6-202402022119’…
qubes-template-whonix-workstation-17-0:4.0.6-202402022119: 100%|▉| 803M/804M [02:25<00:0
Installing template ‘whonix-gateway-17’…
tar: ./var/lib/qubes/vm-templates/whonix-gateway-17/root.img.part.00: Wrote only 4096 of 10240 bytes
tar: ./var/lib/qubes/vm-templates/whonix-gateway-17/root.img.part.01: Cannot write: No space left on device
tar: ./var/lib/qubes/vm-templates/whonix-gateway-17/vm-whitelisted-appmenus.list: Cannot write: No space left on device
tar: ./var/lib/qubes/vm-templates/whonix-gateway-17/whitelisted-appmenus.list: Cannot write: No space left on device
tar: Exiting with failure status due to previous errors
ERROR: Failed to extract whonix-gateway-17 template

Can you try to install only whonix-gateway-17 without whonix-workstation-17?
If it’ll still give you an error then try to free up some more space by removing old dom0 kernel packages.
Check the kernel used by dom0 using this command:

uname -r

And remove the oldest one if it’s not the version that is used by dom0:

sudo dnf remove kernel-6.1.57-1.qubes.fc32 kernel-devel-6.1.57-1.qubes.fc32 kernel-modules-6.1.57-1.qubes.fc32

[Main@dom0 ~]$ qvm-template install --enablerepo=qubes-templates-community whonix-gateway-17
‘/home/Main/.cache/qvm-template/qubes-template-whonix-gateway-17-0:4.0.6-202402022331.rpm’ already exists, skipping…
Installing template ‘whonix-gateway-17’…
tar: ./var/lib/qubes/vm-templates/whonix-gateway-17/root.img.part.00: Wrote only 8192 of 10240 bytes
tar: ./var/lib/qubes/vm-templates/whonix-gateway-17/root.img.part.01: Cannot write: No space left on device
tar: ./var/lib/qubes/vm-templates/whonix-gateway-17/vm-whitelisted-appmenus.list: Cannot write: No space left on device
tar: ./var/lib/qubes/vm-templates/whonix-gateway-17/whitelisted-appmenus.list: Cannot write: No space left on device
tar: Exiting with failure status due to previous errors
ERROR: Failed to extract whonix-gateway-17 template
[Main@dom0 ~]$

[Main@dom0 ~]$ sudo dnf remove kernel-6.1.57-1.qubes.fc32 kernel-devel-6.1.57-1.qubes.fc32 kernel-modules-6.1.57-1.qubes.fc32
Dependencies resolved.

Package Arch Version Repository Size

Removing:
kernel x86_64 1000:6.1.57-1.qubes.fc32 @qubes-dom0-cached 36 M
kernel-devel x86_64 1000:6.1.57-1.qubes.fc32 @qubes-dom0-cached 64 M
kernel-modules x86_64 1000:6.1.57-1.qubes.fc32 @qubes-dom0-cached 361 M

Transaction Summary

Remove 3 Packages

Freed space: 461 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: kernel-1000:6.1.57-1.qubes.fc32.x86_64 1/3
Generating grub configuration file …
Found theme: /boot/grub2/themes/qubes/theme.txt
Found linux image: /boot/vmlinuz-6.1.75-1.qubes.fc32.x86_64
Found initrd image: /boot/initramfs-6.1.75-1.qubes.fc32.x86_64.img
Found linux image: /boot/vmlinuz-6.1.62-1.qubes.fc32.x86_64
Found initrd image: /boot/initramfs-6.1.62-1.qubes.fc32.x86_64.img
Found linux image: /boot/vmlinuz-6.1.75-1.qubes.fc32.x86_64
Found initrd image: /boot/initramfs-6.1.75-1.qubes.fc32.x86_64.img
Found linux image: /boot/vmlinuz-6.1.62-1.qubes.fc32.x86_64
Found initrd image: /boot/initramfs-6.1.62-1.qubes.fc32.x86_64.img
done

Erasing : kernel-1000:6.1.57-1.qubes.fc32.x86_64 1/3
warning: file /boot/vmlinuz-6.1.57-1.qubes.fc32.x86_64: remove failed: No such file or directory
warning: file /boot/config-6.1.57-1.qubes.fc32.x86_64: remove failed: No such file or directory
warning: file /boot/System.map-6.1.57-1.qubes.fc32.x86_64: remove failed: No such file or directory

Erasing : kernel-modules-1000:6.1.57-1.qubes.fc32.x86_64 2/3
warning: file /lib/modules/6.1.57-1.qubes.fc32.x86_64/modules.softdep: remove failed: No such file or directory
warning: file /lib/modules/6.1.57-1.qubes.fc32.x86_64/modules.devname: remove failed: No such file or directory
warning: file /lib/modules/6.1.57-1.qubes.fc32.x86_64/modules.builtin.bin: remove failed: No such file or directory

Erasing : kernel-devel-1000:6.1.57-1.qubes.fc32.x86_64 3/3
Running scriptlet: kernel-devel-1000:6.1.57-1.qubes.fc32.x86_64 3/3
Verifying : kernel-1000:6.1.57-1.qubes.fc32.x86_64 1/3
Verifying : kernel-devel-1000:6.1.57-1.qubes.fc32.x86_64 2/3
Verifying : kernel-modules-1000:6.1.57-1.qubes.fc32.x86_64 3/3

Removed:
kernel-1000:6.1.57-1.qubes.fc32.x86_64
kernel-devel-1000:6.1.57-1.qubes.fc32.x86_64
kernel-modules-1000:6.1.57-1.qubes.fc32.x86_64

Try to install whonix-gateway-17 template again and if it’ll still need more free space then remove the remaining old unused kernel packages (6.1.62-1 version if kernel used by dom0 currently is 6.1.75-1).

[Main@dom0 ~]$ qvm-template install --enablerepo=qubes-templates-community whonix-gateway-17
‘/home/Main/.cache/qvm-template/qubes-template-whonix-gateway-17-0:4.0.6-202402022331.rpm’ already exists, skipping…
Installing template ‘whonix-gateway-17’…
tar: ./var/lib/qubes/vm-templates/whonix-gateway-17/root.img.part.01: Wrote only 2560 of 10240 bytes
tar: ./var/lib/qubes/vm-templates/whonix-gateway-17/vm-whitelisted-appmenus.list: Cannot write: No space left on device
tar: ./var/lib/qubes/vm-templates/whonix-gateway-17/whitelisted-appmenus.list: Cannot write: No space left on device
tar: Exiting with failure status due to previous errors
ERROR: Failed to extract whonix-gateway-17 template

Which command?

What’s the dom0 free space at this point?

df -h
sudo dnf remove kernel-6.1.62-1.qubes.fc32 kernel-devel-6.1.62-1.qubes.fc32 kernel-modules-6.1.62-1.qubes.fc32

[Main@dom0 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 6.1M 1.9G 1% /run
/dev/mapper/qubes_dom0-root 20G 18G 1.4G 93% /
tmpfs 1.9G 8.0K 1.9G 1% /tmp
xenstore 1.9G 0 1.9G 0% /var/lib/xenstored
/dev/sda1 974M 320M 587M 36% /boot
tmpfs 390M 24K 390M 1% /run/user/1000