If you want to have "real" time on your virtual machine and don't want to pay much for this (won't you install those famous VmWare Tools?) and your virtual OS is:
- Windows... Well, brother, fight for yourself.. (anyway, mentioned super-mega-manual would be definitely helpful)
- Linux. [a certain Torvalds will smirk]. Here I is a big fat quote that really rocks.
QUOTE_START
The Network Time Protocol is usable in a virtual machine with proper configuration of the NTP daemon. The following points are important:- Do not configure the virtual machine to synchronize to its own (virtual) hardware clock, not even as afallback with a high stratum number. Some sample ntpd.conf files contain a section specifying the local clock as a potential time server, often marked with the comment “undisciplined local clock.” Delete anysuch server specification from your ntpd.conf file.
- Include the option tinker panic 0 at the top of your ntp.conf file. By default, the NTP daemonsometimes panics and exits if the underlying clock appears to be behaving erratically. This option causesthe daemon to keep running instead of panicking.
- Follow standard best practices for NTP: Choose a set of servers to synchronize to that have accurate time and adequate redundancy. If you have many virtual or physical client machines to synchronize, set upsome internal servers for them to use, so that all your clients are not directly accessing an external low‐stratum NTP server and overloading it with requests.
NOTE Any tinker commands used must appear first.
# ntpd.conf tinker panic 0 restrict 127.0.0.1 restrict default kod nomodify notrap server 0.vmware.pool.ntp.org server 1.vmware.pool.ntp.org server 2.vmware.pool.ntp.org server 3.vmware.pool.ntp.org
Here is a sample /etc/ntp/step-tickers corresponding to the sample ntp.conf file above.
# step-tickers 0.vmware.pool.ntp.org 1.vmware.pool.ntp.org
Make sure that ntpd is configured to start at boot time. On some distributions this can be accomplished with the command chkconfig ntpd on, but consult your distribution’s documentation for details. On most distributions, you can start ntpd manually with the command /etc/init.d/ntpd start.
QUOTE_END
0 comments:
Post a Comment