qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [libvirt-users] Using virsh to load scripts for the guest machine
       [not found]   ` <CAHEKYV4Q2vNSq2zkdTkqTFfYBjPPFROWBVj5Dc-G5SrBg_wU9A@mail.gmail.com>
@ 2012-07-31 13:41     ` Eric Blake
  2012-08-01 13:48       ` Anthony Liguori
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Blake @ 2012-07-31 13:41 UTC (permalink / raw)
  To: Mauricio Tavares; +Cc: libvirt-users, QEMU Developers

[-- Attachment #1: Type: text/plain, Size: 1572 bytes --]

On 07/30/2012 12:00 PM, Mauricio Tavares wrote:
> On Mon, Jul 30, 2012 at 1:50 PM, Eric Blake <eblake@redhat.com> wrote:
>> On 07/15/2012 07:52 PM, Mauricio Tavares wrote:
>>>     Right on the top of
>>> http://www.centos.org/docs/5/html/5.2/Virtualization/chap-Virtualization-Managing_guests_with_virsh.html,
>>> it seems to imply you can load/send scripts to the vm guest using virsh.
>>> Is that possible? How and what are the limitations? Can you query the vm
>>> guest?
>>
>> What type of scripts are you talking about?  You may be thinking more
>> about the capabilities of what libguestfs provides, for modifying disk
>> images.  In general, virsh itself controls how to start a guest, but not
>> the additional layers of communication (such as virtio, qemu-ga, or the
>> libguestfs appliance app) required for a host to command a guest to do
>> something from within the guest.
>>
>       Basic one would be in case a machine has been paused for a long
> time. You know as in "hey, you lazy vm! You have been sleeping for two
> weeks! Now your clock is way off and poor ntp can't sync it back. So,
> here's current date!"

That is something that fits better through qemu-ga, but no one has
implemented it yet (cc'ing qemu-devel in case I'm misrepresenting
things).  Of course, if we did have a qemu-ga command for pushing the
current time into the guest, then libvirt could usefully expose an API
to wrap that qemu-ga command.

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 620 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [libvirt-users] Using virsh to load scripts for the guest machine
  2012-07-31 13:41     ` [Qemu-devel] [libvirt-users] Using virsh to load scripts for the guest machine Eric Blake
@ 2012-08-01 13:48       ` Anthony Liguori
  2012-08-01 23:17         ` Eric Blake
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony Liguori @ 2012-08-01 13:48 UTC (permalink / raw)
  To: Eric Blake, Mauricio Tavares; +Cc: libvirt-users, QEMU Developers

Eric Blake <eblake@redhat.com> writes:

> On 07/30/2012 12:00 PM, Mauricio Tavares wrote:
>> On Mon, Jul 30, 2012 at 1:50 PM, Eric Blake <eblake@redhat.com> wrote:
>>> On 07/15/2012 07:52 PM, Mauricio Tavares wrote:
>>>>     Right on the top of
>>>> http://www.centos.org/docs/5/html/5.2/Virtualization/chap-Virtualization-Managing_guests_with_virsh.html,
>>>> it seems to imply you can load/send scripts to the vm guest using virsh.
>>>> Is that possible? How and what are the limitations? Can you query the vm
>>>> guest?
>>>
>>> What type of scripts are you talking about?  You may be thinking more
>>> about the capabilities of what libguestfs provides, for modifying disk
>>> images.  In general, virsh itself controls how to start a guest, but not
>>> the additional layers of communication (such as virtio, qemu-ga, or the
>>> libguestfs appliance app) required for a host to command a guest to do
>>> something from within the guest.
>>>
>>       Basic one would be in case a machine has been paused for a long
>> time. You know as in "hey, you lazy vm! You have been sleeping for two
>> weeks! Now your clock is way off and poor ntp can't sync it back. So,
>> here's current date!"
>
> That is something that fits better through qemu-ga, but no one has
> implemented it yet (cc'ing qemu-devel in case I'm misrepresenting
> things).  Of course, if we did have a qemu-ga command for pushing the
> current time into the guest, then libvirt could usefully expose an API
> to wrap that qemu-ga command.

Could you setup a wiki page on qemu.org with a list of qemu-ga
commands that libvirt would like?

Adding commands is pretty trivial so if ya'll have a list of things
you'd like, they're great quick tasks that we can find folks to work on.

Regards,

Anthony Liguori

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [libvirt-users] Using virsh to load scripts for the guest machine
  2012-08-01 13:48       ` Anthony Liguori
@ 2012-08-01 23:17         ` Eric Blake
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Blake @ 2012-08-01 23:17 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: libvirt-users, Mauricio Tavares, QEMU Developers

[-- Attachment #1: Type: text/plain, Size: 950 bytes --]

On 08/01/2012 07:48 AM, Anthony Liguori wrote:
>>>       Basic one would be in case a machine has been paused for a long
>>> time. You know as in "hey, you lazy vm! You have been sleeping for two
>>> weeks! Now your clock is way off and poor ntp can't sync it back. So,
>>> here's current date!"
>>
>> That is something that fits better through qemu-ga, but no one has
>> implemented it yet (cc'ing qemu-devel in case I'm misrepresenting
>> things).  Of course, if we did have a qemu-ga command for pushing the
>> current time into the guest, then libvirt could usefully expose an API
>> to wrap that qemu-ga command.
> 
> Could you setup a wiki page on qemu.org with a list of qemu-ga
> commands that libvirt would like?

I gave it a shot (feel free to improve it)
http://wiki.qemu.org/Features/GuestAgent/UsefulCommands

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 620 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-01 23:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <500373C8.9020809@gmail.com>
     [not found] ` <5016C948.9080401@redhat.com>
     [not found]   ` <CAHEKYV4Q2vNSq2zkdTkqTFfYBjPPFROWBVj5Dc-G5SrBg_wU9A@mail.gmail.com>
2012-07-31 13:41     ` [Qemu-devel] [libvirt-users] Using virsh to load scripts for the guest machine Eric Blake
2012-08-01 13:48       ` Anthony Liguori
2012-08-01 23:17         ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).