VMware Cloud Community
Dynamax
Enthusiast
Enthusiast

NTP in kickstart

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

0 Kudos
10 Replies
Dynamax
Enthusiast
Enthusiast

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

0 Kudos
tigerdeccan
Enthusiast
Enthusiast

try this on powerCLi

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

0 Kudos
Sreejesh_D
Virtuoso
Virtuoso

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?

0 Kudos
Dynamax
Enthusiast
Enthusiast

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

0 Kudos
Sreejesh_D
Virtuoso
Virtuoso

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

0 Kudos
Dynamax
Enthusiast
Enthusiast

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
0 Kudos
Sreejesh_D
Virtuoso
Virtuoso

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

0 Kudos
Dynamax
Enthusiast
Enthusiast

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.

0 Kudos
cryton2707
Enthusiast
Enthusiast

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

0 Kudos
Dynamax
Enthusiast
Enthusiast

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

0 Kudos