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 1191226 - libvirt requires rtc-reset-reinjection command, backport it to RHEL7.1
Summary: libvirt requires rtc-reset-reinjection command, backport it to RHEL7.1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Marcelo Tosatti
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-10 18:19 UTC by Marcelo Tosatti
Modified: 2015-11-19 04:58 UTC (History)
11 users (show)

Fixed In Version: qemu-kvm-1.5.3-102.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 04:58:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2213 0 normal SHIPPED_LIVE qemu-kvm bug fix and enhancement update 2015-11-19 08:16:10 UTC

Description Marcelo Tosatti 2015-02-10 18:19:43 UTC
libvirt refuses to support virDomainSetTime if QEMU's rtc-reset-reinjection is not supported.

The result is that mgmt applications fail to sync guests time.

Comment 2 Michal Privoznik 2015-08-20 01:04:15 UTC
Marcelo asked me to confirm whether this is needed. Yes it is. The idea is that virDomainSetTime() uses guest agent to set/sync guest time. In that case, we must reset RTC reinjection otherwise both correction techniques will be used resulting in guest time drifting again. Therefore, at the beginning of the API libvirt checks if qemu supports the monitor command and if not, whole API is rejected.

Comment 3 Miroslav Rezanina 2015-09-03 09:36:53 UTC
Fix included in qemu-kvm-1.5.3-102.el7

Comment 5 Shaolong Hu 2015-09-16 07:01:29 UTC
Reproduced on qemu-kvm-1.5.3-101.el7.x86_64:

{ 'execute' : 'qmp_capabilities' }
{"return": {}}

{ "execute": "rtc-reset-reinjection" }
{"error": {"class": "CommandNotFound", "desc": "The command rtc-reset-reinjection has not been found"}}



Verified on qemu-kvm-1.5.3-102.el7.x86_64:

1. boot guest
2. in qmp, run:

{ 'execute' : 'qmp_capabilities' }
{"return": {}}

{ "execute": "rtc-reset-reinjection" }
{"return": {}}

3. reboot guest, guest works correctly.

CMD:

/usr/libexec/qemu-kvm -enable-kvm -M pc -smp 4 -m 4G -name rhel6.3-64 -uuid 3f2ea5cd-3d29-48ff-aab2-23df1b6ae213 -drive file=/root/nfs/RHEL-Server-7.1-64-virtio.qcow2,cache=none,if=none,rerror=stop,werror=stop,id=drive-virtio-disk0,format=qcow2,aio=native -device virtio-blk-pci,drive=drive-virtio-disk0,id=device-virtio-disk0,bootindex=1 -netdev tap,script=/etc/qemu-ifup,id=netdev0 -device virtio-net-pci,netdev=netdev0,id=device-net0,mac=aa:54:00:11:22:33 -boot order=cd -monitor stdio -readconfig nfs/ich9-ehci-uhci.cfg -device usb-tablet,id=input0 -chardev socket,id=s1,path=/tmp/s1,server,nowait -device isa-serial,chardev=s1 -monitor tcp::1234,server,nowait -vga qxl -global qxl-vga.revision=3 -spice port=5920,disable-ticketing -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -vnc :10 -qmp tcp:0:5555,server,nowait

Comment 7 errata-xmlrpc 2015-11-19 04:58:27 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/RHBA-2015-2213.html


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