Thank you! It works.
 

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