VMware Cloud Community
iansalt
Contributor
Contributor

NTP Scripted Install

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.

Tags (3)
Reply
0 Kudos
2 Replies
mcowger
Immortal
Immortal

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

--Matt VCDX #52 blog.cowger.us
Reply
0 Kudos
iansalt
Contributor
Contributor

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

Reply
0 Kudos