Guest User

Win 7 Passthrough XML

a guest
Jul 8th, 2017
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.60 KB | None | 0 0
  1. <domain type='kvm'>
  2.   <name>win7</name>
  3.   <uuid>c3d0f343-b13e-4dab-8040-3cf11827e964</uuid>
  4.   <memory unit='KiB'>16777216</memory>
  5.   <currentMemory unit='KiB'>16777216</currentMemory>
  6.   <vcpu placement='static'>8</vcpu>
  7.   <os>
  8.     <type arch='x86_64' machine='pc-i440fx-xenial'>hvm</type>
  9.     <loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_win7.fd</loader>
  10.     <nvram>/var/lib/libvirt/qemu/nvram/win7_VARS.fd</nvram>
  11.     <boot dev='hd'/>
  12.   </os>
  13.   <features>
  14.     <acpi/>
  15.     <apic/>
  16.     <kvm>
  17.       <hidden state='on'/>
  18.     </kvm>
  19.   </features>
  20.   <cpu mode='host-model'>
  21.     <model fallback='allow'/>
  22.     <topology sockets='2' cores='2' threads='2'/>
  23.   </cpu>
  24.   <clock offset='localtime'>
  25.     <timer name='rtc' tickpolicy='catchup'/>
  26.     <timer name='pit' tickpolicy='delay'/>
  27.     <timer name='hpet' present='no'/>
  28.   </clock>
  29.   <on_poweroff>destroy</on_poweroff>
  30.   <on_reboot>restart</on_reboot>
  31.   <on_crash>restart</on_crash>
  32.   <pm>
  33.     <suspend-to-mem enabled='no'/>
  34.     <suspend-to-disk enabled='no'/>
  35.   </pm>
  36.   <devices>
  37.     <emulator>/usr/bin/kvm-spice</emulator>
  38.     <disk type='file' device='disk'>
  39.       <driver name='qemu' type='qcow2'/>
  40.       <source file='/var/lib/libvirt/images/win7-1.qcow2'/>
  41.       <target dev='hda' bus='ide'/>
  42.       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  43.     </disk>
  44.     <disk type='file' device='cdrom'>
  45.       <driver name='qemu' type='raw'/>
  46.       <source file='/var/lib/kimchi/isos/Win7_Ult_SP1_English_COEM_x64.iso'/>
  47.       <target dev='hdb' bus='ide'/>
  48.       <readonly/>
  49.       <address type='drive' controller='0' bus='0' target='0' unit='1'/>
  50.     </disk>
  51.     <controller type='usb' index='0' model='ich9-ehci1'>
  52.       <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x7'/>
  53.     </controller>
  54.     <controller type='usb' index='0' model='ich9-uhci1'>
  55.       <master startport='0'/>
  56.       <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0' multifunction='on'$
  57.    </controller>
  58.     <controller type='usb' index='0' model='ich9-uhci2'>
  59.       <master startport='2'/>
  60.       <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x1'/>
  61.     </controller>
  62.     <controller type='usb' index='0' model='ich9-uhci3'>
  63.       <master startport='4'/>
  64.       <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x2'/>
  65.     </controller>
  66.     <controller type='pci' index='0' model='pci-root'/>
  67.     <controller type='ide' index='0'>
  68.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
  69.     </controller>
  70.     <controller type='virtio-serial' index='0'>
  71.       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
  72.     </controller>
  73.     <interface type='network'>
  74.       <mac address='52:54:00:54:9a:15'/>
  75.       <source network='main'/>
  76.       <model type='rtl8139'/>
  77.       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  78.     </interface>
  79.     <serial type='pty'>
  80.       <target port='0'/>
  81.     </serial>
  82.     <console type='pty'>
  83.       <target type='serial' port='0'/>
  84.     </console>
  85.     <channel type='spicevmc'>
  86.       <target type='virtio' name='com.redhat.spice.0'/>
  87.       <address type='virtio-serial' controller='0' bus='0' port='1'/>
  88.     </channel>
  89.     <input type='tablet' bus='usb'/>
  90.     <input type='mouse' bus='ps2'/>
  91.     <input type='keyboard' bus='ps2'/>
  92.     <graphics type='vnc' port='5900' autoport='no' listen='0.0.0.0'>
  93.       <listen type='address' address='0.0.0.0'/>
  94.     </graphics>
  95.     <sound model='ich6'>
  96.       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
  97.     </sound>
  98.     <video>
  99.       <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/>
  100.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
  101.     </video>
  102.     <hostdev mode='subsystem' type='pci' managed='yes'>
  103.       <source>
  104.         <address domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
  105.       </source>
  106.       <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
  107.     </hostdev>
  108.     <hostdev mode='subsystem' type='pci' managed='yes'>
  109.       <source>
  110.         <address domain='0x0000' bus='0x07' slot='0x00' function='0x1'/>
  111.       </source>
  112.       <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
  113.     </hostdev>
  114.     <redirdev bus='usb' type='spicevmc'>
  115.     </redirdev>
  116.     <redirdev bus='usb' type='spicevmc'>
  117.     </redirdev>
  118.     <memballoon model='virtio'>
  119.       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
  120.     </memballoon>
  121.   </devices>
  122. </domain>
Advertisement
Add Comment
Please, Sign In to add comment