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 827612 - Update qemu-ga to its latest upstream version
Summary: Update qemu-ga to its latest upstream version
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Luiz Capitulino
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 808509 (view as bug list)
Depends On:
Blocks: 820481 831387
TreeView+ depends on / blocked
 
Reported: 2012-06-01 20:43 UTC by Luiz Capitulino
Modified: 2013-02-21 07:36 UTC (History)
12 users (show)

Fixed In Version: qemu-kvm-0.12.1.2-2.297.el6
Doc Type: Release Note
Doc Text:
Rebase package(s) to version: 1.1 Highlights, important fixes, or notable enhancements: @Errata Content Author: please include the following fixes in the rebase statement along with the features listed below in the release note (see comment 12 for details): - Persist tracking of fsfreeze state via filesystem, thus avoiding qemu-ga to forget fsfreeze state if it dies or is restarted - Allow guest-fsfreeze-thaw to run unconditionally, thus qemu-ga is still able to thaw the FS even if it dies or is restarted - Avoid blocking on atime update when reading /etc/mtab while the FS is frozen --- #Release Note: QEMU Guest Agent Updated The QEMU guest agent (qemu-guest-agent) has been updated to upstream version 1.1, which includes the following notable enhancements and bug fixes: The guest-suspend-disk and guest-suspend-ram commands can now be used to suspend to RAM or to disk on a Windows system. This update fixes a memory leak in the Windows communication code. The guest-network-get-interfaces command can now be used to acquire network interface information in Linux. This update provides file system freeze support improvements and fixes. This update includes various documentation fixes and small improvements.
Clone Of:
Environment:
Last Closed: 2013-02-21 07:36:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0527 0 normal SHIPPED_LIVE qemu-kvm bug fix and enhancement update 2013-02-20 21:51:08 UTC

Description Luiz Capitulino 2012-06-01 20:43:19 UTC
The guest agent we have in RHEL6.3 was forked off from QEMU 1.0. The latest version of QEMU (v1.1) contains a more up to date guest agent. Let's update RHEL's qemu-ga to its latest upstream version.

Comment 6 Jeff Cody 2012-10-10 18:45:27 UTC
*** Bug 808509 has been marked as a duplicate of this bug. ***

Comment 7 langfang 2012-10-16 05:06:10 UTC
test this bug as follow version:
# uname -r
2.6.32-331.el6.x86_64
# rpm -q qemu-kvm
qemu-kvm-0.12.1.2-2.323.el6.x86_64

guest:
# uname -r
2.6.32-279.el6.x86_64

qemu-guest-agent-0.12.1.2-2.327.el6.x86_64

steps:
1.boot guest with virtio serial 
....-chardev socket,path=/tmp/qga.sock,server,nowait,id=qga0 -device  virtio-serial -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0

2. Inside guest: #service qemu-ga start

3. On host: 
#nc -U /tmp/qga.sock

{"execute": "guest-info"}
{"return": {"version": "1.0", "supported_commands": [{"enabled": true, "name": "guest-network-get-interfaces"}, {"enabled": true, "name": "guest-suspend-hybrid"}, {"enabled": true, "name": "guest-suspend-ram"}, {"enabled": true, "name": "guest-suspend-disk"}, {"enabled": true, "name": "guest-fsfreeze-thaw"}, {"enabled": true, "name": "guest-fsfreeze-freeze"}, {"enabled": true, "name": "guest-fsfreeze-status"}, {"enabled": true, "name": "guest-file-flush"}, {"enabled": true, "name": "guest-file-seek"}, {"enabled": true, "name": "guest-file-write"}, {"enabled": true, "name": "guest-file-read"}, {"enabled": true, "name": "guest-file-close"}, {"enabled": true, "name": "guest-file-open"}, {"enabled": true, "name": "guest-shutdown"}, {"enabled": true, "name": "guest-info"}, {"enabled": true, "name": "guest-ping"}, {"enabled": true, "name": "guest-sync"}, {"enabled": true, "name": "guest-sync-delimited"}]}}
{"execute":"guest-fsfreeze-status"}
{"return": "thawed"}
{"execute":"guest-fsfreeze-freeze"}
{"return": 2}
{"execute":"guest-fsfreeze-thaw"}
{"return": 2}
{"execute":"guest-fsfreeze-status"}
{"return": "thawed"}
{"execute":"guest-network-get-interfaces"}
{"return": [{"name": "lo", "ip-addresses": [{"ip-address-type": "ipv4", "ip-address": "127.0.0.1", "prefix": 8}, {"ip-address-type": "ipv6", "ip-address": "::1", "prefix": 128}], "hardware-address": "00:00:00:00:00:00"}, {"name": "eth0", "ip-addresses": [{"ip-address-type": "ipv4", "ip-address": "10.66.105.76", "prefix": 21}, {"ip-address-type": "ipv6", "ip-address": "fe80::62a:4aff:fe42:1b00", "prefix": 64}], "hardware-address": "04:2a:4a:42:1b:00"}]}
{"execute":"guest-sync-delimited","arguments":{"id":1234}}
�{"return": 1234}
{"execute":"guest-file-open", "arguments":{"path":"/tmp/testqga","mode":"w+"}}
{"return": 7}
{"execute":"guest-file-write", "arguments":{"handle":7,"buf-b64":"aGVsbG8gd29ybGQhCg=="}}
{"return": {"count": 13, "eof": false}}
{"execute":"guest-file-close", "arguments":{"handle":7}}
{"return": {}}
{"execute":"guest-file-open", "arguments":{"path":"/tmp/testqga","mode":"r"}}
{"return": 7}
{"execute":"guest-file-read", "arguments":{"handle":7,"count":1024}}
{"return": {"count": 13, "buf-b64": "aGVsbG8gd29ybGQhCg==", "eof": true}}
{"execute":"guest-file-close","arguments":{"handle":7}}
{"return": {}}
{"execute":"guest-file-flush", "arguments":{"handle":7,"count":1024}}
{"error": {"class": "FdNotFound", "desc": "File descriptor named 'handle' not found", "data": {"name": "handle"}}}
{"execute":"guest-file-open", "arguments":{"path":"/tmp/testqga","mode":"r"}}
{"return": 7}
{"execute":"guest-file-open", "arguments":{"path":"/tmp/testqga","mode":"r"}}
{"return": 8}
{"execute":"guest-file-flush", "arguments":{"handle":7,"count":1024}}            
{"return": {}}
{"execute":"guest-file-seek","arguments":{"handle":7,"offset":0,"whence":2}}
{"return": {"eof": false, "position": 13}}

adddinfo:test qemu-ga operations as follow:

"guest-sync-delimited"
"guest-network-get-interfaces"
"guest-fsfreeze-*"
"guest-file-* "

Comment 13 Martin Prpič 2012-11-21 13:39:24 UTC
On second thought, the above bug fixes can probably be mentioned in the documentation shipped with RHBA-2012:13475. A note about this has been added to the Doc Text field along with the content present in the Release Notes.

Comment 15 errata-xmlrpc 2013-02-21 07:36:48 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.

http://rhn.redhat.com/errata/RHBA-2013-0527.html


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