<define name="absFilePath">
<data type="string">
- <param name="pattern">/.+</param>
+ <param name="pattern">(/|[a-zA-Z]:\\).+</param>
</data>
</define>
<interleave>
<optional>
<attribute name="dev">
- <ref name="absFilePath"/>
+ <choice>
+ <ref name="absFilePath"/>
+ <ref name="deviceName"/>
+ </choice>
</attribute>
</optional>
<ref name="diskSourceCommon"/>
--- /dev/null
+<domain type='hyperv'>
+ <name>test_disk-hyperv</name>
+ <uuid>deadbeef-dead-beef-dead-beefdeadbeef</uuid>
+ <memory unit='KiB'>1048576</memory>
+ <vcpu placement='static'>3</vcpu>
+ <os>
+ <type>hvm</type>
+ </os>
+ <devices>
+ <disk type='block' device='disk'>
+ <source dev='2'/>
+ <target dev='sdb' bus='scsi'/>
+ <address type='drive' controller='0' bus='0' target='0' unit='0'/>
+ </disk>
+ <controller type='scsi' index='0'/>
+ </devices>
+</domain>
--- /dev/null
+<domain type='hyperv'>
+ <name>test_disk-hyperv</name>
+ <uuid>deadbeef-dead-beef-dead-beefdeadbeef</uuid>
+ <memory unit='KiB'>1048576</memory>
+ <vcpu placement='static'>3</vcpu>
+ <os>
+ <type>hvm</type>
+ </os>
+ <devices>
+ <disk type='file' device='disk'>
+ <source file='X:\test_disk-hyperv.vhdx'/>
+ <target dev='sda' bus='scsi'/>
+ <address type='drive' controller='0' bus='0' target='0' unit='0'/>
+ </disk>
+ <controller type='scsi' index='0'/>
+ </devices>
+</domain>
--- /dev/null
+<domain type='hyperv'>
+ <name>test_disk-hyperv</name>
+ <uuid>deadbeef-dead-beef-dead-beefdeadbeef</uuid>
+ <memory unit='KiB'>1048576</memory>
+ <currentMemory unit='KiB'>1048576</currentMemory>
+ <vcpu placement='static'>3</vcpu>
+ <os>
+ <type arch='x86_64'>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>
+ <disk type='block' device='disk'>
+ <source dev='2'/>
+ <target dev='sdb' bus='scsi'/>
+ <address type='drive' controller='0' bus='0' target='0' unit='0'/>
+ </disk>
+ <controller type='scsi' index='0'/>
+ </devices>
+</domain>
--- /dev/null
+<domain type='hyperv'>
+ <name>test_disk-hyperv</name>
+ <uuid>deadbeef-dead-beef-dead-beefdeadbeef</uuid>
+ <memory unit='KiB'>1048576</memory>
+ <currentMemory unit='KiB'>1048576</currentMemory>
+ <vcpu placement='static'>3</vcpu>
+ <os>
+ <type arch='x86_64'>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>
+ <disk type='file' device='disk'>
+ <source file='X:\test_disk-hyperv.vhdx'/>
+ <target dev='sda' bus='scsi'/>
+ <address type='drive' controller='0' bus='0' target='0' unit='0'/>
+ </disk>
+ <controller type='scsi' index='0'/>
+ </devices>
+</domain>
DO_TEST_FULL(name, 1, false, TEST_COMPARE_DOM_XML2XML_RESULT_SUCCESS)
DO_TEST_DIFFERENT("disk-virtio");
+ DO_TEST_DIFFERENT("disk-hyperv-physical");
+ DO_TEST_DIFFERENT("disk-hyperv-virtual");
DO_TEST_DIFFERENT("graphics-vnc-minimal");
DO_TEST_DIFFERENT("graphics-vnc-manual-port");