Running Date command on KVM guest

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Running Date command on KVM guest

1,305件の閲覧回数
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 返信

1,103件の閲覧回数
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 件の賞賛
返信