Kali template available

Yes you can install it at the very beginning but you can also resize the dom0 pool to something like 30GB.

1 Like

that would be better to resize it for me, but I don*t know how to do it. But I will take a look if there is any documentation or sth how to resize this pool.
I can try it with a gpartd live cd. the unlock the complete partition and the it should be possible to see this partition and then encrypted it again. Maybe that is possible, or is there a easier and more secure way not to loose data from the dom0 terminal.
:slight_smile:

edit: gparted is not showing these partition whatever I do. I have to do it with LVM? IO need to read a bit at the weekend. Maybe I can fix it that will be great, because in future I will need more space in that part. cause I installed kde and else…

I tried to install qubes 4.1 with custom partition settings ,but always I select it, the Qubes 4.1 alpha.iso install crashes. Just installing with automatic partitioning is working for me

There is not qvm-volume extend or sth like that I can run in dom0 or to make it bigger;)?

So my “fix” was to reinstall qubes 4.1, and then at one of the first steps install the Kali template and then u have enough space left to install other things like kde or whatever u like. Think that was faster and more secure, then to change the root partition. I tried a few steps via lvm before, but got a smart event error at one of my disks, so I stopped it and did a fresh reinstall. While installing qubes 4.1 with usb it is important that no other usb is plugged in the notebook, because then u cannot create a usb qube and sys net fails to create with the error 4xxx. I have read this in an other topic but cannot find it and noticed that a second plugged in usb was my problem.

Hi everyone!

I left some feedback on the Kali template (R4.1) in the updates-status thread, along with the steps I followed in case anyone is unsure about how to install it.

if u are on qubes 4.1 then u only have to run the steps like described in post one here:
sudo qubes-dom0-update --enablerepo=qubes-templates-community-testing qubes-template-kali .
After installing open a terminal in the kali template and run apt update && apt upgrade as root, then u will be asked such thing, if ur a user of the “kali…” and some installation stettings. After installation u can select, like usual, some applications in the kali template settings of the qubes manager u like to show in ur starmenu and create kali based app vm’s and whatever u want :slight_smile:
Be aware that is only for qubes 4.1 alpha testing and not for Qubes 4.0x

Have a nice sunday and stay healthy lovely community

Ps: Maybe if u don*t have that anytime before u need to enable the testing repo via terminal or in the qubes manager - global settings - set testing updates at the dom0 section and run an update

I found an easy solution how to increase the root partition of dom0 for me and it works. If anybody has problems and the 20gb are not enough you can increase it using the kde-partitionmangager. This is available in sudo qubes-dom0-update kde-partitionmanager. Then u can select qubes-dom0 disk and increase the root to what size u need. Of course that is not a perfect solution ,but for people that don’t know how to do it with lvm or whatever it is a easy way.

Just a question: I cannot update the kali vm completely . At the qubes update manager it failed and if I do it in terminal there are 43 packages upgradable but if I run the command nothing needs to change. Is that usual or need I reinstall the vm and did a error at the first updating?
okay I now run apt-get autoremove and then apt-get update and upgrade again and now it is completely updated and everyhting is working :slight_smile:
thank you much:)

1 Like

I was able to install kali template on a Dell 5520 with no special adjustments. The kali tools I tried ran fine. The only problem I had was that it would not update. It starts the update process but halts after only a few seconds. I tried it via Qubes update and CLI with same result.

on edit; I did not see that @rasta was having the update error. I will try his solution and see if it works.

I am running a Kali TemplateVM that I Qubes-update on a daily basis.

Did you try to use Fedora-33 as TemplateVM for the default-mgmt-dvm? That was resolving my issues when I had some a while ago.

I am still having update issues with Kali. I have tried the above suggestions.

I ran Qubes update and it aborts after about 30 seconds

then I run terminal commands
These are the errors I’m getting from CLI

user@kali:~$ sudo apt-get update

  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://kali.download/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.
.................
user@kali:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
...................
Err:1 http://http.kali.org/kali kali-rolling/main amd64 bash amd64 5.0-7
  404  Not Found [IP: 127.0.0.1 8082]
Err:2 http://http.kali.org/kali kali-rolling/main amd64 rsyslog amd64 8.2008.0-1
  404  Not Found [IP: 127.0.0.1 8082]
Err:3 http://http.kali.org/kali kali-rolling/main amd64 keepassxc amd64 2.6.1+dfsg.1-1
  404  Not Found [IP: 127.0.0.1 8082]
Err:4 http://http.kali.org/kali kali-rolling/main amd64 libfreetype6 amd64 2.10.2+dfsg-3
  404  Not Found [IP: 127.0.0.1 8082]
.................
Err:1 http://http.kali.org/kali kali-rolling/main amd64 bash amd64 5.0-7
  404  Not Found [IP: 127.0.0.1 8082]
Err:2 http://http.kali.org/kali kali-rolling/main amd64 rsyslog amd64 8.2008.0-1
  404  Not Found [IP: 127.0.0.1 8082]
Err:3 http://http.kali.org/kali kali-rolling/main amd64 keepassxc amd64 2.6.1+dfsg.1-1
  404  Not Found [IP: 127.0.0.1 8082]
Err:4 http://http.kali.org/kali kali-rolling/main amd64 libfreetype6 amd64 2.10.2+dfsg-3
  404  Not Found [IP: 127.0.0.1 8082]

You have two separate issues:
You have an invalid GPG key -
wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
This will download the archive key and add it to the apt keyring, so you
can properly update.

Because you haven’t been able to update the package lists, you are still
referencing versions that have been dropped from kali-rolling.
Once you run a successful apt update then you will have the 8right*
versions.

