Re: Using virsh to load scripts for the guest machine

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

 



On Mon, Jul 30, 2012 at 1:50 PM, Eric Blake <eblake@xxxxxxxxxx> 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!"  So that could either be done by stopping ntp
and running ntpdate or actually being able to pass the host time
(adjusted for the timezone the vm is supposed to be at) to the vm.

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

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux