Timekeeping in instances with libvirt clock offset

Follow

Eucalyptus Versions: All

Timekeeping

libvirt provides a method whereby guest clock synchronisation can be configured in the domain XML, which is the definiton for a guest machine.

By default the guest is configured to synchronise the guest clock to the host phyical machines configured timezone, using the "localtime" value[1].  This is not always optimal and can be changed.

Modifying the Eucalyptus libvirt template

Eucalyptus templates the libvirt machine definition for each instance via the libvirt.xsl file in /etc/eucalyptus/ on each node controller.  Open this file and modify the following line:

<clock offset="localtime" />

Change the value accordingly[2].  You will need to make this change on all of your node controllers if you wish for it to persistent and be the same for all instances.

References

[1]https://eucalyptus.atlassian.net/browse/EUCA-1973

[2]https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Administration_Guide/sect-Virtualization-Tips_and_tricks-Libvirt_Managed_Timers.html

Have more questions? Submit a request

Comments

Powered by Zendesk