虚拟机的时间调整问题

1.vi /boot/grub/grub.conf
default=0
timeout=5
splashimage=(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
set the hardware clock to the newly synchronised time:
hwclock --systohc
hwclock -w
date
logout
date

你可能感兴趣的:(虚拟机,网络,hardware,Clock)