Running Date command on KVM guest

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Running Date command on KVM guest

504 Views
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.

Tags (3)
0 Kudos
1 Reply

302 Views
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 Kudos