Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1173695

Summary: RFE: allow passing in a pre-opened libvirt connection from python
Product: Red Hat Enterprise Linux 7 Reporter: Giuseppe Scrivano <gscrivan>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact: Jiri Herrmann <jherrman>
Priority: high    
Version: 7.1CC: areis, dyuan, gscrivan, hhuang, huding, jherrman, jsuchane, juzhang, juzhou, knoel, kwolf, leiwang, linl, mbooth, mzhan, phrdina, ptoscano, rbalakri, rjones, sherold, stefanha, tzheng, virt-bugs, virt-maint, wshi, xchen, xfu
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libguestfs-1.32.0-2.el7 Doc Type: Release Note
Doc Text:
Accessing guest disks on *virt-manager* works properly with SELinux and _libguestfs-python_ Prior to this update, when the _libguestfs-python_ package was installed and SELinux was enabled on the host machine, accessing guest disks using the *virt-manager* interface caused I/O failures. Now, *virt-manager* and the _libguestfs_ library share the same _libvirt_ connection, which prevents the described failures from occurring.
Story Points: ---
Clone Of: 1138203 Environment:
Last Closed: 2016-11-03 17:48:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1075143, 1173697, 1175795, 1218766    
Bug Blocks: 1138203, 1288337, 1301891, 1305606, 1313485    

Comment 3 Richard W.M. Jones 2015-09-23 14:29:21 UTC
We're going to rebase to libguestfs 1.32 (bug 1218766), and
that version includes this fix.

Comment 6 Xianghua Chen 2016-08-03 10:03:36 UTC
Verified with packages:
libguestfs-1.33.46-1.el7.x86_64

Verify steps:
1. Prepare a RHEL guest image and start it:
# virsh start rhel6.8
# virsh list --all
 Id    Name                           State
----------------------------------------------------
 2     rhel6.8                        running

2. Login into the guest:
# virsh console 2
Try to  write to the disk:
# while sleep 1; do echo a > ~/output; done

3. On host, run following command:
# guestfish --ro -i rhel6.8.qcow2 
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

Operating system: Red Hat Enterprise Linux Server release 6.8 (Santiago)
/dev/vg_dhcp8136/lv_root mounted on /
/dev/sda1 mounted on /boot

><fs> ls /

....

4. Check the command running status in guest in step 2, there is no error like:
# while sleep 1; do echo a > ~/output; done
 kernel:journal commit I/O error
bash: /root/output: Read-only file system
...

So verified.

Comment 8 errata-xmlrpc 2016-11-03 17:48:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2576.html