检查是否是虚拟机
在虚拟机里
cat /proc/sys/xen/independent_wallclock
0 means that the virtual machine is getting time from the host and not using independent wallclock.
1 means that the virtual machine is using independent wallclock and managing its time independent from the host
如果是虚拟机则可以通过修正host的时间或者打开时间独立
a. 编辑 /etc/sysctl.conf
b. 添加 xen.independent_wallclock=1
c. 执行 sysctl -p 命令
在虚拟机里
cat /proc/sys/xen/independent_wallclock
0 means that the virtual machine is getting time from the host and not using independent wallclock.
1 means that the virtual machine is using independent wallclock and managing its time independent from the host
如果是虚拟机则可以通过修正host的时间或者打开时间独立
a. 编辑 /etc/sysctl.conf
b. 添加 xen.independent_wallclock=1
c. 执行 sysctl -p 命令
如果是物理机, 则检查ntp配置是否正确。
是否是xen虚拟机,查一下/proc/sys/xen/independent_wallclock是否为1