[libvirt] [RFC] Design executing commands from within domains

Chen Hanxiao chen_han_xiao at 126.com
Wed Aug 10 06:32:47 UTC 2016


在 2016-08-09 19:03:32,"Andrea Bolognani" <abologna at redhat.com> 写道:
>On Mon, 2016-08-08 at 16:19 +0100, Daniel P. Berrange wrote:
>> IOW, I don't think we should ever expose the qemu guest agent exec command
>> via libvirt APIs.
>> 
>> If people want a general purpose exec facility, they can trivially write
>> a much better exec feature via a separate virtio-serial channel (or via
>> the new virtio-vsock), and stil access that over libvirt by using the
>> virDomainOpenChannel to connect to the host side of the channel if needed
>
>Personally, I feel like most of this is way out of scope for
>libvirt.
>
>If you want to monitor the disk / memory usage of your guest,
>just run the Nagios agent or whatever in it; if you want to
>run random commands, just use ssh.

One of the use cases for guest agent exec is that
when network service is abnormal,
we could restart it in VMs rather than vnc/spice :) 

Regards,
- Chen
>
>These are not some specific requirements that are strongly
>tied to virtualization, but very generic requirements that
>can be addressed with existing generic software.
>




More information about the libvir-list mailing list