<!--
    @configure_input@
    Copyright (C) 2013-2025 Red Hat Inc.

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

    Test XML for test-qemu-drive-libvirt.sh
-->
<node>

  <domain type='test' xmlns:test='http://libvirt.org/schemas/domain/test/1.0'>
    <test:runstate>5</test:runstate> <!-- 5 == VIR_DOMAIN_SHUTOFF -->
    <name>ceph1</name>
    <memory>1048576</memory>
    <os>
      <type>hvm</type>
      <boot dev='hd'/>
    </os>
    <devices>
      <disk type='network' device='disk'>
        <driver name='qemu'/>
        <source protocol='rbd' name='abc-def/ghi-jkl'>
          <host name='1.2.3.4' port='1234'/>
          <host name='1.2.3.5' port='1235'/>
          <host name='1.2.3.6' port='1236'/>
          <host name='[fe80::1]' port='1237'/>
        </source>
        <target dev='vda' bus='virtio'/>
      </disk>
    </devices>
  </domain>

  <domain type='test' xmlns:test='http://libvirt.org/schemas/domain/test/1.0'>
    <test:runstate>5</test:runstate> <!-- 5 == VIR_DOMAIN_SHUTOFF -->
    <name>ceph2</name>
    <memory>1048576</memory>
    <os>
      <type>hvm</type>
      <boot dev='hd'/>
    </os>
    <devices>
      <disk type='network' device='disk'>
        <driver name='qemu'/>
        <source protocol='rbd' name='abc-def/ghi-jkl'/>
        <target dev='vda' bus='virtio'/>
      </disk>
    </devices>
  </domain>

  <domain type='test' xmlns:test='http://libvirt.org/schemas/domain/test/1.0'>
    <test:runstate>5</test:runstate> <!-- 5 == VIR_DOMAIN_SHUTOFF -->
    <name>iscsi</name>
    <memory>1048576</memory>
    <os>
      <type>hvm</type>
      <boot dev='hd'/>
    </os>
    <devices>
      <disk type='network' device='disk'>
        <driver name='qemu'/>
        <source protocol='iscsi' name='iqn.2003-01.org.linux-iscsi.fedora'>
          <host name='1.2.3.4' port='1234'/>
        </source>
        <target dev='vda' bus='virtio'/>
      </disk>
    </devices>
  </domain>

  <domain type='test' xmlns:test='http://libvirt.org/schemas/domain/test/1.0'>
    <test:runstate>5</test:runstate> <!-- 5 == VIR_DOMAIN_SHUTOFF -->
    <name>nbd</name>
    <memory>1048576</memory>
    <os>
      <type>hvm</type>
      <boot dev='hd'/>
    </os>
    <devices>
      <disk type='network' device='disk'>
        <driver name='qemu'/>
        <source protocol='nbd'>
          <host name='1.2.3.4' port='1234'/>
        </source>
        <target dev='vda' bus='virtio'/>
      </disk>
    </devices>
  </domain>

  <domain type='test' xmlns:test='http://libvirt.org/schemas/domain/test/1.0'>
    <test:runstate>5</test:runstate> <!-- 5 == VIR_DOMAIN_SHUTOFF -->
    <name>pool1</name>
    <memory>1048576</memory>
    <os>
      <type>hvm</type>
      <boot dev='hd'/>
    </os>
    <devices>
      <disk type='volume' device='disk'>
        <driver name='qemu'/>
        <source pool='pool1' volume='in-pool'/>
        <target dev='vda' bus='virtio'/>
      </disk>
    </devices>
  </domain>

  <domain type='test' xmlns:test='http://libvirt.org/schemas/domain/test/1.0'>
    <test:runstate>5</test:runstate> <!-- 5 == VIR_DOMAIN_SHUTOFF -->
    <name>blocksize</name>
    <memory>1048576</memory>
    <os>
      <type>hvm</type>
      <boot dev='hd'/>
    </os>
    <devices>
      <disk type='block' device='disk'>
        <driver name='qemu' type='raw'/>
        <source dev='@abs_top_builddir@/test-data/blank-disks/blank-disk-1s.raw'/>
        <target dev='vda' bus='virtio'/>
      </disk>
      <disk type='block' device='disk'>
        <driver name='qemu' type='raw'/>
        <source dev='@abs_top_builddir@/test-data/blank-disks/blank-disk-1s.raw'/>
        <blockio logical_block_size='512'/>
        <target dev='vdb' bus='virtio'/>
      </disk>
      <disk type='block' device='disk'>
        <driver name='qemu' type='raw'/>
        <source dev='@abs_top_builddir@/test-data/blank-disks/blank-disk-1M.raw'/>
        <blockio logical_block_size='4096'/>
        <target dev='vdc' bus='virtio'/>
      </disk>
      <disk type='network' device='disk'>
        <driver name='qemu'/>
        <source protocol='nbd'>
          <host name='1.2.3.4' port='1234'/>
        </source>
        <blockio physical_block_size='4096' logical_block_size='512'/>
        <target dev='vdd' bus='virtio'/>
      </disk>
    </devices>
  </domain>

  <pool type='dir'>
    <name>pool1</name>
    <uuid>12345678-1234-1234-1234-1234567890ab</uuid>
    <target>
      <path>@abs_builddir@/tmp</path>
    </target>

    <volume type='file'>
      <name>in-pool</name>
      <capacity unit='bytes'>1048576</capacity>
      <key>@abs_builddir@/tmp/in-pool</key>
      <source>
      </source>
      <target>
        <path>@abs_builddir@/tmp/in-pool</path>
      </target>
    </volume>
  </pool>

</node>
