How to Remove Failed Kali Installation

Tried installing Kali, but failed to expand my dom0 storage. So now I’m getting warnings that my varlibqubes is nearly full. I’m assuming this is due to “residue” from the Kali installation. There’s nothing in /var/lib/qubes with Kali’s name on it, but I did find something in /tmp…

[jason@dom0 var]$ sudo ls -alh /var/tmp/tmpbsa91dkf/var/lib/qubes/vm-templates/kali
total 8.7G
drwxrws--- 5 root qubes 4.0K Jun 17  2021 .
drwxr-xr-x 3 root root  4.0K Jan 11 00:49 ..
drwxrwxr-x 2 root qubes 4.0K Jun 17  2021 apps
drwxrwxr-x 2 root qubes 4.0K Jun 17  2021 apps.tempicons
drwxrwxr-x 2 root qubes 4.0K Jun 17  2021 apps.templates
-rw-rw---- 1 root qubes    0 Jun 17  2021 clean-volatile.img.tar
-rw-rw-r-- 1 root qubes   27 Jun 17  2021 netvm-whitelisted-appmenus.list
-rw-rw---- 1 root qubes 1.0G Jun 17  2021 root.img.part.00
-rw-rw---- 1 root qubes 1.0G Jun 17  2021 root.img.part.01
-rw-rw---- 1 root qubes 1.0G Jun 17  2021 root.img.part.02
-rw-rw---- 1 root qubes 1.0G Jun 17  2021 root.img.part.03
-rw-rw---- 1 root qubes 1.0G Jun 17  2021 root.img.part.04
-rw-rw---- 1 root qubes 1.0G Jun 17  2021 root.img.part.05
-rw-rw---- 1 root qubes 1.0G Jun 17  2021 root.img.part.06
-rw-rw---- 1 root qubes 1.0G Jun 17  2021 root.img.part.07
-rw-rw---- 1 root qubes 704M Jun 17  2021 root.img.part.08
-rw-rw---- 1 root qubes    0 Jun 17  2021 root.img.part.09
-rw-rw---- 1 root qubes    0 Jun 17  2021 root.img.part.10
-rw-rw-r-- 1 root qubes    0 Jun 17  2021 template.conf
-rw-rw-r-- 1 root qubes    0 Jun 17  2021 vm-whitelisted-appmenus.list
-rw-rw-r-- 1 root qubes    0 Jun 17  2021 whitelisted-appmenus.list

There’s at least 8G in those root images so is it safe to delete that directory?

Yes - it’s safe to remove that folder. :slight_smile:

While Qubes is installing a template, it puts the files for the disk image in

/var/tmp/tmp<some random string>/var/lib/qubes/vm-templates/..

Once the install is complete, those files are (or in this case ‘should be’) removed. :slight_smile:

2 Likes