<node>

  <cpu>
    <nodes>1</nodes>
    <sockets>4</sockets>
    <cores>4</cores>
    <threads>1</threads>
    <active>4</active>
    <mhz>4000</mhz>
    <model>i686</model>
  </cpu>
  <memory>10000000</memory>




  <!-- ####### -->
  <!-- Domains -->
  <!-- ####### -->

<domain type='test'>
  <name>test</name>
  <uuid>4a64cc71-19c4-2fd0-2323-3050941ea3c3</uuid>
  <memory>8388608</memory>
  <currentMemory>2097152</currentMemory>
  <vcpu>2</vcpu>
  <os>
    <type arch='i686'>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>
  </devices>
</domain>


<domain type='test'>
  <name>test-collide</name>
  <currentMemory>204800</currentMemory>
  <memory>409600</memory>
  <uuid>12345678-1234-FFFF-1234-12345678FFFF</uuid>
  <os>
    <type arch='i686'>hvm</type>
    <loader>/usr/lib/xen/boot/hvmloader</loader>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/><apic/>
  </features>
  <clock offset="utc"/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <vcpu>5</vcpu>
  <devices>
    <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
    <disk type='file' device='disk'>
      <source file='/dev/default-pool/collidevol1.img'/>
      <target dev='hda' bus='ide'/>
      <driver type="qcow2"/>
    </disk>
    <interface type='user'>
      <mac address='22:11:11:11:11:11'/>
    </interface>
    <parallel type='file'>
      <source path='/tmp/foo.log'/>
    </parallel>
  </devices>
</domain>


