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(a)redhat.com>
Sent: Sunday, September 17, 2023 2:07 AM
To: Raja Ram Sharma <rsharma6(a)opentext.com>
Cc: Teja Konapalli <tkonapalli(a)opentext.com>; libguestfs(a)redhat.com; Divyanshu Kumar
<dkumar3(a)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 = 0
Here 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!!Obbck6...
Read my programming and virtualization blog:
https://urldefense.com/v3/__http://rwmj.wordpress.com__;!!Obbck6kTJA!dH7u...
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__;!!Obbck...