Last active
March 10, 2018 08:29
-
-
Save iamtakingiteasy/7d4bc7a580deef0eab357e9d19d68d03 to your computer and use it in GitHub Desktop.
CirnOS libvirt win10 domain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> | |
<name>win10-cirnos</name> | |
<memory unit='GiB'>16</memory> | |
<currentMemory unit='GiB'>16</currentMemory> | |
<vcpu placement='static'>16</vcpu> | |
<os> | |
<type arch='x86_64' machine='pc-i440fx-2.11'>hvm</type> | |
<loader type='pflash'>/usr/share/ovmf/x64/OVMF_CODE.fd</loader> | |
<nvram template='/usr/share/ovmf/x64/OVMF_VARS.fd'>/var/lib/libvirt/nvram/win10_VARS.fd</nvram> | |
<bootmenu enable='no'/> | |
</os> | |
<features> | |
<acpi/> | |
<apic/> | |
<hyperv> | |
<relaxed state='on'/> | |
<vapic state='on'/> | |
<spinlocks state='on' retries='8191'/> | |
<runtime state='on'/> | |
<synic state='on'/> | |
<reset state='on'/> | |
<vendor_id state='on' value='CirnOS'/> | |
</hyperv> | |
<kvm> | |
<hidden state='on'/> | |
</kvm> | |
</features> | |
<cpu mode='host-passthrough'> | |
<topology sockets='1' cores='8' threads='2'/> | |
<cache mode='passthrough'/> | |
</cpu> | |
<clock offset='localtime'> | |
<timer name='rtc' tickpolicy='catchup'/> | |
<timer name='pit' tickpolicy='delay'/> | |
<timer name='hpet' present='no'/> | |
<timer name='hypervclock' present='yes'/> | |
</clock> | |
<on_poweroff>destroy</on_poweroff> | |
<on_reboot>restart</on_reboot> | |
<on_crash>destroy</on_crash> | |
<pm> | |
<suspend-to-mem enabled='no'/> | |
<suspend-to-disk enabled='no'/> | |
</pm> | |
<devices> | |
<emulator>/usr/bin/qemu-system-x86_64</emulator> | |
<disk type='file' device='disk'> | |
<driver name='qemu' type='raw'/> | |
<source file='/dev/data/winx-root'/> | |
<target dev='hda' bus='ide'/> | |
<boot order='1'/> | |
<alias name='winx-root'/> | |
</disk> | |
<disk type='file' device='disk'> | |
<driver name='qemu' type='raw'/> | |
<source file='/dev/data/winx-data'/> | |
<target dev='hdb' bus='ide'/> | |
<alias name='winx-data'/> | |
</disk> | |
<disk type='file' device='cdrom'> | |
<source file='/home/virtual/Win10_1709_EnglishInternational_x64.iso'/> | |
<target dev='hdc' bus='ide'/> | |
<readonly/> | |
<alias name='cdrom'/> | |
</disk> | |
<controller type='pci' index='0' model='pci-root'> | |
<alias name='pci'/> | |
</controller> | |
<controller type='usb' index='0' model='nec-xhci'> | |
<alias name='usb'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x00' function='0x0'/> | |
</controller> | |
<controller type='ide' index='0'> | |
<alias name='ide'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> | |
</controller> | |
<interface type='bridge'> | |
<mac address='52:54:00:49:a6:64'/> | |
<source bridge='br0'/> | |
<model type='rtl8139'/> | |
<alias name='net'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> | |
</interface> | |
<sound model='ac97'> | |
<alias name='sound0'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> | |
</sound> | |
<hostdev mode='subsystem' type='pci' managed='yes'> | |
<driver name='vfio'/> | |
<source> | |
<address domain='0x0000' bus='0x65' slot='0x00' function='0x0'/> | |
</source> | |
<alias name='gpu'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> | |
</hostdev> | |
<hostdev mode='subsystem' type='pci' managed='yes'> | |
<driver name='vfio'/> | |
<source> | |
<address domain='0x0000' bus='0x65' slot='0x00' function='0x1'/> | |
</source> | |
<alias name='gpu-audio'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> | |
</hostdev> | |
<hostdev mode='subsystem' type='usb' managed='yes'> | |
<source> | |
<vendor id='0x17ef'/> | |
<product id='0x609c'/> | |
</source> | |
<alias name='keyboard'/> | |
<address type='usb' bus='0' port='1'/> | |
</hostdev> | |
<hostdev mode='subsystem' type='usb' managed='yes'> | |
<source> | |
<vendor id='0x1532'/> | |
<product id='0x0042'/> | |
</source> | |
<alias name='mouse'/> | |
<address type='usb' bus='0' port='2'/> | |
</hostdev> | |
</devices> | |
<qemu:commandline> | |
<qemu:env name='QEMU_AUDIO_DRV' value='pa'/> | |
<qemu:env name='QEMU_PA_SERVER' value='127.0.0.1'/> | |
</qemu:commandline> | |
</domain> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment