<div dir="ltr">here you are my xml for win 8.1.<div><br></div><div>I'm actually working on my wrapper script to clean as much as possible xml definition.<br><div><br></div><div><div><domain type='kvm' xmlns:qemu='<a href="http://libvirt.org/schemas/domain/qemu/1.0">http://libvirt.org/schemas/domain/qemu/1.0</a>'></div><div>  <name>win8.1</name></div><div>  <uuid>6efc8a3c-5c45-4d51-9fc6-a086d3e267b2</uuid></div><div>  <memory unit='KiB'>4194304</memory></div><div>  <currentMemory unit='KiB'>4194304</currentMemory></div><div>  <vcpu placement='static'>2</vcpu></div><div>  <os></div><div>    <type arch='x86_64' machine='pc-i440fx-2.5'>hvm</type></div><div>    <loader readonly='yes' type='pflash'>/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd</loader></div><div>    <nvram>/var/lib/libvirt/qemu/nvram/win8.1_VARS.fd</nvram></div><div>    <bootmenu enable='yes'/></div><div>  </os></div><div>  <features></div><div>    <acpi/></div><div>    <apic/></div><div>    <pae/></div><div>    <hyperv></div><div>      <relaxed state='on'/></div><div>      <vapic state='on'/></div><div>      <spinlocks state='on' retries='8191'/></div><div>    </hyperv></div><div>    <kvm></div><div>      <hidden state='on'/></div><div>    </kvm></div><div>  </features></div><div>  <cpu mode='custom' match='exact'></div><div>    <model fallback='allow'>Haswell</model></div><div>  </cpu></div><div>  <clock offset='localtime'></div><div>    <timer name='rtc' tickpolicy='catchup'/></div><div>    <timer name='pit' tickpolicy='delay'/></div><div>    <timer name='hpet' present='no'/></div><div>    <timer name='hypervclock' present='yes'/></div><div>  </clock></div><div>  <on_poweroff>destroy</on_poweroff></div><div>  <on_reboot>restart</on_reboot></div><div>  <on_crash>restart</on_crash></div><div>  <pm></div><div>    <suspend-to-mem enabled='no'/></div><div>    <suspend-to-disk enabled='no'/></div><div>  </pm></div><div>  <devices></div><div>    <emulator>/usr/sbin/qemu-system-x86_64</emulator></div><div>    <disk type='block' device='disk'></div><div>      <driver name='qemu' type='raw' cache='none' io='threads'/></div><div>      <source dev='/dev/mapper/vgSSD-logicSSD'/></div><div>      <target dev='vda' bus='virtio'/></div><div>      <boot order='3'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/></div><div>    </disk></div><div>    <disk type='block' device='disk'></div><div>      <driver name='qemu' type='raw' cache='none' io='threads'/></div><div>      <source dev='/dev/mapper/vgData-logicVirtual'/></div><div>      <target dev='vdb' bus='virtio'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/></div><div>    </disk></div><div>    <controller type='usb' index='0' model='ich9-ehci1'></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/></div><div>    </controller></div><div>    <controller type='usb' index='0' model='ich9-uhci1'></div><div>      <master startport='0'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/></div><div>    </controller></div><div>    <controller type='usb' index='0' model='ich9-uhci2'></div><div>      <master startport='2'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/></div><div>    </controller></div><div>    <controller type='usb' index='0' model='ich9-uhci3'></div><div>      <master startport='4'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/></div><div>    </controller></div><div>    <controller type='pci' index='0' model='pci-root'/></div><div>    <controller type='ide' index='0'></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/></div><div>    </controller></div><div>    <interface type='network'></div><div>      <mac address='52:54:00:76:8a:69'/></div><div>      <source network='default'/></div><div>      <model type='virtio'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/></div><div>    </interface></div><div>    <serial type='pty'></div><div>      <target port='0'/></div><div>    </serial></div><div>    <console type='pty'></div><div>      <target type='serial' port='0'/></div><div>    </console></div><div>    <input type='tablet' bus='usb'/></div><div>    <input type='mouse' bus='ps2'/></div><div>    <input type='keyboard' bus='ps2'/></div><div>    <graphics type='vnc' port='-1' autoport='yes'/></div><div>    <video></div><div>      <model type='vga' vram='16384' heads='1'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/></div><div>    </video></div><div>    <hostdev mode='subsystem' type='pci' managed='yes'></div><div>      <source></div><div>        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/></div><div>      </source></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/></div><div>    </hostdev></div><div>    <hostdev mode='subsystem' type='pci' managed='yes'></div><div>      <source></div><div>        <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/></div><div>      </source></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/></div><div>    </hostdev></div><div>    <memballoon model='virtio'></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/></div><div>    </memballoon></div><div>  </devices></div><div>  <qemu:commandline></div><div>    <qemu:arg value='-cpu'/></div><div>    <qemu:arg value='host,hv_vendor_id=deadbeef,kvm=off'/></div><div>  </qemu:commandline></div><div></domain></div></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-30 22:09 GMT+01:00 Eric Hattemer <span dir="ltr"><<a href="mailto:hattenator@gmail.com" target="_blank">hattenator@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10/30/2015 01:43 PM, Benjamin Slade wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Why is passing a physical drive not a good solution?  Part of the reason<br>
I wanted to do it like that was to allow for the option of dual booting.<br>
</blockquote>
<br></span>
I don't think there's anything wrong with that.  If you want to do it that way, more power to you.  I was doing that for a while, but my plan has always been to get my Windows VM so stable and awesome I never want to boot straight into Windows again.  I'm also interested in storage management, and Windows is absolutely garbage about that, in terms of things like volume snapshots, backups, ramdisks, multiple copy policies, etc.  So I'm using qcow2 now.  But if managing qcow2 images in interesting ways with snapshots and prefetching filesystem caches and other cool stuff isn't as compelling to you as being able to boot directly into Windows, then you should keep Windows on a primary partition.<br>
<br>
Personally I ran into a number of problems and confusion with libvirt and switched to doing raw qemu as root.  I'd like to use libvirt again, but just getting qemu working was a bit of an effort and I didn't want to wonder at each milestone whether I was having a qemu problem or a libvirt problem.  I never did solve the problem with libvirt and vfio on Fedora 22.  It was getting permission denied on /dev/vfio/*, so I chmodded those.  But now it hits a different error when issuing ioctl's or something against those.  I think maybe it has to do with locked memory or some other limit, but I cranked up everything from ulimit into /etc/security/limits.d, so I don't know what's left.  I think I'll have to turn on verbose limits.d logging in the kernel if I can remember how to do that.  I don't even know what user libvirtd runs as...  So my plan was to get sudo qemu working, then translate those settings into a virt-manager profile, using qemu:commandline only when necessary.<span class="HOEnZb"><font color="#888888"><br>
<br>
-Eric Hattemer</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
vfio-users mailing list<br>
<a href="mailto:vfio-users@redhat.com" target="_blank">vfio-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
</div></div></blockquote></div><br></div>