Van: Thiago Oliveira []
Verzonden: dinsdag 24 mei 2016 20:14
Aan: Dominique Ramaekers
Onderwerp: Re: [libvirt-users] Windows Server 2008 - KVM


Hi there!


I will do soon the disk config, but first I will do some labs.


I´m trying to install the virtio driver to comunicate using qemu-agent but when the driver is installed, the BSOD happens (win2k8 R2).

I tried with virtio-drivers version 100, 110 and 117, both happens BSOD.


Do you has a tip ? :)


Can’t really help you there… I’ve installed the virtio drivers on numerus Windows systems going from Windows-XP to Windows Server 2012R2. Never had BSOD…

I do remember having some trouble with the QXL graphics driver on one specific version of virtio, but that’s all and that should be resolved…



Thanks buddy!


2016-05-20 10:23 GMT-03:00 Dominique Ramaekers <>:



Van: Thiago Oliveira []
Verzonden: vrijdag 20 mei 2016 15:07
Aan: Dominique Ramaekers
Onderwerp: Re: [libvirt-users] Windows Server 2008 - KVM


Hi there!


Although the guest has 2GB memory, the windows guest was adjusted to support this.


I guess that the LVM is the best choice! I will save all images to other disk and re-build the partition with LVM. Do you recomend to use ext4 or zfs ?

You’ll have to convert the qcow to raw, create a LVM-volume (don’t create a file system on the volume), and dd the raw tot he LVM volume…


- About the apparmor, I have my doubts, I will try to disable and see what will happen!

- About the tablet input device, I removed! Some forums say that consuming idle cpu time. I know… Never could have verivied this…

- About the guest agent, I have installed, but the first service can´t start! 

The error says: A timeout was reached (30000 milliseconds) while waiting for the QEMU Guest Agent service to connect.

You’ll have to include the qemu-ga directives in the xml, that should do the trick:

<channel type='unix'>

      <source mode='bind'/>

      <target type='virtio' name='org.qemu.guest_agent.0'/>



Imagem inline 1


I´m using the virtio-win-0.1.117.iso, but I don´t know if this is updated.


Thanks for your reply and your help!


Thiago Oliveira








2016-05-20 8:31 GMT-03:00 Dominique Ramaekers <>:

Please check virtual memory usage in the guest. 2Gb memory is very low. I think your Windows guest is ‘swapping’ constantly. This combined with the less performant qcow format… Reading and writing to qcow takes up host cpu…


I don’t go under 3,5Gb for Windows Guests…


Tip: Take the time to learn LVM. Changing from an image file to LVM really pays off. I have a virtual host with RAID10 local storage. Changing to LVM gave me more than 25% performance boost.


For the rest, it seems ok.


Less important:

I have disabled apparmor security. This was done while using an older version of virsh and I had trouble with apparmor. I don’t know if apparmor has big performance influence.


Wasn’t there a tablet input device? Did you delete this device? I think it’s better to leave it. It has something to do with mouse usage in virt-viewer or vnc…


Install the guest agent on the guest and insert the needed XML-directives. It gives you more possibilities managing your guest like a backup with external snapshots.




Van: Thiago Oliveira []
Verzonden: vrijdag 20 mei 2016 13:07
n: Dominique Ramaekers
Onderwerp: Re: [libvirt-users] Windows Server 2008 - KVM


Hi there!


Sure......see below.


# virsh version

Compiled against library: libvirt 1.3.1

Using library: libvirt 1.3.1

Using API: QEMU 1.3.1

Running hypervisor: QEMU 2.5.0


# uname -a

Linux 4.4.0-22-generic #40-Ubuntu 16



<domain type='kvm' id='8'>




  <memory unit='KiB'>2097152</memory>

  <currentMemory unit='KiB'>2097152</currentMemory>

  <vcpu placement='static'>2</vcpu>





    <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>

    <boot dev='hd'/>

    <boot dev='cdrom'/>

    <bootmenu enable='yes'/>







  <cpu mode='host-passthrough'>

    <topology sockets='1' cores='2' threads='1'/>


  <clock offset='localtime'/>






    <disk type='file' device='disk'>

      <driver name='qemu' type='qcow2' cache='none' io='native'/>

      <source file='/mnt/VM_SAS/w2k8.img'/>


      <target dev='vda' bus='virtio'/>

      <alias name='virtio-disk0'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>


    <disk type='file' device='disk'>

      <driver name='qemu' type='raw'/>

      <source file='/mnt/VM_SAS/second_HD.raw'/>


      <target dev='vdb' bus='virtio'/>

      <alias name='virtio-disk1'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>


    <disk type='file' device='cdrom'>

      <driver name='qemu' type='raw'/>


      <target dev='hda' bus='ide' tray='open'/>


      <alias name='ide0-1-1'/>

      <address type='drive' controller='0' bus='1' target='0' unit='1'/>


    <controller type='pci' index='0' model='pci-root'>

      <alias name='pci.0'/>


    <controller type='ide' index='0'>

      <alias name='ide'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>


    <controller type='usb' index='0'>

      <alias name='usb'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>


    <interface type='network'>

      <mac address='52:54:00:c3:c9:f3'/>

      <source network='network_win' bridge='virbr0'/>

      <target dev='vnet1'/>

      <model type='virtio'/>

      <alias name='net0'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>


    <serial type='pty'>

      <source path='/dev/pts/1'/>

      <target port='0'/>

      <alias name='serial0'/>


    <console type='pty' tty='/dev/pts/1'>

      <source path='/dev/pts/1'/>

      <target type='serial' port='0'/>

      <alias name='serial0'/>


    <input type='mouse' bus='ps2'/>

    <input type='keyboard' bus='ps2'/>

    <graphics type='vnc' port='5901' autoport='yes' listen=''>

      <listen type='address' address=''/>



      <model type='cirrus' vram='16384' heads='1'/>

      <alias name='video0'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>


    <memballoon model='virtio'>

      <alias name='balloon0'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>



  <seclabel type='dynamic' model='apparmor' relabel='yes'>











2016-05-20 3:57 GMT-03:00 Dominique Ramaekers <>:



Van: [] Namens Thiago Oliveira
Verzonden: vrijdag 20 mei 2016 4:09
Onderwerp: [libvirt-users] Windows Server 2008 - KVM


Hi folks!


When I start the Windows Server 2008 guest, the host cpu grown up the utilization and the host load average too. Are there some tips to use Windows Server with libvirt?






Could you send the XML and the result of ‘virsh version’?