q35-pcie-autoadd.xml 1.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<domain type='qemu'>
  <name>q35-test</name>
  <uuid>11dbdcdd-4c3b-482b-8903-9bdb8c0a2774</uuid>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static' cpuset='0-1'>2</vcpu>
  <os>
    <type arch='x86_64' machine='q35'>hvm</type>
    <boot dev='hd'/>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
16
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
    <controller type='virtio-serial'/>
    <controller type='scsi' model='virtio-scsi'/>
    <controller type='usb' model='nec-xhci'/>
    <disk type='block' device='disk'>
      <source dev='/dev/HostVG/QEMUGuest1'/>
      <target dev='vdb' bus='virtio'/>
    </disk>
    <filesystem type='mount'>
      <source dir='/export/to/guest'/>
      <target dir='/import/from/host'/>
    </filesystem>
    <video>
      <model type='virtio'/>
    </video>
    <interface type='user'>
      <mac address='00:11:22:33:44:55'/>
      <model type='virtio'/>
    </interface>
    <interface type='user'>
      <mac address='00:11:22:33:44:66'/>
      <model type='e1000e'/>
    </interface>
    <memballoon model='virtio'/>
    <rng model='virtio'>
      <rate bytes='123' period='1234'/>
      <backend model='random'>/dev/urandom</backend>
    </rng>
    <input type='passthrough' bus='virtio'>
      <source evdev='/dev/input/event1234'/>
    </input>
    <input type='mouse' bus='virtio'/>
    <input type='keyboard' bus='virtio'/>
    <input type='tablet' bus='virtio'/>
  </devices>
</domain>