<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: 宋体; COLOR: #000080; FONT-SIZE: 10.5pt
}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.6001.19298"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>Thank you! It works.</DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>

<DIV><SPAN>xuanmao_001</SPAN></DIV>
<DIV> </DIV>
<DIV 
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV 
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:eblake@redhat.com">Eric Blake</A></DIV>
<DIV><B>Date:</B> 2012-09-17 22:22</DIV>
<DIV><B>To:</B> <A href="mailto:xuanmao_001@163.com">xuanmao_001</A></DIV>
<DIV><B>CC:</B> <A href="mailto:berrange@redhat.com">Daniel P. 
Berrange</A>; <A href="mailto:libvirt-users@redhat.com">libvirt-users</A></DIV>
<DIV><B>Subject:</B> Re: Failed to reboot VM via virsh</DIV></DIV></DIV>
<DIV>
<DIV>[GB2312 is not universally understood; I recoded to UTF-8]</DIV>
<DIV> </DIV>
<DIV>On 09/17/2012 02:10 AM, xuanmao_001 wrote:</DIV>
<DIV>> Hi, Eric:</DIV>
<DIV> </DIV>
<DIV>Why are you addressing me but cc'ing Daniel?  Generally, it is</DIV>
<DIV>sufficient to address the list, and anyone can reply.</DIV>
<DIV> </DIV>
<DIV>> </DIV>
<DIV>> I want to reboot vm using libvirt reboot api virDomainReboot(). but it occured error like following:</DIV>
<DIV>> "error: Failed to reboot domain abc"</DIV>
<DIV>> "error: Requested operation is not valid: Reboot is not supported without the JSON monitor".</DIV>
<DIV>> </DIV>
<DIV>> I updated qemu version,such as "qemu-kvm-1.2.0", it still like that.</DIV>
<DIV>> </DIV>
<DIV>> can you give me any ideas? </DIV>
<DIV> </DIV>
<DIV>Sounds like your libvirt was built without yajl-devel; you need to</DIV>
<DIV>rebuild it with access to the yajl libraries, in order to gain JSON</DIV>
<DIV>monitor support, at which point your command will start working.  If you</DIV>
<DIV>did not self-build, then report this as a bug to your distro.</DIV>
<DIV> </DIV>
<DIV>> </DIV>
<DIV>> my libvirt version: 0.9.8.</DIV>
<DIV> </DIV>
<DIV>Would you mind trying again with 0.10.1?</DIV>
<DIV> </DIV>
<DIV>-- </DIV>
<DIV>Eric Blake   eblake@redhat.com    +1-919-301-3266</DIV>
<DIV>Libvirt virtualization library http://libvirt.org</DIV>
<DIV> </DIV>
<DIV> </DIV></DIV></BODY></HTML>