Description of problem: When using disk images with backing files specified using json: URLs, libvirt cannot handle backing files using relative paths. Version-Release number of selected component (if applicable): libvirt-devel-3.1.0-1.fc27.x86_64 How reproducible: 100% Steps to Reproduce: 1. Create a disk image with the required properties: cd /var/tmp rm -f test-* truncate -s 100M test-backing.img qemu-img create test-overlay.img -f qcow2 \ -b 'json:{"driver":"raw", "file":{"driver":"file","filename":"test-backing.img"}}' Notice that /var/tmp/test-overlay.img contains a relative link to test-backing.img which is in the same directory as the overlay. qemu has no problem with relative links: $ qemu-img info test-overlay.img image: test-overlay.img file format: qcow2 virtual size: 100M (104857600 bytes) disk size: 196K cluster_size: 65536 backing file: json:{"driver":"raw","file":{"driver":"file","filename":"test-backing.img"}} Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false 2. Of course this isn't a real VM, but let's try to boot it anyway. cd /var/tmp virt-install --import --name tmp-relpaths --memory 1024 --disk /var/tmp/test-overlay.img The error is: WARNING No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results. Starting install... ERROR Cannot access backing file 'test-backing.img' of storage file '/var/tmp/test-overlay.img' (as uid:4294967295, gid:4294967295): No such file or directory Domain installation does not appear to have been successful. If it was, you can restart your domain by running: virsh --connect qemu:///session start tmp-relpaths otherwise, please restart your installation. Note that to clean up you may need to do: virsh list --all virsh undefine tmp-relpaths