Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

Slow network performance for single Windows VM with libvirt

$
0
0
Hi Everyone,

I've been struggling to figure out why my Windows 10 VM has slow network performance. The host box is a dedicated server with decent network connectivity (gigabit connection at a server farm). The host box has Ubuntu 18.04.4 LTS and runs one Windows VM only, on which I get 2MBit/sec max download speed. I've searched high and low for possible configuration options (different virtual network interfaces, different network setup), but nothing seems to improve the situation. I'd appreciate any ideas. Below my configuration files:

windows-vm.xml

Code:

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>windows-vm</name>
  <uuid>d401c81e-67e4-4cc9-b5a8-a5d7f66d3cc8</uuid>
  <memory unit='KiB'>29360128</memory>
  <currentMemory unit='KiB'>29360128</currentMemory>
  <memoryBacking>
    <hugepages/>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>4</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.11'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
    <hap state='on'/>
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
    </hyperv>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='4' threads='1'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='hypervclock' present='yes'/>
    <timer name='rtc' tickpolicy='catchup' track='guest'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none' io='native' discard='unmap'/>
      <source file='/dev/vg0/img-001'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <controller type='usb' index='0' model='piix3-uhci'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <interface type='bridge'>
      <mac address='52:54:00:0d:32:12'/>
      <source bridge='virbr0'/>
      <model type='e1000'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <input type='tablet' bus='usb'>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'>
      <listen type='address'/>
    </graphics>
    <video>
      <model type='vga' vram='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='none'/>
  </devices>
  <qemu:commandline>
    <qemu:env name='TZ' value='Europe/Berlin'/>
  </qemu:commandline>
</domain>

network.xml

Code:

<network>
  <name>default</name>
  <uuid>b891433a-625a-11e3-ac4d-270222b9750c</uuid>
  <forward mode='nat'>
    <nat>
      <port start='1024' end='65535'/>
    </nat>
  </forward>
  <bridge name='virbr0' stp='on' delay='0'/>
  <mac address='52:54:00:67:c7:1c'/>
  <domain name='...'/>
  <dns>
    <host ip='...'>
      <hostname>vm-host</hostname>
    </host>
  </dns>
  <ip address='192.168.0.1' netmask='255.255.255.0'>
    <dhcp>
      <host mac='52:54:00:0d:32:12' name='windows-vm...' ip='192.168.0.212'/>
    </dhcp>
  </ip>
</network>


Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>