Re: run qemu-agent-command via binding (ruby/python/php)

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

 



2014-08-28 17:34 GMT+04:00 Eric Blake <eblake@xxxxxxxxxx>:
> On 08/28/2014 07:12 AM, Vasiliy Tolstov wrote:
>> Hi! Does it possible(featured, planned) to run some qemu-agent-command
>> via libvirt binding (i'm interesting on ruby and php).?
>
> I'm not sure the time-schedule of the ruby and php bindings maintainers,
> but ideally, ALL libvirt API should eventually have exposure in each
> language binding.
>
>> I'm understand that i can connect via socket and run it, but it very
>> usable to get this ability inside binding.
>
> In the meantime, if you can fork out to a shell, you can use 'virsh'
> from within your language of choice to drive the bindings.
>
> Also, it might help to say WHAT you hope to do with qemu-agent-command -
> that is an explicitly unsupported interface, and if you find yourself
> having to use it, it means we have a hole in libvirt proper, where we
> should expose a supported API to get at the same task without going
> through the backdoor.  (As past examples, we added virDomainSetTime
> because people were previously having to use the agent's back door.)

Thanks. I want to use backdoor =) Now i'm need to get memory stats
from guest (free memory, used swap) and rewrite 50% of qemu-ga in
golang.
And feature plans is add ability to get,set,del ip addresses and
routes inside virtual machine.
In very long feature may be i want to create some control panel
backend that works via virtio-serial.
Why not add ability to send some json via libvirt api function and get results ?



-- 
Vasiliy Tolstov,
e-mail: v.tolstov@xxxxxxxxx
jabber: vase@xxxxxxxxx

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]