subgraph-os-issues icon indicating copy to clipboard operation
subgraph-os-issues copied to clipboard

kvm nat dhcp issue

Open unsigned-nerd opened this issue 7 years ago • 2 comments
trafficstars

Hi,

I installed kvm with virt-manager. Then, I installed Debian 9 as a guest OS. There was no problem during the installation except that the auto network configuration (dhcp) failed. The default network configuration in kvm is NAT. I continued the installation without network configuration until it finished. Then, I logged in to the guest OS and tried "dhclient" command again without success. I also tried "iptables -P" to ACCEPT all the 3 policies on host OS without success. "dnsmasq" is installed as it is required during the creation of the guest OS with NAT (by default).

Thanks.

unsigned-nerd avatar Nov 26 '17 13:11 unsigned-nerd

I can confirm. I also having issue with Kvm-Qemu. Error : Could not start virtual network 'default' check usr/sbin/dnsmasq: no such file or directory. After installing dnsmasq dnsmasq-base, it creates the default network. Using virt-manager Error : connecting to graphical console: spiceclientgrk missing. After installing gir1.2-spice-client-gtk-3.0 gir1.2-spice-client-glib-2.0 Virt-manager and VM's power up okay but no network connection.

According to the Subgraph OS handbook, states: Qemu/KVM works as expected. Is this still the case with the new version of Subgraph or is this a bug ? Or is something special missing to connect to the oz-clear network ?

Thank You.

dance707 avatar Nov 30 '17 19:11 dance707

Here's what I do for a clearnet KVM vm:

sudo -g oz-openvpn [run kvm command]

However, there's one issue with this - relies on Tor for DNS (that's what gets exposed to guest via qemu DHCP). I manually put a DNS server of choice into /etc/resolv.conf to bypass this, since DNS over Tor from within a clearnet vm is less than ideal.

dma avatar Jan 06 '18 05:01 dma