Richard W.M. Jones
2023-Sep-16 20:36 UTC
[Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure
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 = 0Here you're setting backend = "direct", and while that isn't necessarily a problem in itself, the libguestfs-test-tool output that you provided was for the (normal, for RHEL) libvirt backend. This could make a difference, so what's the output of: $ LIBGUESTFS_BACKEND=direct libguestfs-test-tool ? By the way, unless you have a specific reason to set 'LIBGUESTFS_BACKEND=direct' that you can articulate, it is best not to set this as it is less secure and less well tested. If you just copied that environment variable from somewhere without understanding why, then don't do that. 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, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Raja Ram Sharma
2023-Sep-17 03:55 UTC
[Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure
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) ^^^ Same line has also printed in " LIBGUESTFS_BACKEND=direct libguestfs-test-tool " at line $96-$98 ^^^ Could not access KVM kernel module: No such file or directory qemu-kvm: failed to initialize KVM: No such file or directory ^^^ Please find attachment of $> LIBGUESTFS_BACKEND=direct libguestfs-test-tool Thanks RR -----Original Message----- From: Richard W.M. Jones <rjones at redhat.com> Sent: Sunday, September 17, 2023 2:07 AM To: Raja Ram Sharma <rsharma6 at opentext.com> Cc: Teja Konapalli <tkonapalli at opentext.com>; libguestfs at redhat.com; Divyanshu Kumar <dkumar3 at opentext.com> Subject: Re: [EXTERNAL] - Re: LIBGUESTFS mount disk failure CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. If you feel that the email is suspicious, please report it using PhishAlarm. 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 = 0Here you're setting backend = "direct", and while that isn't necessarily a problem in itself, the libguestfs-test-tool output that you provided was for the (normal, for RHEL) libvirt backend. This could make a difference, so what's the output of: $ LIBGUESTFS_BACKEND=direct libguestfs-test-tool ? By the way, unless you have a specific reason to set 'LIBGUESTFS_BACKEND=direct' that you can articulate, it is best not to set this as it is less secure and less well tested. If you just copied that environment variable from somewhere without understanding why, then don't do that. Rich. -- Richard Jones, Virtualization Group, Red Hat https://urldefense.com/v3/__http://people.redhat.com/*rjones__;fg!!Obbck6kTJA!dH7uryqvh0lZ5fENv-UGELBhZf_4YeDluWD8HOiX9HhMDMbDUVpoUkP-GHdUVq06f9twxzOInZAGIZOv$ Read my programming and virtualization blog: https://urldefense.com/v3/__http://rwmj.wordpress.com__;!!Obbck6kTJA!dH7uryqvh0lZ5fENv-UGELBhZf_4YeDluWD8HOiX9HhMDMbDUVpoUkP-GHdUVq06f9twxzOInU_4VCMe$ Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. https://urldefense.com/v3/__http://fedoraproject.org/wiki/MinGW__;!!Obbck6kTJA!dH7uryqvh0lZ5fENv-UGELBhZf_4YeDluWD8HOiX9HhMDMbDUVpoUkP-GHdUVq06f9twxzOInTq6QXk4$ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: BACKEND=direct-guestfs-test-tool.txt URL: <http://listman.redhat.com/archives/libguestfs/attachments/20230917/e5d9d831/attachment.txt>
Richard W.M. Jones
2023-Sep-17 08:41 UTC
[Libguestfs] [EXTERNAL] - Re: LIBGUESTFS mount disk failure
On Sun, Sep 17, 2023 at 03:55:24AM +0000, 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" > libguestfs: trace: get_backend_setting = NULL (error) > ^^^ > Same line has also printed in " LIBGUESTFS_BACKEND=direct libguestfs-test-tool " at line $96-$98 > ^^^ > Could not access KVM kernel module: No such file or directory > qemu-kvm: failed to initialize KVM: No such file or directory > ^^^Thanks for providing the second output. The above messages aren't errors. I really need much more context. I need to see the program that you're trying to run, or a self-contained reproducer, and I also need to see the _complete_ output from the program from start to finish, not just small parts of it. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com nbdkit - Flexible, fast NBD server with plugins https://gitlab.com/nbdkit/nbdkit