I hit the same errors as originally reported in this bug, but the root cause of my error was different:
[ooo@hci-float11 tasks]$ sudo virt-customize --run /home/stack/repo_setup.sh -a /home/stack/overcloud-full.qcow2
[ 0.0] Examining the guest ...
virt-customize: error: libguestfs error: could not create appliance through
libvirt.
Try running qemu directly without libvirt using this environment variable:
export LIBGUESTFS_BACKEND=direct
Original error from libvirt: Cannot access storage file
'/home/stack/overcloud-full.qcow2' (as uid:107, gid:107): Permission denied
[code=38 int1=13]
If reporting bugs, run virt-customize with debugging enabled and include
the complete output:
I hit the same errors as originally reported in this bug, but the root cause of my error was different:
[ooo@hci-float11 tasks]$ sudo virt-customize --run /home/stack/ repo_setup. sh -a /home/stack/ overcloud- full.qcow2
[ 0.0] Examining the guest ...
virt-customize: error: libguestfs error: could not create appliance through
libvirt.
Try running qemu directly without libvirt using this environment variable: BACKEND= direct
export LIBGUESTFS_
Original error from libvirt: Cannot access storage file stack/overcloud -full.qcow2' (as uid:107, gid:107): Permission denied
'/home/
[code=38 int1=13]
If reporting bugs, run virt-customize with debugging enabled and include
the complete output:
virt-customize -v -x [...]
[ooo@hci-float11 tasks]$