ESXi

 View Only
  • 1.  NTP Scripted Install

    Posted Aug 27, 2010 06:18 PM

    Hi

    I've seen this problem posted a few times on this forum, but found no satisfactory answers. (applogies if this is not the case)

    I'm trying to automate an installation of ESX4.1 using kickstart, and have been mostly successful, however I am having a problem with ntp.

    I've used chkconfig to set ntpd to start at boot time, and chkconfig --list shows that its set up

    however after a re-boot, ntpd doesn't start, and chkconfig --list shows that its set to off.

    The VMWare VSphere Client has an option to configure ntp, and I can get that to work without any problems, what I think I'm looking for is the command line option to change the settings in VSphere.

    any help would be much appreciated

    Regards

    Ian

    To give a bit of background, I've a lot of experience of kickstart builds for RHEL, and Centos, its the VMWare knowledge that I think I'm lacking.



  • 2.  RE: NTP Scripted Install

    Posted Aug 27, 2010 11:23 PM

    we just do this in %post:

    #setup ntp

    cat > /etc/ntp.conf << __NTP__

    restrict default kod nomodify notrap nopeer

    restrict 127.0.0.1

    server 1.2.3.4

    server 1.2.3.4

    driftfile /etc/ntp.drift

    __NTP__

    /etc/init.d/ntpd restart

    --Matt

    VCP, vExpert, Unix Geek, Storage Nerd



  • 3.  RE: NTP Scripted Install

    Posted Aug 28, 2010 10:54 PM

    Hi, thanks for replying, can you answer a few questions?

    What version of VMWare are you using?

    Does the ntp service automatically start on re-booting?

    What state does ntp show up in in VC?

    Cheers

    Ian