I set up a new Kali HVM by following this article:
I logged into Kali and set the IP address, netmask, gateway, etc using several methods. The result was that I could ping 8.8.8.8 but not google dot com:
Use the Advanced Network Configuration GUI to set the parameters as they are shown in my Kali qube settings. I copied the ip, gateway, virtual DNS, and tried a netmask of 255.255.255.255 and 255.255.255.0. I also tried OpenDNS instead of the virtual DNS.
Same addressing as above, but I edited /etc/network/interfaces like this:
auto eth0
iface eth0 inet static
address 10.137.0.18
netmask 255.255.255.0
gateway 10.137.0.6
dns-nameservers (tried both virtual 10.139.1.1 and 208.67.220.220)
Same addressing but I followed this article and used systemd-networkd, so that my 50-static.network file looked like:
Hi. I can’t comment about this installation method, but some other methods in that guide are broken (such as the one where you start on debian and dist-updade into kali.
These guides break from time to time and if no one bothers to update them, they will stay like that and many users may fall into a trap. This seems to be one of those cases, which is unfortunate. Qubes has been purging out the external documentation from the “official docs” for this reason.
I would advise you checking out the kali template that’s being worked on.
It’s because of the nameservers in resolv.conf, do this:
sudo echo "nameserver 8.8.8.8" > /etc/resolv.conf
Now it should work. If you reboot the system you’ll have to do that again, otherwise place it in ~/.zshrc or whatever it is for zsh.
if this doesn’t work you’re probably messing something up with your firewall, check it through dom0 commandline: qvm-firewall <qube-name> list #execute this on dom0