RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 869179 - libguestfs fail to startup on latest rhel7 tree
Summary: libguestfs fail to startup on latest rhel7 tree
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libguestfs
Version: 7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-23 08:20 UTC by Mohua Li
Modified: 2014-06-18 01:58 UTC (History)
5 users (show)

Fixed In Version: libguestfs-1.22.2-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:57:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mohua Li 2012-10-23 08:20:19 UTC
Description of problem:
libguestfs-1.18.1-1.2.el7.x86_64 fail to work on RHEL7 latest tree( RHEL-7.
0-20121012.1), error as below,=20

# guestfish -N fs
guestfish: error while loading shared libraries: libpcre.so.0: cannot open 
shared object file: No such file or directory

manually create a link to libpcre.so.0 could fix this problem, but libguestfs still stuck at  creating the appliance, not sure if it's "-machine" break libguestfs, at least libguestfs-1.18.1-1.2.el7.x86_64 could work on earlier rhel7 tree, 

[root@intel-i7-12-4 tmp]# guestfish -x -v -N fs
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: is_config
libguestfs: trace: is_config = 1
libguestfs: trace: set_pgroup true
libguestfs: trace: set_pgroup = 0
libguestfs: trace: add_drive "test1.img"
libguestfs: trace: add_drive = 0
libguestfs: trace: is_config
libguestfs: trace: is_config = 1
libguestfs: trace: launch
libguestfs: [00000ms] febootstrap-supermin-helper --verbose -f checksum '/usr/lib64/guestfs/supermin.d' x86_64
supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null)
supermin helper [00000ms] inputs[0] = /usr/lib64/guestfs/supermin.d
checking modpath /lib/modules/3.6.0-0.28.el7.x86_64 is a directory
picked vmlinuz-3.6.0-0.28.el7.x86_64 because modpath /lib/modules/3.6.0-0.28.el7.x86_64 exists
supermin helper [00000ms] finished creating kernel
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/base.img
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles
supermin helper [00024ms] visiting /usr/lib64/guestfs/supermin.d/init.img
supermin helper [00024ms] adding kernel modules
supermin helper [00097ms] finished creating appliance
libguestfs: [00101ms] begin testing qemu features
libguestfs: [00126ms] finished testing qemu features
libguestfs: accept_from_daemon: 0x1fadf30 g->state = 1
[00127ms] /usr/bin/qemu-kvm \
    -global virtio-blk-pci.scsi=off \
    -nodefconfig \
    -nodefaults \
    -nographic \
    -drive file=test1.img,if=virtio \
    -machine accel=kvm:tcg \
    -m 500 \
    -no-reboot \
    -no-hpet \
    -device virtio-serial \
    -serial stdio \
    -chardev socket,path=/tmp/libguestfsBA3yRE/guestfsd.sock,id=channel0 \
    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
    -kernel /var/tmp/.guestfs-0/kernel.16720 \
    -initrd /var/tmp/.guestfs-0/initrd.16720 \
    -append 'panic=1 console=ttyS0 udevtimeout=300 no_timer_check acpi=off printk.time=1 cgroup_disable=memory selinux=0 guestfs_verbose=1 TERM=screen ' \
    -drive file=/var/tmp/.guestfs-0/root.16720,snapshot=on,if=virtio,cache=unsafe


Version-Release number of selected component (if applicable):
qemu-kvm-1.2-0.6.20120806git3e430569.1.el7.x86_64
kernel-3.6.0-0.28.el7.x86_64
libguestfs-1.18.1-1.2.el7.x86_64


How reproducible:
always

Steps to Reproduce:
1. guestfish -x -v -N fs ( you must have qemu-kvm-system installed on rhel7 system) 
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Richard W.M. Jones 2012-10-23 08:38:54 UTC
What is libguestfs-1.18.1-1.2.el7?

Anyway, yes, libguestfs is broken in RHEL 7.  We're still
rapidly developing the features for RHEL 7 in Fedora 18 at
the moment, and don't expect to finish that before the end
of this year.

Comment 11 Richard W.M. Jones 2013-07-18 16:54:32 UTC
Works for me in 1.22.2, with SELinux enforcing.

Comment 13 bfan 2014-01-09 02:57:57 UTC
Verified with libguestfs-1.22.6-17.el7.x86_64

# guestfish -N fs

Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

Type: 'help' for help on commands
      'man' to read the manual
      'quit' to quit the shell

><fs>

Comment 14 Ludek Smid 2014-06-13 12:57:09 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.