This blog is NOFOLLOW Free!

The magic space of the IT find what you seek or get lost

14Jan/10Off

Using independent clocks in xen domU (ntp)

Normally the xen domU´s are using the same clock as the dom0. But I had the problem, that there was a timeshift of 20 minutes on one of my hosts. I did not find out the reason for this, so I decided to simply setup ntp also on this.

To make this work you have to tell the kernel of the virtual machine to use its on clock. With this command you set the parameter online.

echo 1 > /proc/sys/xen/independent_wallclock

To make this also boot safe, you will have to add a sysctl code to your /etc/sysctl.conf

# Set independent wall clock time
xen.independent_wallclock=1

After that you can already use your own clock. For example you can now setup openntp on it, which will not work otherwise.

Fatal error: Call to undefined function the_flattr_permalink() in /srv/www/webs/aschneider/magicspace_eu/htdocs/wp-content/themes/lightword-custom/single.php on line 23 Call Stack: 0.0001 235656 1. {main}() /srv/www/webs/aschneider/magicspace_eu/htdocs/index.php:0 0.0002 238616 2. require('/srv/www/webs/aschneider/magicspace_eu/htdocs/wp-blog-header.php') /srv/www/webs/aschneider/magicspace_eu/htdocs/index.php:17 0.3538 54273744 3. require_once('/srv/www/webs/aschneider/magicspace_eu/htdocs/wp-includes/template-loader.php') /srv/www/webs/aschneider/magicspace_eu/htdocs/wp-blog-header.php:19 0.3603 54701784 4. include('/srv/www/webs/aschneider/magicspace_eu/htdocs/wp-content/themes/lightword-custom/single.php') /srv/www/webs/aschneider/magicspace_eu/htdocs/wp-includes/template-loader.php:74