From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwCi3-0005aw-9d for qemu-devel@nongnu.org; Tue, 31 Jul 2012 09:42:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwChw-0001e7-KR for qemu-devel@nongnu.org; Tue, 31 Jul 2012 09:42:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwChw-0001bN-CE for qemu-devel@nongnu.org; Tue, 31 Jul 2012 09:41:56 -0400 Message-ID: <5017E09B.2010800@redhat.com> Date: Tue, 31 Jul 2012 07:41:47 -0600 From: Eric Blake MIME-Version: 1.0 References: <500373C8.9020809@gmail.com> <5016C948.9080401@redhat.com> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigE84B8BE343DE2915087F45EE" 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: Mauricio Tavares Cc: libvirt-users , QEMU Developers This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE84B8BE343DE2915087F45EE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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-Virtualizat= ion-Managing_guests_with_virsh.html, >>> it seems to imply you can load/send scripts to the vm guest using vir= sh. >>> 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 n= ot >> the additional layers of communication (such as virtio, qemu-ga, or th= e >> 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. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigE84B8BE343DE2915087F45EE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJQF+CbAAoJEKeha0olJ0NqAuYH/0T5bAWvh4Fa0EOrTpG3I5sD 81aXLsYV7L6Lp9F1IC80+udX3HzKnzAPwBqsyjSX5RC4MKIW1fniqnl8JrkHWUmB I6e2hPJb9MBxMm9otoLhwT+le3A1RueLzcP0AskPhLiJs39R3a5fczwlB47oxXX8 CRRLFm92zcdIpmWhj97flWO84yDGke1mB0gwCQXk0GNd+wfY0yT9HN9Ll53MtuW2 F5Zk7CnButGdM2YYMlAYW6iocZoMdVXOb0RHtIz7NguT8rXP426ICnF1IAigPnj0 ZTaCRW99re1lfg1ym7lYX7i/WB/XxQr8zqDm5T+TNWZIFc+zK1+Nc2eSJiNddck= =FCKi -----END PGP SIGNATURE----- --------------enigE84B8BE343DE2915087F45EE--