<domain type='test'>
   <name>test-for-virtxml</name>
  <metadata>
    <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
      <libosinfo:os id="http://fedoraproject.org/fedora/27"/>
    </libosinfo:libosinfo>
  </metadata>
  <currentMemory>204800</currentMemory>
  <memory>409600</memory>
  <blkiotune>
    <weight>100</weight>
    <device>
      <path>/dev/sdd</path>
      <weight>200</weight>
    </device>
  </blkiotune>
  <memoryBacking>
    <hugepages/>
  </memoryBacking>
  <uuid>12345678-12F4-1234-1234-123456789012</uuid>
  <os>
    <type arch='i686'>hvm</type>
    <loader>/usr/lib/xen/boot/hvmloader</loader>
  </os>
  <idmap>
    <uid start='0' target='1000' count='10'/>
    <gid start='0' target='1000' count='10'/>
  </idmap>
  <description>Test VM for virtxml cli tests
  </description>
  <features>
    <acpi/>
    <apic eoi='off'/>
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='12287'/>
    </hyperv>
  </features>
  <clock offset="utc">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <vcpu cpuset="1,2,5-9,11,13-14">9</vcpu>
  <numatune>
    <memory mode='interleave' placement='auto'/>
  </numatune>
  <cpu match="exact">
    <model>core2duo</model>
    <vendor>Intel</vendor>
    <feature policy="require" name="pbe"/>
    <feature policy="require" name="tm2"/>
    <feature policy="require" name="est"/>
    <feature policy="require" name="ss"/>
    <feature policy="require" name="ht"/>
    <feature policy="require" name="ds"/>
    <feature policy="require" name="lahf_lm"/>
    <feature policy="require" name="tm"/>
    <feature policy="require" name="cx16"/>
    <feature policy="require" name="vmx"/>
    <feature policy="require" name="ds_cpl"/>
    <feature policy="require" name="xtpr"/>
    <feature policy="require" name="acpi"/>
    <numa>
      <cell id='0' cpus='0' memory='1048576' unit='KiB'/>
      <cell id='1' cpus='1' memory='1048576' unit='KiB'/>
      <cell id='2' cpus='2' memory='1048576' unit='KiB'/>
      <cell id='3' cpus='3' memory='1048576' unit='KiB'/>
    </numa>
  </cpu>

  <pm>
    <suspend-to-mem enabled='no'/>
  </pm>

  <devices>
    <emulator>/usr/lib/xen/bin/qemu-dm</emulator>

    <disk type='block' device='floppy'>
      <source dev='/dev/null'/>
      <target dev='fda' bus='fdc'/>
      <boot order='5'/>
    </disk>
    <disk type='file' device='disk'>
      <source file='/tmp/foobar'/>
      <target dev='hda' bus='ide'/>
      <iotune>
        <read_bytes_sec>5242880</read_bytes_sec>
        <total_iops_sec>50</total_iops_sec>
      </iotune>
    </disk>
    <disk type='file' device='disk'>
      <driver name="qemu" type="qcow2" cache="none"/>
      <source file='/tmp/foobar2'>
        <seclabel model='dac' relabel='no'/>
      </source>
      <target dev='sda' bus='scsi'/>
      <boot order='1'/>
      <address type='drive' controller='9'/>
      <shareable/>
    </disk>

    <controller type='scsi' index='9' model='virtio-scsi'/>
    <controller type='usb'/>

    <interface type='network'>
      <source network='default'/>
      <mac address='22:22:33:54:32:10'/>
      <model type='e1000'/>
    </interface>
    <interface type='bridge'>
      <source bridge='br0'/>
      <mac address='22:00:00:44:AA:BF'/>
      <model type='e1000'/>
    </interface>
    <interface type='ethernet'>
      <mac address='00:11:7f:33:44:55'/>
      <script path='/etc/qemu-ifup'/>
      <target dev='nic02'/>
    </interface>

    <input type='mouse' bus='ps2'/>

    <graphics type='vnc' display=':3.4' xauth='/testdir/.Xauthority' fullscreen='yes'/>

    <sound model='sb16'/>
    <sound model='es1370'/>
    <sound model='ich6'/>

    <video>
      <model type='vmvga'/>
    </video>
    <video>
      <model type='cirrus' vram='10240' heads='3'/>
    </video>

    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x04b3'/>
        <product id='0x4485'/>
      </source>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address bus='0x00' slot='0x19' function="0x0"/>
      </source>
      <rom bar='off'/>
    </hostdev>

    <serial type='null'/>

    <parallel type='file'>
      <source path='/tmp/foo.log'/>
    </parallel>

    <console type='null'>
      <target type='serial'/>
    </console>
    <console type='pty'>
      <target type='virtio'/>
    </console>

    <channel type='pipe'>
      <source path='/tmp/guestfwd'/>
      <target type='guestfwd' address='10.0.2.1' port='4600'/>
    </channel>

    <watchdog model='ib700' action='poweroff'/>

    <smartcard mode='host'>
      <address type='ccid' controller='0' slot='0'/>
    </smartcard>

    <redirdev bus='usb' type='tcp'>
      <source mode='connect' host='localhost' service='4000'/>
      <protocol type='raw'/>
    </redirdev>

    <filesystem>
      <driver type='handle'/>
      <source dir='/foo/bar'/>
      <target dir='/bar/baz'/>
    </filesystem>

    <tpm model='tpm-tis'>
      <backend type='passthrough'>
        <device path='/dev/tzz'/>
      </backend>
    </tpm>

    <rng model='virtio'>
      <rate period='2000' bytes='1234'/>
      <backend model='egd' type='tcp'>
        <source mode='connect' host='1.2.3.4' service='1234'/>
      </backend>
    </rng>

    <panic>
      <address type='isa' iobase='0x505'/>
    </panic>

    <memballoon model='virtio'/>
  </devices>

  <seclabel model='selinux' type='dynamic'/>
</domain>


<domain type='test' xmlns:test='http://libvirt.org/schemas/domain/test/1.0'>
  <name>test-state-shutoff</name>
  <memory>1048576</memory>
  <bootloader>/tmp/bootfoo</bootloader>
  <test:runstate>5</test:runstate>
</domain>




<!-- ######## -->
<!-- Networks -->
<!-- ######## -->



<network>
  <name>default</name>
  <uuid>715666b7-dbd4-6c78-fa55-94863da09f2d</uuid>
  <forward mode='nat'/>
  <bridge name='virbr0' stp='on' forwardDelay='0' />
  <ip address='192.168.122.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.122.2' end='192.168.122.254' />
    </dhcp>
  </ip>
</network>






<!-- ####### -->
<!-- Storage -->
<!-- ####### -->



