[qubes-users] [TemplateVM error] could not resolve host: github.com #2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello there,

I was following the instructions listed here
(https://www.qubes-os.org/doc/pentesting/kali/#katoolin4_0) to create a
kali template vm and ran into the following error for Qubes 4.0

Assume a default configuration for the most part, as I have not done
much tweaking. I'm still a noob per my last post. Anyway I hope we can
help anyone else who runs into the same issue.

Error:

user@kali:~$ git clone https://github.com/LionSec/katoolin.git
Cloning into ‘katoolin’...
fatal: unable to access ‘https://github.com/LionSec/katoolin.git/’:
Could not resolve host: github.com

Attempted fixes prior to doing so are as follows:

1. Attempted to follow instructions listed here. No dice, same error


2.

applied the following commands (likely erroneously) based on this post


git config --global --unset http.proxy
git config --global --unset https.proxy

Please let me know if I accidentally broke something on a templatevm by
doing the above command.

I wanted to avoid breaking compartmentalization but could not figure out
a fix except for temporarily connecting the template vm to sys-firewall
long enough to download katoolin.

What would have been the appropriate way to resolve this error in
templateVMs? Let me know and thank you for your help

-----BEGIN PGP PUBLIC KEY BLOCK-----

mDMEXvNPzxYJKwYBBAHaRw8BAQdAl8KWTsa8HS2dXWQbNhG0OMPHq0FvQaCe4E4n
o1dZ+Ri0JVNldCBFbWVyYXVkZSA8c2V0ZW1lcmF1ZGVAcG9zdGVvLm5ldD6IlgQT
FgoAPhYhBDV0RdAajM9TmSl9/22aFflRo7e1BQJe80/PAhsDBQkJZgGABQsJCAcD
BRUKCQgLBRYCAwEAAh4BAheAAAoJEG2aFflRo7e1TxcBAO5iZc5Gi4Kaw2FBzyVg
9mkagWv13OBvZeBIpYeYx/rHAQCGS+oB23TA3v2+DHFJHsUXA4r93DvNoHkKJhoe
v6/qArg4BF7zT88SCisGAQQBl1UBBQEBB0B+voMSOto2it872wWBzLec/2aeIeDF
8SCL6iImyNKAAQMBCAeIfgQYFgoAJhYhBDV0RdAajM9TmSl9/22aFflRo7e1BQJe
80/PAhsMBQkJZgGAAAoJEG2aFflRo7e1zUsBAKlnnAbF6QpEUc3vpxxuahvhruBg
cYtMQVYPWyFABvy9AP0V+SoFLuSu/MPpBHlggIzt4Y08QzXylYxmhCg0+jawAA==
=XHqb
-----END PGP PUBLIC KEY BLOCK-----

user@kali:~$ git clone GitHub - LionSec/katoolin: Automatically install all Kali linux tools
Cloning into 'katoolin'...
fatal: unable to access 'GitHub - LionSec/katoolin: Automatically install all Kali linux tools':
Could not resolve host: github.com

Git does not know about the update proxy. Have a look at
Redirecting… under "updates proxy"
for the configuration. Use the following command to configure git with
this proxy:

git config --global http.proxy http://<proxy address>:<port>

Alternatively, download and verify katoolin in any other trusted AppVM
and use `qvm-copy` to move it over.

I recently came across this blog which uses salt to setup a kali machine. I haven't tried this, but you might find it useful:

We do have already Kali template. Only issue with missing DNF in bullseye prevent to build a full kali build. See notably https://github.com/QubesOS/qubes-issues/issues/6030#issuecomment-698667814 or other issues related to kali and bullseye.