Ntpdate Not syncing time correctly – Xen Host

I came across a situation where ntpdate would not sync the time correctly in a Xen Virtual machine. The time was 10 minutes ahead of what it was supposed to be. Apparently , you need to force it to not use the dom0’s clock.

vi /etc/sysctl.conf
xen.independent_wallclock = 1
sysctl -p