Contact

Subscribe via Email

Subscribe via RSS/JSON

Categories

Creative Commons Attribution 4.0 International License
© Rakhesh Sasidharan

Elsewhere

[Aside] ESXi and NTP (more)

VMware VMs tend to correct the OS time by syncing with the host. You can disable this but it still syncs during vMotion and some other tasks. This was causing trouble with our Exchange environment as there was a few seconds difference between our hosts and one of the Exchange VMs had its time go back by 5seconds after a vMotion. So we decided to totally disable time sync with the host.

Instructions are simple – https://kb.vmware.com/s/article/1189.

I am supposed to add the following to the VM’s config file after shutting it down:

Sounds simple, but it didn’t go smooth. After doing this the VM refused to start and gave errors about an invalid config file. After some trial an error I figured that the first line was causing trouble. Remove that and now the VM starts as expected. Odd that no one else seems to have encountered this issue!

Curious about what these options do? This PDF is a trove of information on timekeeping and VMware. From the PDF I found the following:

What else? This KB helped me with reloading the VM config file after I made changes. Do vim-cmd vmsvc/getallvms to get a list of VMs and note the ID of the one we are interested in. Then do vim-cmd vmsvc/reload <vmid> to reload.

[Aside] ESXi and NTP (more) by rakhesh is licensed under a Creative Commons Attribution 4.0 International License.