I was like try to create an NTP time server under my RHEL6 box, but once I try to sync other Windows clients (and some Linux) I alway get an error with syncing with my NTP server, here is my non-hashed ntp.conf file parameters:
driftfile /var/lib/ntp/drift
restrict 192.168.238.0 mask 255.255.255.0 nomodify notrap #My Network
server 192.168.238.140 #This server
includefile /etc/ntp/crypto/pw
keys /etc/ntp/keys
Its good to know that I turned off my firewall (iptables) and my SELinux policies as well and I can easily ping between the clients and the server.
That's a misconfigured NTP server.
The NTP server must either refer to a hardware clock or to another server that has a path to a hardware clock.
You can use the own system HW clock like
Yes sir! The NTP server is running on VMware! and the other clients is on VMware too. Is that the reason behind this issue? and if its, what is the solution for such cases.
Yes I think this is your problem.
Unfortunately I don't know if there is possibility to have a VMware guest act as an NTP server.
Google for: ntp server on vmware guest
The safest metod is to use another server with real hardware.
The VMware ESX server itself can act as an NTP server.
Google for: ntp server on vmware ESX
It is possible to have a NTP server running on VMware (5.1 in my case). But you have to make sure, that the host's clock is close to accurate, meaning ESXi's NTP client has to be configured properly.
That's because a VM syncs its time with the host at boot time, even if timesync is disabled in the VMs configuration. Now if the host's time is off by a greater timespan, the guest's clock is off too, because of the boot-time timesync with the host and the NTP daemon will not be able to adjust the guest's clock and synchronize to it's upstream NTP servers.