Running Date command on KVM guest

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Running Date command on KVM guest

930 次查看
amittomar
NXP Employee
NXP Employee

I have run the "date" command on kvm Guest OS  and it shows me the time which is way out of sync from host.

I see that clocksource for KVM guest is "timebase" but it is not in sync with host. I tried running ntpd which comes with busybox on guest in hope

to get a time which is in sync with guest,but could not see anything after running below command.

#ntpd -q -p host_ipaddress.

Ping is working between guest and host using TAP.

Would any one point me out some way to get synced time on guest OS with respect to host?

Thanks,

Amit.

标记 (3)
0 项奖励
回复
1 回复

728 次查看
scottwood
NXP Employee
NXP Employee

ntpd is for keeping clocks in sync that are already close.  ntpd only speeds/slows time to match the reference; it does not make time jump.  If you want to set the date immediately, use ntpdate.

0 项奖励
回复