#My network is borked after trying to get QEMU working

1 messages · Page 1 of 1 (latest)

modern thistle
#

What are you using to connect to the internet on the host? NetworkManager? netctl? dhcpcd?

#

Are you wired or wireless?

late crescent
#

Network manager with ethernet

modern thistle
#

What do things look like on the Qemu side of things? Mine looks like:
-net nic -net bridge,br={Bridge interface}

Make sure the bridged connection is correct and not the actual interface (br0 or br1 or whatever it's set to on your system)

#

Here are some commands for setting up a simple bridge, what I'd do to debug is disable anything network related, reboot and then run these commands:
ip link add name br0 type bridge
ip link set {YOUR NETWORK INTERFACE} up
ip link set dev br0 up
ip link set {YOUR NETWORK INTERFACE} master br0
dhcpcd br0

#

Then feed br0 into Qemu using
-net nic -net bridge,br=br0

#

If the above works then we know the issue is with network manager

glacial palm
#

what type of network are you trying to use on the VM?

late crescent
#

oops I did not mean to delete my message.

late crescent
late crescent
#

Idk what happened, but when I rebooted my host has no Ethernet device.

Unplugging and plugging back in do nothing

#

I tried reloading the modprobe r8168 drivers for my mobo but it fails to find them.

late crescent
#

Okay... Got the Ethernet working again... Geez

#

Now I got to fix my bridge...

late crescent
#

libvirtd has a default bridge virbr0

I don't believe I need to make my own bridge.

It looks like the bridge is set, looks like QEMU is working on its end.. but my host says it can't resolve DNS

late crescent
#

Okay, my host can connect to the Internet now.

Vm connects and has an IP but cannot connect to the Internet