How to set independent time for Xen VPS

If you host your VPS with Xen environment, you will found out your local time will follow the dom0(host) time.

To get this fixed, you may follow here,
1. Edit the value in /proc/sys/xen/independent_wallclock,

echo 1 > /proc/sys/xen/independent_wallclock

2. The make sure the setting run on boot, edit the file /etc/sysctl.conf, enter the following line to new line.

xen.independent_wallclock = 1

3. Lastly, log into WHM, select Server Configuration, select Server time and Sync it with Time server.

Published by

Mick Genie

Mick Genie is the founder of MickGenie.com and working at ExaBytes Network Sdn Bhd and WPWebHost web host company. He is expertise in Windows and Linux environment especially web hosting related information, tips and trick as well as the IT Information.