Extended Testcase for existing and non-existing Files as well as non existing paths (can't be dereferenced).
<domain type='kvm'> <name>symlink-test</name> <uuid>deadbeef-dead-beef-dead-beefdeadbeef</uuid> <memory unit='KiB'>1048576</memory> <vcpu>1</vcpu> <os> <type arch='x86_64'>hvm</type> <boot dev='hd'/> </os> <devices> <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/var/run/symlinkdisk-doesexist'/> <target dev='hda' bus='ide'/> </disk> <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/var/run/symlinkdisk-doesnotexist'/> <target dev='hdb' bus='ide'/> </disk> <interface type='vhostuser'> <model type='virtio'/> <source type='unix' path='/var/run/symlinknet-doesexist' mode='server'/> </interface> <interface type='vhostuser'> <model type='virtio'/> <source type='unix' path='/var/run/symlinknet-doesnotexist' mode='server'/> </interface> <channel type='unix'> <source mode='bind' path='/var/run/symlinksocket-doesexist'/> <target type='virtio' name='org.qemu.guest_agent.1'/> </channel> <channel type='unix'> <source mode='bind' path='/var/run/symlinksocket-doesnotexist'/> <target type='virtio' name='org.qemu.guest_agent.0'/> </channel> <channel type='unix'> <source mode='bind' path='/var/run/pathdoesnotexist/symlinksocket'/> <target type='virtio' name='org.qemu.guest_agent.0'/> </channel> </devices> </domain>
Extended Testcase for existing and non-existing Files as well as non existing paths (can't be dereferenced).
<domain type='kvm'> symlink- test</name> deadbeef- dead-beef- dead-beefdeadbe ef</uuid> >1048576< /memory> 64'>hvm< /type> var/run/ symlinkdisk- doesexist' /> var/run/ symlinkdisk- doesnotexist' /> var/run/ symlinknet- doesexist' mode='server'/>
</interface> var/run/ symlinknet- doesnotexist' mode='server'/>
</interface> var/run/ symlinksocket- doesexist' /> qemu.guest_ agent.1' /> var/run/ symlinksocket- doesnotexist' /> qemu.guest_ agent.0' /> var/run/ pathdoesnotexis t/symlinksocket '/> qemu.guest_ agent.0' />
<name>
<uuid>
<memory unit='KiB'
<vcpu>1</vcpu>
<os>
<type arch='x86_
<boot dev='hd'/>
</os>
<devices>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/
<target dev='hda' bus='ide'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/
<target dev='hdb' bus='ide'/>
</disk>
<interface type='vhostuser'>
<model type='virtio'/>
<source type='unix' path='/
<interface type='vhostuser'>
<model type='virtio'/>
<source type='unix' path='/
<channel type='unix'>
<source mode='bind' path='/
<target type='virtio' name='org.
</channel>
<channel type='unix'>
<source mode='bind' path='/
<target type='virtio' name='org.
</channel>
<channel type='unix'>
<source mode='bind' path='/
<target type='virtio' name='org.
</channel>
</devices>
</domain>