]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
libvirt-guests: Allow time sync on guests resume
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 18 Feb 2015 10:59:22 +0000 (11:59 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 23 Feb 2015 07:49:21 +0000 (08:49 +0100)
commit0fa15b19a93395ce5c8e0a606ff1ebd64f2bac85
treec417ee30f529a4d7f4486560e80fe9f13820bb15
parentf2f1e388e160fb85eb4a7118c02706cf9ff5ca18
libvirt-guests: Allow time sync on guests resume

Well, imagine domains were running, and as the host went down, they
were managesaved. Later, after some time, the host went up again and
domains got restored. But without correct time. And depending on how
long was the host shut off, it may take some time for ntp to sync the
time too. But hey, wait a minute. We have an API just for that! So:

1) Introduce SYNC_TIME variable in libvirt-guests.sysconf to allow
users control over the new functionality
2) Call 'virsh domtime --sync $dom' in the libvirt-guests script.

Unfortunately, this is all-or-nothing approach (just like anything
else with the script). Domains are required to have configured and
running qemu-ga inside.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/libvirt-guests.sh.in
tools/libvirt-guests.sysconf