Possibility to notify a VM that host was suspended

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

 



Hi,

I am running a bunch of test VMs on a host (with an AMD Phenom II X6
1090T Processor [I am afraid this matters]) using KVM. Host and guest
OS is Debian unstable, and I'm running home-brewed kernel trying to
stay close to Greg's stable releases.

This is a rather similiar issue than the "clock stops after host
suspend" issue I posted about the other day.

Since those are just test VMs and the host is also my home desktop
machine, I suspend the host at night without caring for the VMs.
Usually, this works fine with the VMs just chugging away again after
waking up the host. I do have an /etc/systemd/system-sleep/ script
that does a virsh suspend on every running domain when the host goes
to suspend and a virsh resume after host resume.

After waking up the VM, I would like to kick the ntpd running in the
VMs so that the clocks get resynced. Is there any way to start a
script inside the VM after a suspend/resume cycle of the VM or -
preferred - the host?

Do I need a local ntpd inside the VM anyway, or does KVM/qemu/libvirt
have a time sync facility that can keep the VM clock in sync with the
host's synchronized clock?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux