天天看点

虚拟机的时间调整问题

1.vi /boot/grub/grub.conf

default=0

timeout=5

splashp_w_picpath=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

title CentOS (2.6.18-194.el5)

root (hd0,0)

kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup00/LogVol00 hda=noprobe hdb=noprobe notsc divider=10

initrd /initrd-2.6.18-194.el5.img

2.同步网络时间

ntpdate time.nist.gov

set the hardware clock to the newly synchronised time:

hwclock -systohc

set the hardware clock to the newly synchronised time:hwclock -systohc

hwclock --systohc

hwclock -w

date

logout

继续阅读