Thank You @unman. This solution worked. I was able to update directly from cli in the kali qube but the Qubes Updater was still failing.

I followed @wind.gmbh and set my default-mgmt-dvm to Fedora-33 and now the Qubes Updater works .Thank you @wind.gmbh as well

1 Like

I use Zenmap (nmap gui) on an older stand-alone Kali install. This new Kali distro does not have it but it was easy enough to add following this guide. Zenmap -- Easy GUI version of Nmap
on edit: the guide is incomplete for Kali 2021.

After install, the template appmenu is populated witih Zenmap, but clicking them only gives you a flash of a window and then nothing.
I tried to launch Zenmap from terminal and this produced many dependency errors. Zenmap was not starting.

SOLVED- Kali dropped Python 2 in favor of Python 3 and Zenmap in its current incarnation depends on Python gtk2 module. I had to install Python gtk2 and its dependencies . Now Zenmap works like a charm.

BTW, Qubes 4.1 is really much more compatible (and stable) with my Dell 5520 with Xeon e3-1505, than any of the previous Qubes versions. I’ve used Qubes on this machine since Q3.1

Thanks to the Qubes team and the community for this excellent OS

1 Like

I tried the frist time to copy a file to the kali template appvm and template, but then I have got a fatal error of qfileagent and that don’t work. Just the folder of the incoming qube appears but not the file. Can I fix that anyway?
thank you again for ur great help and enjoy your weekend everybody :slight_smile:

Update: Some file type .doc for example ,but to copy .deb file works not.

Btw: to set fedora-33 as default-mgmt is working and solves the problem with updating over the qubes updater :slight_smile:
And that fix is working for the fed-33 template, kali ,deb-11 and the xfce templates.too. So I don’t have to update these vm’s from their terminals anymore.

Unfortunately for me that doesn’t work and I need to use these commands:
1.gpg --keyserver pgpkeys.mit.edu --recv-key ED444FF07D8D0BF6
2. gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
Then everything is fine :slight_smile:

Can you at least say why it didn’t work? That would be helpful to other
users.
If you don’t pipe to apt-key, what is the output?
wget -O - https://archive.kali.org/archive-key.asc

(It works for me)

With the current rolling kali, qubes-qube-manager can’t update with error:

Failed to apply DSA-4371 fix: dpkg-query: package ‘libapt-pkg5.0’ is not installed and no information is available Use dpkg --info (= dpkg-deb --info) to examine archive files. Error: Failed to get apt version

The issue is, python on the fully updated kali-rolling stdout appends the following to the output of the dsa-4371 script:

┏━(Message from Kali developers)
┃
┃ We have kept /usr/bin/python pointing to Python 2 for backwards
┃ compatibility. Learn how to change this and avoid this message:
┃ ⇒ https://www.kali.org/docs/general-use/python3-transition/
┃
┗━(Run “touch ~/.hushlogin” to hide this message)

So, to fix, on the kali template:

sudo touch ~root/.hushlogin

Then qubes-qube-manager should be able to update the template normally.


Also, after extending the root partition using kde’s partition manager, the install of the kali template still failed because the root-pool ran out of space and killed all vm’s (no vm could boot).

I think the fix was:

sudo lvextend -L 100GB qubes_dom0/root-pool

100GB is quite large, so adjust that to suite your needs.

Great work! Will definitely try it out when I get around to it.

Until then I’m throwing out anything OSX after 21 years on that stable platform, I’m just DONE with surveillance & corps run amok…

Will be Qubes all the way now!

1 Like

Is it also possible to open Kali VM like a whole as I did with Kali images on virtual box? Now I have a seperate menu item for terminal and Firefox. For a training I use an openvpn tunnel to network with servers. On my previous image I could open a webserver on a server that was accessible via the openvpn tunnel. Now with a separate instance of Firefox, this isn’t possible and the browser doesn’t run on top of the tunnel.

Hey guys,

When I’m trying to install the Kali template this is the error I am getting. What should I do?

[MIRROR] qubes-template-kali-4.0.6-202106171816.noarch.rpm: Curl error (23): Failed writing received data to disk/application for https://mirrors.edge.kernel.org/qubes/repo/yum/r4.1/templates-community-testing/rpm/qubes-template-kali-4.0.6-202106171816.noarch.rpm [Failure writing output to destination]
[FAILED] qubes-template-kali-4.0.6-202106171816.noarch.rpm: Curl error (23): Failed writing received data to disk/application for https://mirrors.edge.kernel.org/qubes/repo/yum/r4.1/templates-community-testing/rpm/qubes-template-kali-4.0.6-202106171816.noarch.rpm [Failure writing output to destination]

The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Error downloading packages:
  Curl error (23): Failed writing received data to disk/application for https://mirrors.edge.kernel.org/qubes/repo/yum/r4.1/templates-community-testing/rpm/qubes-template-kali-4.0.6-202106171816.noarch.rpm [Failure writing output to destination]

I’m not sure, it looks like a problem with the selected mirror.

Hi, I’m trying to update a kali template in the Qube Manager. I’m getting the error message about libapt-pkg5.0 is not installed.

I’m not sure if you meant

sudo touch ~root/.hushlogin

or

sudo touch ~/.hushlogin

I tried both and I still can’t update through Qube Manager.

I can update/upgrade in the kali template in a terminal just fine but I’m still having missing sound and video playback issues that I hope an update will fix.

sorry I’m new and I don’t know where to find log files but maybe there’s an easy fix I don’t know about?

Any help would be appreciated.