Bug 808527
Summary: | Check for guest agent presence when issuing command | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Michal Privoznik <mprivozn> |
Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.3 | CC: | acathrow, ajia, dallan, dyasny, dyuan, mzhan, rwu, veillard, whuang, zhwang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.9.10-11.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-06-20 06:51:41 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michal Privoznik
2012-03-30 15:39:40 UTC
Verified PASS with libvirt-0.9.10-10.el6. # time virsh shutdown --mode agent rhel6 error: Failed to shutdown domain rhel6 error: internal error Guest agent not available for now real 0m4.978s user 0m0.007s sys 0m0.007s # virsh snapshot-create --disk-only --quiesce xp error: argument unsupported: QEMU guest agent is not configured For the comment 4, the snapshot-create is tested with windows guest xp without GA configured. When I re-check it with a rhel guest with qemu-ga, but the guest is paused or stop qemu-ga in guest, the error msg doesn't make sense. Is that the expected result ? pause the guest, then issue snapshot-create: # virsh list --all Id Name State ---------------------------------------------------- 2 rhel6-q paused # virsh snapshot-create --disk-only --quiesce rhel6-q error: An error occurred, but the cause is unknown stop qemu-ga in guest, then issue snapshot-create: # virsh snapshot-create --disk-only --quiesce rhel6-q error: An error occurred, but the cause is unknown No it is not. However, since this is restricted to snapshot-create only, I think we should leave this VERIFIED and re-open bug 804210 so I can post patch. (In reply to comment #6) > No it is not. However, since this is restricted to snapshot-create only, I > think we should leave this VERIFIED and re-open bug 804210 so I can post patch. Confirmed with assignee on irc. The snapshot is rejected for the paused guest in bug 804210, I'll keep it as VERIFIED. For this bug, I re-assign it for the better msg should be returned when check for guest agent presence. Patch proposed upstream: https://www.redhat.com/archives/libvir-list/2012-April/msg00252.html Verified PASS with libvirt-0.9.10-11.el6. # virsh snapshot-create --disk-only --quiesce rhel6-q error: internal error Guest agent not available for now # virsh list --all Id Name State ---------------------------------------------------- 2 rhel6-q running # virsh suspend rhel6-q Domain rhel6-q suspended # virsh snapshot-create --disk-only --quiesce rhel6-q error: internal error Guest agent not available for now # virsh list Id Name State ---------------------------------------------------- 2 rhel6-q paused # virsh resume rhel6-q Domain rhel6-q resumed I just add comment in this bug because the comm 53 in bug 766958 is related to this bug. Too many comments there but it's okay for us to track the following issue in both 2 bugs. The issue in comm 48 of bug 766958: start the qemu-ga via # service qemu-ga start, dompmsuspend will fail. # virsh dompmsuspend rhel6-q mem error: Domain rhel6-q could not be suspended error: internal error unable to execute QEMU command 'guest-suspend-ram': unknown QEMU command error start the qemu-ga via # /usr/bin/qemu-ga start, dompmsuspend is okay. # virsh dompmsuspend rhel6-q mem Domain rhel6-q successfully suspended For qemu-kvm, if you send 'guest-ping' first and then send 'guest-suspend-ram', it will be okay. Please refer to bug 816893. 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/RHSA-2012-0748.html Now, in pkg qemu-guest-agent-win32-0.12.1.2-2.346.el6.x86_64.rpm we can do the s3/s4 in windows guest based the windows guest agent supported commands list supported commands: "guest-info" "guest-ping" "guest-sync-delimited" "guest-sync" "guest-shutdown" (include shutdown,reboot,halt) "guest-suspend-disk" "guest-suspend-ram" Since there was a bug 888716 over there ,so the command "guest-susend-disk "not work well so far |