Re: qemu-monitor-command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I installed qemu 1.0 from source from the qemu site and all of the
dependencies it needed.  I rebooted my system and now if I type virsh
version I get:

Compiled against library: libvir 0.9.2
Using library: libvir 0.9.2
Using API: QEMU 0.9.2
Error: failed to get the hypervisor version
Error: internal error Cannot find suitable emulator for x86_64

If I try to launch my vm now I get:

virsh -c qemu:///system start Shawn
error: Failed to get domain 'Shawn'
error: Domain not found: no domain with matching name 'Shawn'

virsh uri 
qemu:///system

If I run:
Sudo libvirtd start I get:
12:37:48.742: 2886: info : libvirt version: 0.9.2
12:37:48.742: 2886: error : qemudWritePidFile:532 : Failed to open pid file
'/var/run/libvirtd.pid' : File exists

Ps -ef | grep libvirtd
Root	1049	1	0	12:10	?	00:00:00
/usr/sbin/libvirtd -d
Testa	2925	1897	0	12:43	pts/0	00:00:00	grep
--color=auto libvirtd

It appears my libvirt isn't finding qemu.  Any ideas on how to fix?

Thanks,
Shawn

-----Original Message-----
From: Eric Blake [mailto:eblake@xxxxxxxxxx] 
Sent: Wednesday, March 21, 2012 9:56 AM
To: Shawn Davis
Cc: 'Michal Privoznik'; libvirt-users@xxxxxxxxxx
Subject: Re: qemu-monitor-command

On 03/21/2012 08:49 AM, Shawn Davis wrote:
> Hi Michal,
> 
> Thanks for testing that for me.
> 
> When I try to run the latter command which was:
> 
> virsh qemu-monitor-command Shawn '{"execute":"pmemsave", "arguments":
> {"val":0, "size":536870912, "filename":"/tmp/testimage.dump"}}'
> 
> I get:
> 
> Unknown command: '{\"execute\":\"pmemsave\",'
> 
> Any ideas?

Your qemu is old enough that it isn't running the QMP monitor, so you can
only pass HMP commands.  It may be worth upgrading to a newer qemu.

> 
> My versions are:
> 
> Compiled against library: libvir 0.9.2 Using library: libvir 0.9.2 
> Using API: QEMU 0.9.2 Running hypervisor: QEMU 0.14.1

I think we didn't turn on QMP until 0.15; and now 1.0 is out.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org



[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux