On Sat, Sep 16, 2023 at 03:56:07PM +0000, Teja Konapalli wrote: > Hi Richard & Team, > > > > Could you please help here on the below failure of mounting disk using > libguestfs. > > > > OS version: RHEL 8.2 > > Libguestfs version: 1.38.0 stable > > > > > > Error logs: > > > > libguestfs: trace: add_drive_ro "/var/opt/tmp/GRE//RAJA/RAJAT-flat.vmdk" > libguestfs: trace: add_drive "/var/opt/tmp/GRE//RAJA/RAJAT-flat.vmdk" > "readonly:true" > libguestfs: creating COW overlay to protect original drive content > libguestfs: trace: disk_create "/tmp/libguestfsCpl8My/overlay3.qcow2" "qcow2" > -1 "backingfile:/var/opt/tmp/GRE//RAJA/RAJAT-flat.vmdk" > libguestfs: command: run: qemu-img > libguestfs: command: run: \ create > libguestfs: command: run: \ -f qcow2 > libguestfs: command: run: \ -o backing_file=/var/opt/tmp/GRE//RAJA/ > RAJAT-flat.vmdk > libguestfs: command: run: \ /tmp/libguestfsCpl8My/overlay3.qcow2 > Formatting '/tmp/libguestfsCpl8My/overlay3.qcow2', fmt=qcow2 size=21474836480 > backing_file=/var/opt/tmp/GRE//RAJA/RAJAT-flat.vmdk cluster_size=65536 > lazy_refcounts=off refcount_bits=16 > libguestfs: trace: disk_create = -1 (error)
^^ There should be an error message between this two lines. Without seeing what the error is, it's hard to know what the problem is. Is this happening in a program you wrote? If so you probably want to read the bit about how to handle error messages: https://libguestfs.org/guestfs.3.html#error-handling Rich. > libguestfs: trace: add_drive = -1 (error) > libguestfs: trace: add_drive_ro = -1 (error) > libguestfs: trace: close > libguestfs: closing guestfs handle 0x1e89340 (state 0) > libguestfs: command: run: rm > libguestfs: command: run: \ -rf /tmp/libguestfsCpl8My > -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://listman.redhat.com/mailman/listinfo/libguestfs