From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwZI1-00039Y-HB for qemu-devel@nongnu.org; Wed, 01 Aug 2012 09:48:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwZHw-00083Q-Su for qemu-devel@nongnu.org; Wed, 01 Aug 2012 09:48:41 -0400 Received: from mail-ob0-f173.google.com ([209.85.214.173]:32979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwZHw-00083J-Nd for qemu-devel@nongnu.org; Wed, 01 Aug 2012 09:48:36 -0400 Received: by obbta14 with SMTP id ta14so11575250obb.4 for ; Wed, 01 Aug 2012 06:48:36 -0700 (PDT) From: Anthony Liguori In-Reply-To: <5017E09B.2010800@redhat.com> References: <500373C8.9020809@gmail.com> <5016C948.9080401@redhat.com> <5017E09B.2010800@redhat.com> Date: Wed, 01 Aug 2012 08:48:33 -0500 Message-ID: <87vch2soy6.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [libvirt-users] Using virsh to load scripts for the guest machine List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , Mauricio Tavares Cc: libvirt-users , QEMU Developers Eric Blake writes: > On 07/30/2012 12:00 PM, Mauricio Tavares wrote: >> On Mon, Jul 30, 2012 at 1:50 PM, Eric Blake 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