HVM Networking problems

Just trying to migrate my workstation to qubes for more security and needs HVM OS (Such as Ubuntu, Kali, BSD, etc) and i having too much problems to setup the network. Both sys-firewall and sys-whonix doesn’t work on my Kali HVM, BSD HVM and Ubuntu HVM. The only HVM that i succesfull set up the network was Windows 11, but i didn’t have to do nothing, the DHCP worked fine with Windows HVM.

Will use my Kali HVM with sys-whonix as a base to this topic:

sys-whonix Net qube:
IP: 10.137.0.18
Netmask: 255.255.255.255
Gatewat: 10.138.30.230
Virtual DNS: 10.139.1.1, 10.139.1.2

Kali HVM Net qube:
IP: 10.137.0.24
Netmask: 255.255.255.255
Gateway: 10.137.0.18
Virtual DNS: 10.139.1.1, 10.139.1.2

I already tried too many combinations on my Kali HVM and none of them worked. Such as:
Address: 10.137.0.18/10.137.0.19
Netmask: 255.255.255.255/255.0.0.0/255.255.192.0
Gateway: 10.137.0.18
DNS Servers: 10.137.0.18

When i do ping 1.1.1.1, it returns:
From 10.137.0.18 1cmp_seq=3 Destination Host Unreachable
When i do ping qubes-os.org, it returns:
ping: qubes-os.org: Temporary failure in name resolution
Can anyone help me to setup the network on my qube?

The Kali HVM settings tells you that the assigned IP is 10.137.0.24 based on what you provided. That’s the one you need to use for it to work properly.

I already tried to use 10.137.0.24. I forgot to put it, sorry. Another idea to fix the problem?

Are you sure all values are used correctly?
Make sure everything is set correctly in each row of the manual IPv4 settings in NetworkManager.

Yes. I put the following settings:
Address: 10.137.0.24
Netmask: 255.255.255.255, 255.255.192.0, 255.0.0.0 (i saw in another topic that put 255.0.0.0 could solve the problem, and “255.255.192.0” i used Vbox whonix settings as reference.
Gateway: 10.137.0.30
DNS Servers: 10.137.0.30

The gateway, in what you provided, was 10.137.0.18 but now it’s 10.137.0.30. Did you change the net qube of your Kali HVM?

Also, the DNS is not correct. It’s 10.139.1.1 and 10.139.1.2 as specified in the HVM settings.

Yes, just changed to another whonix gateway to have more safety etc.
I will send to you my settings:
Kali network settings:

Kali Net qube:

sys-whonix:

You have to follow what the Kali HVM settings is giving you. The gateway here is not 10.138.30.230 but 10.137.0.18.
Also, the first DNS IP is incorrect. Replace 137 with 139.

The photo that i send i just tried anothers combinations. Like putting the gateway IP as DNS server inside of Kali HVM to test if it would work, like it works on Vbox. And the DNS IP was my error, sorry. My actual network cfg is:

Address: 10.137.0.24
Netmask: 255.255.255.255
Gateway: 10.137.0.18
DNS servers: 10.139.1.1, 10.139.1.2

Tried changing the Netmask IP too, i saw in another topic that use 255.0.0.0 as netmask was a good idea and could solve the problem, but didn’t work too.

Are you still getting an unreachable error with this setup?
Can you try following the same process for your other HVMs and see if they are able to get connectivity with their own values? If they do, it’s probably a problem with Kali itself, even if it should work.

1 Like

Stop floundering about trying other combinations.
It helps neither you nor us.

  1. Go to the settings page of the HVM, and note down IP and gateway as
    shown there.
  2. In the HVM, set the IP of the NIC to value from 1
  3. Set the netmask to 255.0.0.0
  4. Set gateway to the value given in 1
  5. Set DNS servers to values given in 1
1 Like

Now it works, thank you!

Ok, sorry. I just said about other combinations to be sure that no one will come here and talk about combinations that i already tried.