On Wed, Jan 08, 2020 at 09:05:55PM +0800, 谢威 wrote:
> libguestfs: trace: disk_create
"/tmp/libguestfsHRQGUn/overlay1.qcow2" "qcow2" -1
"backingfile:/var/tmp/.guestfs-0/appliance.d/root"
"backingformat:raw"
> libguestfs: command: run: qemu-img
> libguestfs: command: run: \ create
> libguestfs: command: run: \ -f qcow2
> libguestfs: command: run: \ -o
backing_file=/var/tmp/.guestfs-0/appliance.d/root,backing_fmt=raw
> libguestfs: command: run: \ /tmp/libguestfsHRQGUn/overlay1.qcow2
> qemu-img: /tmp/libguestfsHRQGUn/overlay1.qcow2: A regular file was expected by
the 'file' driver, but something else was given
> Could not open backing image to determine size.
There's something really weird going on here with your system.
Could it be that /var/tmp is not readable?
Tomas already suggested doing this:
rm -rf /var/tmp/.guestfs-*
then try to run libguestfs-test-tool again. If it still doesn't work,
have a look at the permissions of files in /var/tmp/.guestfs-0 or if
you see any SELinux audit messages.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top