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: ---   
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