mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
schema: add support for Windows file paths and device names
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Matt Coleman <matt@datto.com>
This commit is contained in:
committed by
Daniel P. Berrangé
parent
a7a1d1f59e
commit
ce8fb26a66
23
tests/genericxml2xmloutdata/disk-hyperv-physical.xml
Normal file
23
tests/genericxml2xmloutdata/disk-hyperv-physical.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<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>
|
||||
23
tests/genericxml2xmloutdata/disk-hyperv-virtual.xml
Normal file
23
tests/genericxml2xmloutdata/disk-hyperv-virtual.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user