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 789327 - [RFE] Resume VM from s3 as a response for monitor/keyboard/mouse action
Summary: [RFE] Resume VM from s3 as a response for monitor/keyboard/mouse action
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Osier Yang
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 766303
Blocks: 761491 767473
TreeView+ depends on / blocked
 
Reported: 2012-02-10 12:46 UTC by Gerd Hoffmann
Modified: 2013-02-21 07:07 UTC (History)
20 users (show)

Fixed In Version: libvirt-0.10.0-0rc0.el6
Doc Type: Enhancement
Doc Text:
Feature: libvirt supported three new QMP events: SUSPEND, WAKEUP, and DEVICE_TRAY_MOVED. And introduced a new attribute "tray" for disk target, to indicate the tray status for CD-ROM, or Floppy device. Reason: The QEMU guest could be suspended or resumed inside the guest directly (not via libvirt API), so the QMP events "SUSPEND", and "WAKEUP" are introduced by QEMU to let management application known the guest status has been changed. The QMP event "DEVICE_TRAY_MOVED" is to let management application known the tray status has been changed for CD-ROM or Floppy device, otherwise the management application could start the guest with the medium still inserted while the medium has been ejected inside guest previously. Result (if any): New domain status "pmsuspended" is introduced for SUSPEND event, the domain status will be changed to "pmsuspended" when the QEMU "SUSPEND" event is emitted, and to "running" when the QEMU "WAKEUP" event is emitted. When the QEMU event DEVICE_TRAY_MOVED is emitted for a disk device, the current tray status for the disk will be reflected to libvirt XML. And libvirt won't start the guest with the medium inserted if the 'tray' is 'open' on the next boot.
Clone Of: 766303
Environment:
Last Closed: 2013-02-21 07:07:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0276 0 normal SHIPPED_LIVE Moderate: libvirt security, bug fix, and enhancement update 2013-02-20 21:18:26 UTC

Comment 1 Gerd Hoffmann 2012-02-10 12:51:02 UTC
qemu patches are discussed & reviewed upstream at the moment.

Plan is to send out qmp events on suspend and wakeup and also add a system_wakeup monitor command which can be used to kick the guest out of s3 state.  libvirt needs to handle those for proper s3 support.

Comment 2 Gerd Hoffmann 2012-02-10 12:53:15 UTC
submitted qemu patches:
monitor command: http://patchwork.ozlabs.org/patch/140404/
qmp events: http://patchwork.ozlabs.org/patch/140598/

Comment 9 Osier Yang 2012-03-14 14:40:34 UTC
v2 posted to upstream.

http://www.redhat.com/archives/libvir-list/2012-March/msg00616.html

Comment 12 Osier Yang 2012-05-28 08:45:50 UTC
Per comment 11, move to POST.

Comment 14 Daniel Veillard 2012-08-02 08:39:19 UTC
The upstream pathches were commited march 23, 11 patches set
a26a1969c37c865b18294c5717544c1dc90beb3c
Add support for event tray moved of removable disks
etc...
Daniel

Comment 16 zhe peng 2012-08-06 09:19:39 UTC
verify with:
libvirt-0.10.0-0rc0.el6.x86_64
qemu-kvm-0.12.1.2-2.295.el6.x86_64
seabios-0.6.1.2-19.el6.x86_64

step:
  1:prepare a guest with xml
  ......
    <os>
    <type arch='x86_64' machine='rhel6.3.0'>hvm</type>
    <loader>/usr/share/seabios/bios-pm.bin</loader>
    <boot dev='hd'/>
  </os>
  ......
  2: start the guest ,
    in guest run
  #pm-suspent or #echo mem > /sys/power/state
   the guest suspent successful
 #virsh list --all
  Id    Name                           State
----------------------------------------------------
 15    tests3                         pmsuspended

  3:wake up the guest 
   1)use clicking keyboard , the guest wakeup w/o error
   2)use clicking ps/2 mouse ,the guest wakeup w/o error
   3)use monitor command, run in host:
     # virsh qemu-monitor-command tests3 '{"execute":"system_wakeup"}'
   {"return":{},"id":"libvirt-43"}
   the guest can wakeup w/o error.
  4: use virsh command to into s3
    install vdagent in guest os.
   add qemu-ga support in guest xml:
   <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/tests3.agent'/>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
  in guest run #qemu-ga -d
  in host run:
  #virsh dompmsuspend $guest_name --target mem
  Domain tests3 successfully suspended
  #virsh domstate $guest_name
  pmsuspended

   wakeup guest:
  #virsh dompmwakeup $guest_name
  Domain tests3 successfully woken up
  

verification passed.

Comment 17 zhenfeng wang 2012-12-25 09:04:06 UTC
Now, in pkg qemu-guest-agent-win32-0.12.1.2-2.346.el6.x86_64.rpm  we can do the testing 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 , besides,qemu agen didn't support  "guest-suspend-mem" yet,so we can't test it untile the bug fixed and qemu agent support it

Comment 18 errata-xmlrpc 2013-02-21 07:07:50 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/RHSA-2013-0276.html


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