Advertisement
Guest User

examine this

a guest
Aug 18th, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.75 KB | None | 0 0
  1. <domain type='kvm' id='2'>
  2.   <name>vm1</name>
  3.   <uuid>f6958833-174f-44e6-817b-2a6c73c6f041</uuid>
  4.   <memory unit='KiB'>4194304</memory>
  5.   <currentMemory unit='KiB'>4194304</currentMemory>
  6.   <vcpu placement='static'>4</vcpu>
  7.   <resource>
  8.     <partition>/machine</partition>
  9.   </resource>
  10.   <os>
  11.     <type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type>
  12.     <loader readonly='yes' type='pflash'>/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
  13.     <nvram>/var/lib/libvirt/qemu/nvram/vm1_VARS.fd</nvram>
  14.     <bootmenu enable='no'/>
  15.   </os>
  16.   <features>
  17.     <acpi/>
  18.     <apic/>
  19.     <pae/>
  20.     <hyperv>
  21.       <relaxed state='on'/>
  22.       <vapic state='on'/>
  23.       <spinlocks state='on' retries='8191'/>
  24.     </hyperv>
  25.   </features>
  26.   <cpu mode='host-model'>
  27.     <model fallback='allow'/>
  28.     <topology sockets='1' cores='4' threads='1'/>
  29.   </cpu>
  30.   <clock offset='localtime'>
  31.     <timer name='rtc' tickpolicy='catchup'/>
  32.     <timer name='pit' tickpolicy='delay'/>
  33.     <timer name='hpet' present='no'/>
  34.     <timer name='hypervclock' present='yes'/>
  35.   </clock>
  36.   <on_poweroff>destroy</on_poweroff>
  37.   <on_reboot>restart</on_reboot>
  38.   <on_crash>restart</on_crash>
  39.   <pm>
  40.     <suspend-to-mem enabled='no'/>
  41.     <suspend-to-disk enabled='no'/>
  42.   </pm>
  43.   <devices>
  44.     <emulator>/usr/bin/qemu-kvm</emulator>
  45.     <disk type='block' device='disk'>
  46.       <driver name='qemu' type='raw' cache='none' io='native'/>
  47.       <source dev='/dev/sda'/>
  48.       <backingStore/>
  49.       <target dev='sdb' bus='scsi'/>
  50.       <boot order='1'/>
  51.       <alias name='scsi0-0-0-1'/>
  52.       <address type='drive' controller='0' bus='0' target='0' unit='1'/>
  53.     </disk>
  54.     <disk type='file' device='disk'>
  55.       <driver name='qemu' type='raw' cache='none' io='native' discard='unmap'/>
  56.       <source file='/var/lib/libvirt/images/vm1.raw'/>
  57.       <backingStore/>
  58.       <target dev='sdc' bus='scsi'/>
  59.       <alias name='scsi0-0-0-2'/>
  60.       <address type='drive' controller='0' bus='0' target='0' unit='2'/>
  61.     </disk>
  62.     <disk type='file' device='cdrom'>
  63.       <driver name='qemu' type='raw'/>
  64.       <source file='/mnt/hdd/qemu/windows10.iso'/>
  65.       <backingStore/>
  66.       <target dev='hda' bus='ide'/>
  67.       <readonly/>
  68.       <alias name='ide0-0-0'/>
  69.       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  70.     </disk>
  71.     <disk type='file' device='cdrom'>
  72.       <driver name='qemu' type='raw'/>
  73.       <source file='/usr/share/virtio-win/virtio-win.iso'/>
  74.       <backingStore/>
  75.       <target dev='hdb' bus='ide'/>
  76.       <readonly/>
  77.       <alias name='ide0-0-1'/>
  78.       <address type='drive' controller='0' bus='0' target='0' unit='1'/>
  79.     </disk>
  80.     <controller type='usb' index='0' model='ich9-ehci1'>
  81.       <alias name='usb0'/>
  82.       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
  83.     </controller>
  84.     <controller type='usb' index='0' model='ich9-uhci1'>
  85.       <alias name='usb0'/>
  86.       <master startport='0'/>
  87.       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
  88.     </controller>
  89.     <controller type='usb' index='0' model='ich9-uhci2'>
  90.       <alias name='usb0'/>
  91.       <master startport='2'/>
  92.       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
  93.     </controller>
  94.     <controller type='usb' index='0' model='ich9-uhci3'>
  95.       <alias name='usb0'/>
  96.       <master startport='4'/>
  97.       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
  98.     </controller>
  99.     <controller type='pci' index='0' model='pci-root'>
  100.       <alias name='pci.0'/>
  101.     </controller>
  102.     <controller type='virtio-serial' index='0'>
  103.       <alias name='virtio-serial0'/>
  104.       <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
  105.     </controller>
  106.     <controller type='ide' index='0'>
  107.       <alias name='ide0'/>
  108.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
  109.     </controller>
  110.     <controller type='scsi' index='0' model='virtio-scsi'>
  111.       <driver queues='4'/>
  112.       <alias name='scsi0'/>
  113.       <address type='pci' domain='0x0000' bus='0x00' slot='0x0e' function='0x0'/>
  114.     </controller>
  115.     <interface type='network'>
  116.       <mac address='52:54:00:51:f4:85'/>
  117.       <source network='default' bridge='virbr0'/>
  118.       <target dev='vnet0'/>
  119.       <model type='rtl8139'/>
  120.       <alias name='net0'/>
  121.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
  122.     </interface>
  123.     <serial type='pty'>
  124.       <source path='/dev/pts/2'/>
  125.       <target port='0'/>
  126.       <alias name='serial0'/>
  127.     </serial>
  128.     <console type='pty' tty='/dev/pts/2'>
  129.       <source path='/dev/pts/2'/>
  130.       <target type='serial' port='0'/>
  131.       <alias name='serial0'/>
  132.     </console>
  133.     <channel type='spicevmc'>
  134.       <target type='virtio' name='com.redhat.spice.0' state='disconnected'/>
  135.       <alias name='channel0'/>
  136.       <address type='virtio-serial' controller='0' bus='0' port='1'/>
  137.     </channel>
  138.     <input type='mouse' bus='usb'>
  139.       <alias name='input0'/>
  140.     </input>
  141.     <input type='mouse' bus='ps2'/>
  142.     <input type='keyboard' bus='ps2'/>
  143.     <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1'>
  144.       <listen type='address' address='127.0.0.1'/>
  145.     </graphics>
  146.     <video>
  147.       <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/>
  148.       <alias name='video0'/>
  149.       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
  150.     </video>
  151.     <hostdev mode='subsystem' type='pci' managed='yes'>
  152.       <driver name='vfio'/>
  153.       <source>
  154.         <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  155.       </source>
  156.       <alias name='hostdev0'/>
  157.       <rom bar='on' file='/mnt/hdd/qemu/hybridmagic.rom'/>
  158.       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  159.     </hostdev>
  160.     <hostdev mode='subsystem' type='pci' managed='yes'>
  161.       <driver name='vfio'/>
  162.       <source>
  163.         <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
  164.       </source>
  165.       <alias name='hostdev1'/>
  166.       <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
  167.     </hostdev>
  168.     <hostdev mode='subsystem' type='pci' managed='yes'>
  169.       <driver name='vfio'/>
  170.       <source>
  171.         <address domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
  172.       </source>
  173.       <alias name='hostdev2'/>
  174.       <rom bar='on' file='/mnt/hdd/qemu/hybridmagic.rom'/>
  175.       <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
  176.     </hostdev>
  177.     <hostdev mode='subsystem' type='pci' managed='yes'>
  178.       <driver name='vfio'/>
  179.       <source>
  180.         <address domain='0x0000' bus='0x02' slot='0x00' function='0x1'/>
  181.       </source>
  182.       <alias name='hostdev3'/>
  183.       <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
  184.     </hostdev>
  185.     <hostdev mode='subsystem' type='pci' managed='yes'>
  186.       <driver name='kvm'/>
  187.       <source>
  188.         <address domain='0x0000' bus='0x00' slot='0x14' function='0x2'/>
  189.       </source>
  190.       <alias name='hostdev4'/>
  191.       <address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
  192.     </hostdev>
  193.     <redirdev bus='usb' type='spicevmc'>
  194.       <alias name='redir0'/>
  195.     </redirdev>
  196.     <redirdev bus='usb' type='spicevmc'>
  197.       <alias name='redir1'/>
  198.     </redirdev>
  199.     <memballoon model='virtio'>
  200.       <alias name='balloon0'/>
  201.       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
  202.     </memballoon>
  203.   </devices>
  204.   <seclabel type='dynamic' model='selinux' relabel='yes'>
  205.     <label>system_u:system_r:svirt_t:s0:c330,c694</label>
  206.     <imagelabel>system_u:object_r:svirt_image_t:s0:c330,c694</imagelabel>
  207.   </seclabel>
  208. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement