You are not logged in.

#1 2020-04-27 21:16:59

barii
Member
Registered: 2009-04-09
Posts: 21

QEMU/KVM bridge networking to windows

Hi

I am trying create a network between my host linux, and guest windows, using virt-manager. As it was originally, I had an eth0 connection on my host, and internet connection on windows, but I couldn't access my NAS from the guest (or any other device on the network)
So I tried to follow this video to create a bridge: https://www.youtube.com/watch?v=rSxK_08LSZw
So basically this removes the eth0 connection, creates a bridge, adds eth0 to the bridge, and at this point, internet is back on the host.
I have this:

# ip add
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master bridge0 state UP group default qlen 1000
    link/ether 04:92:26:c2:c4:5c brd ff:ff:ff:ff:ff:ff
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
    link/ether 02:42:bb:9c:f4:49 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
20: bridge0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 04:92:26:c2:c4:5c brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.4/24 brd 192.168.0.255 scope global dynamic noprefixroute bridge0
       valid_lft 453sec preferred_lft 453sec
    inet6 fe80::d819:d707:818:8b5f/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
21: virbr1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:54:00:81:72:4f brd ff:ff:ff:ff:ff:ff
    inet 192.168.100.1/24 brd 192.168.100.255 scope global virbr1
       valid_lft forever preferred_lft forever
22: virbr1-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel master virbr1 state DOWN group default qlen 1000
    link/ether 52:54:00:81:72:4f brd ff:ff:ff:ff:ff:ff

# nmcli device
DEVICE      TYPE      STATE         CONNECTION     
bridge0     bridge    connected     bridge0         
docker0     bridge    connected     docker0         
eth0        ethernet  connected     bridge0 slave 1
virbr1      bridge    disconnected  --             
lo          loopback  unmanaged     --             
virbr1-nic  tun       unmanaged     --

At the end of the video, he opens  Right click on QEMU/KVM > details / Virtual networks, and the bridge is there. But not in my case. I had the default one only.
I tried to click the + icon, and selected: Forward to: Physical device eth0
For thee VM, I added a new network device:
Network source: Virtual network 'network': NAT to eth0
Device model: Virtuo

But after this, I don't have any network in my guest at all.

I tried to also follow QEMU article, Networking part, but it was not very clear, sometimes used different tools than what I have, and it is not using virt-manager like I do.


What can I try to do to make it work?
thanks

Offline

#2 2020-04-27 22:59:51

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 634

Re: QEMU/KVM bridge networking to windows

On a default install of QEMU/KVM with virt-manager all I had to do was add a route on the host that points to the bridge IP address.

Offline

Board footer

Powered by FluxBB