On 07/24/2013 08:07 AM, Nils Toedtmann wrote: > Hi > > Is there a way i can trigger a script within a libvirt guest immediately > after resume? E.g. i don't see any log message that indicates to a guest > that it had been paused and was just woken up. Upstream qemu has added the guest-set-time command to qemu-ga as of qemu 1.5; if you have the qemu-ga daemon running in your guest (available at least for Linux and Windows guests), then triggering this guest-agent command would do what you want. It might be nice to expose an API in libvirt for poking the guest-agent command on demand, and/or adding some XML configuration to a guest that requests that libvirt will automatically send the guest-agent command every time the guest is resumed. But for now, you're stuck using the unsupported 'virsh qemu-agent-command' option for triggering the command manually. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users