ESXi

 View Only
  • 1.  NTP in kickstart

    Posted Feb 22, 2012 04:15 PM

    Hi,

    Im trying to set the UK keyboard in my ks script and nothing seems to get accepted tried the following

    keyboard uk

    keyboard United Kingdom

    keyboard "United Kingdom"

    esxcli system settings keyboard layout United Kingdom

    I also have the issue that I put all my NTP information in the ntp.conf file but then once I log into the client the ntp daemon isnt running, Ive added the /etc/inet.d/ntpd start also.

    any ideas?

    thanks



  • 2.  RE: NTP in kickstart

    Posted Feb 23, 2012 09:53 AM

    I managed to work out the UK keyboard issue but any ideas on NTP?



  • 3.  RE: NTP in kickstart

    Posted Feb 23, 2012 10:03 AM

    try this on powerCLi

    Add-VMHostNtpServer -VMHost MYHost -NtpServer  ntp.mydomain.com



  • 4.  RE: NTP in kickstart

    Posted Feb 23, 2012 10:30 AM

    check /var/log/vmkernel.log and /var/log/syslog.log for errors when ntp service is starting.

    what happens when you start NTP through vSphere client?



  • 5.  RE: NTP in kickstart

    Posted Feb 23, 2012 10:34 AM

    It works fine starting it in the client.

    the ntp.conf has all the config from the ks script so there must be something im missing that doesnt start it from the script



  • 6.  RE: NTP in kickstart

    Posted Feb 23, 2012 10:41 AM

    Please post the snippet of NTP config part from the KS file.



  • 7.  RE: NTP in kickstart

    Posted Feb 23, 2012 10:49 AM

    cat > /etc/ntp.conf << __NTP_CONFIG__

    restrict default kod nomodify notrap noquery nopeer
    restrict 127.0.0.1
    server 10.15.11.179
    server 10.115.11.179
    __NTP_CONFIG__
    /sbin/chkconfig --level 345 ntpd on
    /etc/init.d/ntpd start


  • 8.  RE: NTP in kickstart

    Posted Feb 23, 2012 11:51 AM

    in KS file, have you donethe changes in firewall ton enable ntpclient ?

    esxcli network firewall set --default-action false --enabled yes

    esxcli network firewall ruleset set --ruleset-id ntpClient --enabled yes

    http://thomaslowblog.blogspot.com/2011/09/esxi-50-kickstart-installation-part-3.html



  • 9.  RE: NTP in kickstart

    Posted Feb 23, 2012 12:12 PM

    Hi

    Yes I done that setting, all it does is check the NTP Client option but it doesnt start the service or populate the NTP server addresses.



  • 10.  RE: NTP in kickstart

    Posted Mar 22, 2012 12:34 PM

    what line did you use to set the keyboard in the ks?



  • 11.  RE: NTP in kickstart

    Posted Mar 22, 2012 01:27 PM

    esxcli system settings keyboard layout set -l "United Kingdom"