subgraph / subgraph-os-issues

Subgraph OS issues repository
73 stars 10 forks source link

kvm nat dhcp issue #318

Open unsigned-nerd opened 6 years ago

unsigned-nerd commented 6 years ago

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.

dance707 commented 6 years ago

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.

dma commented 6 years ago

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.