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 2117272

Summary: [RFE] RFE backport allow enabling ZEROCOPY live migration to libvirt on RHEL8 [rhel-8.6.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: libvirtAssignee: Jiri Denemark <jdenemar>
Status: CLOSED ERRATA QA Contact: Fangge Jin <fjin>
Severity: high Docs Contact:
Priority: high    
Version: 8.7CC: jdenemar, jsuchane, kanderso, lcheng, leobras, lmen, mtessun, mzamazal, nkoenig, virt-maint, xuzhang, yalzhang, ymankad
Target Milestone: rcKeywords: AutomationTriaged, FutureFeature, Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-8.0.0-5.4.el8 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 2089433 Environment:
Last Closed: 2022-09-13 09:46:36 UTC Type: Feature Request
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: 2089433    
Bug Blocks: 2089434    

Comment 1 Leonardo Bras 2022-08-15 22:18:31 UTC
FIY: qemu counterpart is already ready for merging:
https://gitlab.com/redhat/rhel/src/qemu-kvm/qemu-kvm/-/merge_requests/185

Jiri, any update on your side?

Comment 2 Jiri Denemark 2022-08-18 11:46:13 UTC
Backported: https://gitlab.com/redhat/rhel/src/libvirt/-/merge_requests/43

Comment 5 Fangge Jin 2022-09-01 07:34:49 UTC
Versions:
libvirt-8.0.0-5.4.module+el8.6.0+16370+bb85faee.x86_64
qemu-kvm-6.2.0-11.module+el8.6.0+16516+f8cbd5fe.5.x86_64


Covered scenarios:
p2p + precopy + no memtune->hard->limit
p2p + precopy + memtune->hard->limit
postcopy: qemu crashed
non-p2p + precopy + no memtune->hard->limit
non-p2p + precopy + memtune->hard->limit
p2p + precopy + no memtune->hard->limit, cancel
p2p + precopy + memtune->hard->limit, cancel
non-p2p + precopy + no memtune->hard->limit, cancel
non-p2p + precopy + memtune->hard->limit, cancel
p2p + precopy + no memtune->hard->limit, kill src libvirtd, trigger issue Bug 2107424
non-p2p + precopy + no memtune->hard->limit, kill src libvirtd, trigger issue Bug 2107424
p2p + precopy + no memtune->hard->limit, kill dest libvirtd
non-p2p + precopy + no memtune->hard->limit, kill dest libvirtd
p2p + precopy + memtune->hard->limit, kill src libvirtd
non-p2p + precopy + memtune->hard->limit, kill src libvirtd
p2p + precopy + memtune->hard->limit, kill dest libvirtd
non-p2p + precopy + memtune->hard->limit, kill dest libvirtd

Comment 6 Fangge Jin 2022-09-01 08:03:58 UTC
(In reply to Fangge Jin from comment #5)
> Versions:
> libvirt-8.0.0-5.4.module+el8.6.0+16370+bb85faee.x86_64
> qemu-kvm-6.2.0-11.module+el8.6.0+16516+f8cbd5fe.5.x86_64

> postcopy: qemu crashed
Bug 2106726 - Qemu on destination host crashed if migrate with postcopy and multifd enabled 


Additional scenarios:
1.non-p2p + precopy, poweroff vm during migration:
# virsh migrate vm1 qemu+tcp://10.66.144.212/system --live --verbose  --migrateuri tcp://10.66.144.212 --zerocopy --parallel --bandwidth 5
Migration: [  3 %]error: cannot get locked memory limit of process -1: No such file or directory

2. p2p + precopy, poweroff vm during migration
# virsh migrate vm1 qemu+tcp://10.66.144.212/system --live --p2p --zerocopy --parallel --migrateuri tcp://10.66.144.212
error: operation failed: domain is not running

Comment 10 errata-xmlrpc 2022-09-13 09:46:36 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 (virt:rhel and virt-devel:rhel bug fix and enhancement update), 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://access.redhat.com/errata/RHBA-2022:6446