Whonix 17 install issue

No luck in installing Whonix 17. Here is the output i get. I already attempted to increase the space of Dom0 to 40GB with some instructions i found online but it doesnt seem to have fixed the issue.

[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: 79%|▊| 639M/804M [02:29<00:3Error canonicalizing file: No space left on device (os error 28)

What if you first install only whonix-gateway-17 template and after it you try to install whonix-workstation-17?
Maybe it’s saving the temporary files to /tmp directory, check its usage.

[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 2048 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

Any instructions on check the usage?

df -h

[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 610M 97% /
tmpfs 1.9G 8.0K 1.9G 1% /tmp
xenstore 1.9G 0 1.9G 0% /var/lib/xenstored
/dev/sda1 974M 370M 537M 41% /boot
tmpfs 390M 24K 390M 1% /run/user/1000

Your dom0 root is out of free space.

Ok. that shouldnt be the case since i dont have much on this device. I also recently deleted whonix templates and some others i wasnt using. How to free it up?

The qubes are not stored in dom0 root, but in separate LVM pool so removing AppVMs or templates won’t change much for dom0 root.

What’s the output of this command in dom0?

du -sh /home

477M /home

477M /home

What’s the output of this command in dom0?

du -sh /var/*

Is there any sensitive information i should be worried about when pasting the output here?

There shouldn’t be any.
But you can just tell me what’s the size of the /var/log and /var/lib directories and any other directory with the size more than 100MB.

[Main@dom0 ~]$ du -sh /var/*
4.0K /var/adm
du: cannot read directory ‘/var/cache/private’: Permission denied
du: cannot read directory ‘/var/cache/salt/minion/roots/hash/base/_utils’: Permission denied
du: cannot read directory ‘/var/cache/salt/minion/roots/hash/base/_modules’: Permission denied
du: cannot read directory ‘/var/cache/salt/minion/roots/hash/base/_states’: Permission denied
du: cannot read directory ‘/var/cache/salt/minion/roots/hash/base/_grains’: Permission denied
du: cannot read directory ‘/var/cache/salt/minion/roots/hash/base/_pillar’: Permission denied
du: cannot read directory ‘/var/cache/salt/minion/files’: Permission denied
du: cannot read directory ‘/var/cache/salt/minion/file_lists’: Permission denied
du: cannot read directory ‘/var/cache/salt/minion/extmods’: Permission denied
du: cannot read directory ‘/var/cache/lightdm/dmrc’: Permission denied
du: cannot read directory ‘/var/cache/libvirt’: Permission denied
du: cannot read directory ‘/var/cache/ldconfig’: Permission denied
2.3M /var/cache
du: cannot read directory ‘/var/db/sudo’: Permission denied
8.0K /var/db
4.0K /var/empty
4.0K /var/ftp
4.0K /var/games
12K /var/kerberos
du: cannot read directory ‘/var/lib/private’: Permission denied
du: cannot read directory ‘/var/lib/mlocate’: Permission denied
du: cannot read directory ‘/var/lib/AccountsService/users’: Permission denied
du: cannot read directory ‘/var/lib/portables’: Permission denied
du: cannot read directory ‘/var/lib/lightdm-data/lightdm’: Permission denied
du: cannot read directory ‘/var/lib/libvirt/filesystems’: Permission denied
du: cannot read directory ‘/var/lib/libvirt/libxl’: Permission denied
du: cannot read directory ‘/var/lib/libvirt/boot’: Permission denied
du: cannot read directory ‘/var/lib/libvirt/images’: Permission denied
du: cannot read directory ‘/var/lib/rsyslog’: Permission denied
du: cannot read directory ‘/var/lib/selinux/final’: Permission denied
du: cannot read directory ‘/var/lib/selinux/minimum/active’: Permission denied
du: cannot read directory ‘/var/lib/xen/dump’: Permission denied
du: cannot read directory ‘/var/lib/polkit-1’: Permission denied
1.7G /var/lib
4.0K /var/local
0 /var/lock
du: cannot read directory ‘/var/log/private’: Permission denied
du: cannot read directory ‘/var/log/audit’: Permission denied
du: cannot read directory ‘/var/log/libvirt’: Permission denied
298M /var/log
0 /var/mail
4.0K /var/nis
4.0K /var/opt
4.0K /var/preserve
0 /var/run
du: cannot read directory ‘/var/spool/cron’: Permission denied
du: cannot read directory ‘/var/spool/at’: Permission denied
40K /var/spool
du: cannot read directory ‘/var/tmp/systemd-private-368232bc6c9a4957932a1d310a0a23e1-upower.service-MQhMag’: Permission denied
du: cannot read directory ‘/var/tmp/systemd-private-368232bc6c9a4957932a1d310a0a23e1-systemd-logind.service-h4aTWh’: Permission denied
du: cannot read directory ‘/var/tmp/systemd-private-368232bc6c9a4957932a1d310a0a23e1-dbus-broker.service-tQNjXf’: Permission denied
du: cannot read directory ‘/var/tmp/systemd-private-368232bc6c9a4957932a1d310a0a23e1-rtkit-daemon.service-jjw7pi’: Permission denied
48K /var/tmp
4.0K /var/yp

What’s the output of this command?

du -sh /var/lib/qubes/*
du -sh /var/lib/qubes/vm-kernels/*

I’m looking for a way to free up the space and what you can safely remove from your system.
Right now you can try to check if you have some unneeded files in your /home directory that you might be previously created there yourself.
You can also remove the logs in /var/log.
And you can remove the unused kernels using dnf remove package command.

[Main@dom0 ~]$ du -sh /var/lib/qubes/*
72K /var/lib/qubes/appvms
6.9M /var/lib/qubes/backup
32K /var/lib/qubes/qubes.xml
18M /var/lib/qubes/updates
1.6G /var/lib/qubes/vm-kernels
20K /var/lib/qubes/vm-templates
[Main@dom0 ~]$ du -sh /var/lib/qubes/vm-kernals/*
du: cannot access '/var/lib/qubes/vm-kernals/': No such file or directory
[Main@dom0 ~]$ du -sh /var/lib/qubes/vm-kernels

1.6G /var/lib/qubes/vm-kernels

Try this one again:

du -sh /var/lib/qubes/vm-kernels/*

[Main@dom0 ~]$ du -sh /var/lib/qubes/vm-kernels/*
543M /var/lib/qubes/vm-kernels/6.1.57-1.fc32
543M /var/lib/qubes/vm-kernels/6.1.62-1.fc32
543M /var/lib/qubes/vm-kernels/6.1.75-1.fc32

What’s the default kernel that you use for qubes?
You can check using this command:

qubes-prefs | grep default_kernel