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 18.104.22.168 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:
iface eth0 inet static
dns-nameservers (tried both virtual 10.139.1.1 and 22.214.171.124)
Same addressing but I followed this article and used systemd-networkd, so that my 50-static.network file looked like:
After methods 1,2 and 3, the result is the same. I cannot ping google dot com or view the webpage but I can ping 126.96.36.199.
EDIT: I restarted the network services and sometimes the VM after each case.