July 18, 20178 yr Hello, I'm trying to get KVM working for the first time and seem to have run into a snag where the vm's dont get a ip address from the br0 network (bridged mode). This happens on Windows VM's and linux vm's (ive tried 3x now) as well as vm's that were imported form vmware..... I should mention here that i have installed the drivers for the hardware Here is a sample of a kvm xml file, and a screenshot of my network settings, as always thanks for anyhelp <domain type='kvm' id='10'> <name>Windows Server 2008</name> <uuid>0e2f63c5-e84e-4cf3-0e55-8763ea131434</uuid> <metadata> <vmtemplate xmlns="unraid" name="Windows Server 2008" icon="windows7.png" os="windows2008"/> </metadata> <memory unit='KiB'>2097152</memory> <currentMemory unit='KiB'>2097152</currentMemory> <memoryBacking> <nosharepages/> </memoryBacking> <vcpu placement='static'>2</vcpu> <cputune> <vcpupin vcpu='0' cpuset='0'/> <vcpupin vcpu='1' cpuset='1'/> </cputune> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-i440fx-2.7'>hvm</type> </os> <features> <acpi/> <apic/> <hyperv> <relaxed state='on'/> <vapic state='on'/> <spinlocks state='on' retries='8191'/> <vendor_id state='on' value='none'/> </hyperv> </features> <cpu mode='host-passthrough'> <topology sockets='1' cores='1' threads='2'/> </cpu> <clock offset='localtime'> <timer name='hypervclock' present='yes'/> <timer name='hpet' present='no'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/local/sbin/qemu</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source file='/mnt/user/VM/Windows Server 2008/vdisk1.img'/> <backingStore/> <target dev='hdc' bus='sata'/> <boot order='1'/> <alias name='sata0-0-2'/> <address type='drive' controller='0' bus='0' target='0' unit='2'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/user/isos/en_windows_server_2008_r2_x64_dvd_x15-50365.iso'/> <backingStore/> <target dev='hda' bus='usb'/> <readonly/> <boot order='2'/> <alias name='usb-disk0'/> <address type='usb' bus='0' port='1'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/user/isos/virtio-win-0.1.126-2.iso'/> <backingStore/> <target dev='hdb' bus='usb'/> <readonly/> <alias name='usb-disk1'/> <address type='usb' bus='0' port='2'/> </disk> <controller type='usb' index='0' model='ich9-ehci1'> <alias name='usb'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <alias name='usb'/> <master startport='0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/> </controller> <controller type='usb' index='0' model='ich9-uhci2'> <alias name='usb'/> <master startport='2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/> </controller> <controller type='usb' index='0' model='ich9-uhci3'> <alias name='usb'/> <master startport='4'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci.0'/> </controller> <controller type='sata' index='0'> <alias name='sata0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </controller> <controller type='virtio-serial' index='0'> <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </controller> <interface type='bridge'> <mac address='52:54:00:a3:be:33'/> <source bridge='br0'/> <target dev='vnet1'/> <model type='virtio'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='pty'> <source path='/dev/pts/1'/> <target port='0'/> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/1'> <source path='/dev/pts/1'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <channel type='unix'> <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-10-Windows Server 2008/org.qemu.guest_agent.0'/> <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/> <alias name='channel0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <input type='mouse' bus='ps2'> <alias name='input0'/> </input> <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> <graphics type='vnc' port='5901' autoport='yes' websocket='5701' listen='0.0.0.0' keymap='en-us'> <listen type='address' address='0.0.0.0'/> </graphics> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> </devices> <seclabel type='none' model='none'/> <seclabel type='dynamic' model='dac' relabel='yes'> <label>+0:+100</label> <imagelabel>+0:+100</imagelabel> </seclabel> </domain> Edited July 18, 20178 yr by acbaldwi add info
July 18, 20178 yr Author Just now, bonienl said: Did you install the virtio drivers for your network controller in Windows? Yup sure did, this is the thing i was troubleshooting on my own when i wrecked my network thanks for that again btw
July 19, 20178 yr Author I think i may have it, i had my network set to bond both of my nics with one being a backup the other the primary.... removed the bond and were good not i suspect thats not the correct behavior though
July 19, 20178 yr It should work with both bonding enabled or disabled. The key is to have bridging enabled and use 'br0' for the VM. If you use just a single interface then bonding is not really needed.
September 6, 20187 yr Wondering if this has been addressed? In an Ubuntu VM I'm not able to access the host network when using `br0` while it's bonded with `balance-rr`. If I undo the bonding it works as expected. Diagnostics and VM xml definition attached. Thanks! brontostorus-diagnostics-20180906-1008.zip vm.xml
September 6, 20187 yr Tested a new Ubuntu install on a system with Unraid 6.5.3 and a bonded interface with 4 members set as 802.3ad (lacp) and bridge enabled. All working correctly. In general it is not recommended to use the round-robin setting, many switches can not cope with the changing link.
Archived
This topic is now archived and is closed to further replies.