Bug 869986 - can not reboot guest with command { "execute":"guest-shutdown","arguments":{"mode":"reboot"}} after guest halt
can not reboot guest with command { "execute":"guest-shutdown","arguments":{"...
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
6.4
Unspecified Unspecified
unspecified Severity low
: rc
: ---
Assigned To: Virtualization Maintenance
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-25 05:54 EDT by langfang
Modified: 2012-10-25 07:02 EDT (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-10-25 07:02:29 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description langfang 2012-10-25 05:54:17 EDT
Description of problem:
can not reboot guest with command { "execute":"guest-shutdown","arguments":{"mode":"reboot"}} after guest halt

Version-Release number of selected component (if applicable):

host:
# uname -r
2.6.32-336.el6.x86_64
# rpm -q qemu-kvm
qemu-kvm-0.12.1.2-2.331.el6.x86_64

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

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

How reproducible:
almost

Steps to Reproduce:
1.boot guest with 
-chardev socket,path=/tmp/qga.sock,server,nowait,id=qga0 -device  virtio-serial -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 
2.on host

# nc -U /tmp/qga.sock

3. in guest
#service qemu-ga start


4.host
# nc -U /tmp/qga.sock
{"execute":"guest-fsfreeze-status"}
{"return": "thawed"}
{"execute":"guest-fsfreeze-status"}
{"return": "thawed"}
{"execute":"guest-fsfreeze-freeze"}
{"return": 5}
{"execute":"guest-fsfreeze-thaw"}
{"return": 2}
{"execute":"guest-fsfreeze-thaw"}
{"return": 0}
{"execute":"guest-fsfreeze-thaw"}
{"return": 0}
{ "execute":"guest-shutdown","arguments":{"mode":"halt"}} ----->guest halt
{ "execute":"guest-shutdown","arguments":{"mode":"reboot"}}----->can not reboot guest

Actual results:

when execute { "execute":"guest-shutdown","arguments":{"mode":"reboot"}},can not reboot guest ,guest still halt.
Expected results:
when execute { "execute":"guest-shutdown","arguments":{"mode":"reboot"}},can  reboot guest 



Additional info:
 use qemu command can be reboot guest 
(qemu)system_reset ----->can be reboot guest
Comment 2 langfang 2012-10-25 07:02:29 EDT
after guest halt ,tried other qemu-agent commands can not work any more.so i think when guest halt ,the  agent can not work .so closed this bug .if anything i wrong,tell me  directly.thanks.

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