Comment 5 for bug 1752361

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

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>