<pool type='dir'>
  <name>default-pool</name>
  <uuid>35bb2ad9-388a-cdfe-461a-b8907f6e53fe</uuid>
  <capacity>107374182400</capacity>
  <allocation>0</allocation>
  <available>107374182400</available>
  <source>
  </source>
  <target>
    <path>/dev/default-pool</path>
    <permissions>
      <mode>0700</mode>
      <owner>10736</owner>
      <group>10736</group>
    </permissions>
  </target>

  <volume type='file'>
    <name>default-vol</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <format type='qcow2'/>
      <permissions>
        <mode>0700</mode>
        <owner>10736</owner>
        <group>10736</group>
      </permissions>
    </target>
  </volume>
  <volume type='file'>
    <name>dir-vol</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <format type='dir'/>
      <permissions>
        <mode>0700</mode>
        <owner>10736</owner>
        <group>10736</group>
      </permissions>
    </target>
  </volume>
  <volume type='file'>
    <name>iso-vol</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <format type='iso'/>
      <permissions>
        <mode>0700</mode>
        <owner>10736</owner>
        <group>10736</group>
      </permissions>
    </target>
  </volume>
  <volume type='file'>
    <name>bochs-vol</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <format type='bochs'/>
      <permissions>
        <mode>0700</mode>
        <owner>10736</owner>
        <group>10736</group>
      </permissions>
    </target>
  </volume>
  <volume type='file'>
    <name>testvol1.img</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <format type='qcow2'/>
      <permissions>
        <mode>0700</mode>
        <owner>10736</owner>
        <group>10736</group>
      </permissions>
    </target>
  </volume>
  <volume type='file'>
    <name>testvol2.img</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <format type='qcow2'/>
      <permissions>
        <mode>0700</mode>
        <owner>10736</owner>
        <group>10736</group>
      </permissions>
    </target>
  </volume>
  <volume type='file'>
    <name>UPPER</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <permissions>
        <mode>0700</mode>
        <owner>10736</owner>
        <group>10736</group>
      </permissions>
    </target>
  </volume>
  <volume type='file'>
    <name>test-clone-simple.img</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <permissions>
        <mode>0700</mode>
        <owner>10736</owner>
        <group>10736</group>
      </permissions>
    </target>
  </volume>
  <volume type='file'>
    <name>collidevol1.img</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target/>
  </volume>
  <volume type='file'>
    <name>sharevol.img</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target/>
  </volume>
  <volume type='file'>
    <name>backingl3.img</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <format type='raw'/>
    </target>
  </volume>
  <volume type='file'>
    <name>backingl2.img</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <format type='qcow2'/>
    </target>
    <backingStore>
      <path>/dev/default-pool/backingl3.img</path>
    </backingStore>
  </volume>
  <volume type='file'>
    <name>backingl1.img</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <format type='qcow2'/>
    </target>
    <backingStore>
      <path>/dev/default-pool/backingl2.img</path>
    </backingStore>
  </volume>
  <volume type='file'>
    <name>overlay.img</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <format type='qcow2'/>
    </target>
    <backingStore>
      <path>/dev/default-pool/backingl1.img</path>
    </backingStore>
  </volume>


  <!-- fake arm media -->
  <volume type='file'>
    <name>test-arm-kernel</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <format type='raw'/>
    </target>
  </volume>
  <volume type='file'>
    <name>test-arm-initrd</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <format type='raw'/>
    </target>
  </volume>
  <volume type='file'>
    <name>test-arm-dtb</name>
    <capacity>1000000</capacity>
    <allocation>50000</allocation>
    <target>
      <format type='raw'/>
    </target>
  </volume>
</pool>







<!-- ####### -->
<!-- Devices -->
<!-- ####### -->



<device>
  <name>usb_device_4b3_4485_noserial</name>
  <parent>usb_device_1d6b_2_0000_00_1a_7</parent>
  <driver>
    <name>usb</name>
  </driver>
  <capability type='usb_device'>
    <bus>1</bus>
    <device>3</device>
    <product id='0x4485'>Serial Converter</product>
    <vendor id='0x04b3'>IBM Corp.</vendor>
  </capability>
</device>


</node>
