Re: [Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure

2023-09-21 Thread Divyanshu Kumar
Hi @Richard W.M. Jones, I am attaching a sample program of how we are using guestfs apis where we are getting this error guestfs_mount_local fail. Please take a look into this. Thanks, Divyanshu -Original Message- From: Richard W.M. Jones Sent: Tuesday, September 19, 2023 5:36 PM

Re: [Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure

2023-09-20 Thread Richard W.M. Jones
On Wed, Sep 20, 2023 at 09:53:19AM +, Divyanshu Kumar wrote: > Hi @Richard W.M. Jones, > > I am attaching a sample program of how we are using guestfs apis > where we are getting this error guestfs_mount_local fail. It works fine, I see no errors when I run it. This is the third and last

Re: [Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure

2023-09-19 Thread Richard W.M. Jones
On Tue, Sep 19, 2023 at 11:59:43AM +, Raja Ram Sharma wrote: > Hi Richard, > > Thank you for the response, will set both handler and let you know. > > when we try to execute guestfs_mount_local. > Getting below error : > > [ 2023-09-19 13:34:05 ] errno: ( 0 ) : mount_local: unknown

Re: [Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure

2023-09-19 Thread Raja Ram Sharma
Hi Richard, Thank you for the response, will set both handler and let you know. when we try to execute guestfs_mount_local. Getting below error : [ 2023-09-19 13:34:05 ] errno: ( 0 ) : mount_local: unknown option 554101136 (this can happen if a program is compiled against a newer version of

Re: [Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure

2023-09-19 Thread Richard W.M. Jones
On Sun, Sep 17, 2023 at 04:11:25PM +, Raja Ram Sharma wrote: > One more help is needed : https://github.com/libguestfs/libguestfs/issues/124 > /***/ > I can get guestfs_last_error using function_callback and write to log file. > But "event Handling" is not

Re: [Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure

2023-09-17 Thread Raja Ram Sharma
Thank you, Richard! Guestfs_launch was failing due to internal program issue. Since guesfs_launch creates new process for guesfs process. Hence, Guestfs_launch was failing since new process creation failed in internal program due to remote connection. We resolved using Deamon and Sender

Re: [Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure

2023-09-17 Thread Raja Ram Sharma
Hi Richard, Wish you a happy weekend! Guestfs_launch fails after below error : libguestfs: is_openable: /dev/kvm: No such file or directory libguestfs: trace: get_backend_setting "force_tcg" libguestfs: trace: get_backend_setting = NULL (error) ^^^

Re: [Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure

2023-09-17 Thread Raja Ram Sharma
Hi Richard, Please find attachment. Thanks RR -Original Message- From: Richard W.M. Jones Sent: Sunday, September 17, 2023 12:01 AM To: Raja Ram Sharma Cc: Teja Konapalli ; libguestfs@redhat.com; Divyanshu Kumar Subject: Re: [EXTERNAL] - Re: LIBGUESTFS mount disk failure CAUTION:

Re: [Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure

2023-09-17 Thread Raja Ram Sharma
Hi Richard, Thank you for the reply, I hope this mail finds you well. We resolved guestfs_add_drive failure, now guestfs_add_drive is adding disk successfully after adding "format:raw". But guestfs_launch is failing Kindly help me to troubleshoot or to find any workaround. Error_callback

Re: [Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure

2023-09-17 Thread Richard W.M. Jones
On Sun, Sep 17, 2023 at 03:55:24AM +, Raja Ram Sharma wrote: > Hi Richard, > > Wish you a happy weekend! > > Guestfs_launch fails after below error : > > libguestfs: is_openable: /dev/kvm: No such file or directory > libguestfs: trace: get_backend_setting "force_tcg"

Re: [Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure

2023-09-16 Thread Richard W.M. Jones
Thanks for providing the libguestfs-test-tool output in a previous message. > While: guestfs_lanch error: > libguestfs: trace: set_verbose true > libguestfs: trace: set_verbose = 0 > libguestfs: trace: set_backend "direct" > libguestfs: trace: set_backend = 0 Here you're

Re: [Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure

2023-09-16 Thread Richard W.M. Jones
Hi, can you run: libguestfs-test-tool and send us the complete output. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test,

Re: [Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure

2023-09-16 Thread Teja Konapalli
@Raja Ram Sharma Can you please help here with the details requested by Rich. To answer this question Is this happening in a program you wrote? Yes, we had written our code to use libguestfs API in c++. We can have a short call and discuss with you or team, could you please help with the