Windows 10: W10 VM Bridged networking QEMU/KVM (External Switch)

Discus and support W10 VM Bridged networking QEMU/KVM (External Switch) in Windows 10 Virtualization to solve the problem; Hi folks Really SIMPLE way of getting Bridged networking to work in QEMU KVM for proper VM access to rest of your LAN -- equivalent to external switch... Discussion in 'Windows 10 Virtualization' started by jimbo45, May 28, 2020.

  1. jimbo45 Win User

    W10 VM Bridged networking QEMU/KVM (External Switch)


    Hi folks Really SIMPLE way of getting Bridged networking to work in QEMU KVM for proper VM access to rest of your LAN -- equivalent to external switch in HYPER-V Note you need to do this after re-boot from host each time --you can set a script etc for permanence but as I don't boot the Host very often this works fine. 1) disable any DHCP from the PHYSICAL NIC i.e set the DHCP to disabled 2) enter these commands now : assuming eth0 is your physical NIC you are using brctl addbr br0 ifconfig eth0 0.0.0.0 brctl addif br0 eth0 dhclient br0 then hey presto you should see your bridge have an ip address (a real one) and the physical nic not have one. W10 VM Bridged networking QEMU/KVM (External Switch) [​IMG] Now in the Windows VM set the nic to use shared device -- your bridge br0 W10 VM Bridged networking QEMU/KVM (External Switch) [​IMG] it will now have a proper IP address on your LAN and this VM will be accessible to everything on your LAN (it can also access the rest of the LAN too) W10 VM Bridged networking QEMU/KVM (External Switch) [​IMG] I spent ages with all the quite complex answers on google and invariably ended up with a total mess --usually BOTH the physical NIC and the bridge (br0) having IP addresses so of course internet didn't work on host and VM !!!!!!! You need to install dhclient -- ifconfig is also deprecated bit it still is easier for this type of simple command. Cheers jimbo

    :)
     
    jimbo45, May 28, 2020
    #1
  2. jimbo45 Win User

    W10 VM Bridged networking QEMU/KVM (External Switch)

    Hi folks

    Really SIMPLE way of getting Bridged networking to work in QEMU KVM for proper VM access to rest of your LAN -- equivalent to external switch in HYPER-V

    Note you need to do this after re-boot from host each time --you can set a script etc for permanence but as I don't boot the Host very often this works fine.

    1) disable any DHCP from the PHYSICAL NIC i.e set the DHCP to disabled

    2) enter these commands now : assuming eth0 is your physical NIC you are using

    brctl addbr br0
    ifconfig eth0 0.0.0.0
    brctl addif br0 eth0
    dhclient br0

    then hey presto you should see your bridge have an ip address (a real one) and the physical nic not have one.


    W10 VM Bridged networking QEMU/KVM (External Switch) [​IMG]


    Now in the Windows VM

    set the nic to use shared device -- your bridge br0


    W10 VM Bridged networking QEMU/KVM (External Switch) [​IMG]


    it will now have a proper IP address on your LAN and this VM will be accessible to everything on your LAN (it can also access the rest of the LAN too)


    W10 VM Bridged networking QEMU/KVM (External Switch) [​IMG]


    I spent ages with all the quite complex answers on google and invariably ended up with a total mess --usually BOTH the physical NIC and the bridge (br0) having IP addresses so of course internet didn't work on host and VM !!!!!!!

    You need to install dhclient -- ifconfig is also deprecated bit it still is easier for this type of simple command.

    Cheers
    jimbo
     
    jimbo45, May 29, 2020
    #2
  3. jimbo45 Win User
    Networking on Windows VM from KVM/ QEMU Host via Bridge

    Hi folks

    For those running Windows VM's on Linux Hosts and want to try the Linux Hypervisor (VMWare and VBOX will run concurrently so you don't even need to power off any running Windows VM's) with decent networking you need to set up a network Bridge (roughly analogous to External Switch in HYPER-V). Otherwise the VM will have access to the Internet only and other parts of your LAN but no host access either way -- either from HOST TO VM or from VM to HOST.

    I've assumed you've already installed basic networking and managed to create a Virtual Machine . (You can create the bridge of course before creating the Virtual Machine to test if it's working properly).

    1) On the HOST install bridge-utils
    2) Create the bridge -- this is done with a simple file in /etc/netctl directory -- my example is kvm-bridge
    3) here's the simplest possible file . If you don't like the basic vi editor (ugh !!!!) you can use a wysisyg full screen editor e.g kate that allows root save to root access only folders.

    Interface=br0
    Connection=bridge
    BindsToInterfaces=(enp2s0f1) ===>to a physical device in your system --
    IP=dhcp

    4) start the bridge : netctl start kvm-bridge

    5) automatically start at Host boot

    netctl enable kvm-bridge

    6) Check via any command if interfaces all working (via ifconfig or any appropriate command). To display the bridge use the command brctl show.

    7) In Samba add these two lines to /etc/samba.conf file

    bind interfaces only = yes
    interfaces = br0 >>>>> Name of your bridge

    If you don't do this on the HOST (only) the host will not have any access to any VM's on the LAN whatever host they are attached to -- even those on different physical machines - it will still be able to access physical machines and the Internet though.

    8) in the VM config for windows (Easy GUI is to use lib-virt - Virtual machine manager) create virtual network --- specify network source -- etc as shown (for Virtio install the win-virtio drivers otherwise a physical nic card will come up - can be used also but virtio is streets ahead for better for Windows)


    W10 VM Bridged networking QEMU/KVM (External Switch) [​IMG]


    9) Now your VM has full network access


    W10 VM Bridged networking QEMU/KVM (External Switch) [​IMG]


    10 ) And from the HOST (Hestur) -- the 2nd VM is a VMWare W10 VM on a different host (wulf) not running KVM.


    W10 VM Bridged networking QEMU/KVM (External Switch) [​IMG]


    Job Done "Seeemples" !!!


    enjoy !!!! ( it's a lot more fun than just starting up VMWare player !!!!!)


    Cheers

    jimbo
     
    jimbo45, May 29, 2020
    #3
  4. W1zzard Win User

    W10 VM Bridged networking QEMU/KVM (External Switch)

    qemu-kvm

    i'm missing some kind of free gui based management thing for qemu-kvm that lets me do common VM tasks
     
    W1zzard, May 29, 2020
    #4
Thema:

W10 VM Bridged networking QEMU/KVM (External Switch)

Loading...
  1. W10 VM Bridged networking QEMU/KVM (External Switch) - Similar Threads - W10 Bridged networking

  2. Macrium restore of a QUEMU / KVM W10 VM

    in Windows 10 Virtualization
    Macrium restore of a QUEMU / KVM W10 VM: Hi folks One of the great things with QEMU/KVM VM's is that you can boot from physical devices INSIDE THE VM (and not just ISO's)-- I needed to restore a W10 VM as I'd hosed it up with some silly networking parameter errors etc. With the latest kernels you can Hot plug USB...
  3. Networking on Windows VM from KVM/ QEMU Host via Bridge

    in Windows 10 Virtualization
    Networking on Windows VM from KVM/ QEMU Host via Bridge: Hi folks For those running Windows VM's on Linux Hosts and want to try the Linux Hypervisor (VMWare and VBOX will run concurrently so you don't even need to power off any running Windows VM's) with decent networking you need to set up a network Bridge (roughly analogous to...
  4. VM via QEMU -- Photoshop and Multi Media devices acessible latest W10

    in Windows 10 Virtualization
    VM via QEMU -- Photoshop and Multi Media devices acessible latest W10: Hi folks All my Multi media devices readily accessible and Photoshop working with great performance (OK it's not the latest Photoshop -- I don't go for the "Monthly stuff" ) but this was the latest non subscription version = perfectly good enough for what I do. I'm running...
  5. Bridged networking to Windows VM from linux host

    in Windows 10 Network and Sharing
    Bridged networking to Windows VM from linux host: Hi folks I created a working bridge to a physical NIC as per : [[email protected] hrafn]# ifconfig enp2s0f1 0.0.0.0 [[email protected] hrafn]# brctl addbr br0 [[email protected] hrafn]# brctl addif br0 enp2s0f1 <==== one of my NIC physical interfaces - [[email protected]...
  6. Future of VM's - KVM, Windows and Vmware

    in Windows 10 Virtualization
    Future of VM's - KVM, Windows and Vmware: Hi Folks I thought this is a reasoned (for once) and decently written informative article --not a sales pitch that we so often get from "Pseudo Technical" articles written in such places like PC magazine etc. Anyway enjoy -- you don't have to agree with it but I found...
  7. KVM Host --W10 VM with HYPER -V running another VM (Nesting)

    in Windows 10 Virtualization
    KVM Host --W10 VM with HYPER -V running another VM (Nesting): Hi there. It seems some CPU's will handle HYPER-V in a VM running on a Host where a HYPERVISOR (KVM in this case) is already running. One needs to make a few mods otherwise booting up the VM running UNDER the HYPER-V (the 2nd level VM) will freeze. I'm currently...
  8. KVM - Windows 10 VM running with IE

    in Windows 10 Virtualization
    KVM - Windows 10 VM running with IE: Hi there Here's another VM running under KVM -- W10 showing IE running on it. [img] Cheers jimbo 47655
  9. KVM example -- W8.1 VM being created

    in Windows 10 Virtualization
    KVM example -- W8.1 VM being created: Hi there I wish I'd done this earlier -- really flexible and much better performance than vmware or even Esxi. (note - when setting up storage pool / volumes for the VM - select RAW rather than the default qcows / qemu. It probably won't make a noticeable difference if...
  10. VM networking NAT cannot connect to Bridged networking PC's

    in Windows 10 Network and Sharing
    VM networking NAT cannot connect to Bridged networking PC's: Hi there. one W10 VM is connected to LAN via NAT, other 4 via Bridged -- to SAME LAN. the NAT networked computer can see the others but can't access shared files. Changing to Bridged -- works OK. Was trying NAT as Bridged uses individual number of IP addresses -...