VMware Cloud Community
Gerry_Deutsch
Contributor
Contributor
Jump to solution

Kick Start Install Problem

We use a Kick Start installation script to install ESX V3.50 Update 1 on our ESX hosts. The Kick Start script works beautifully. I had a request come in a short while ago to start prepping our ESX hosts to support a migration from Fiber SAN disks to NFS disks. I need to increase the NFS.HeartbeatFrequency and the NFS.HeartbeatMaxFailures settings in Advanced Options. I am using vmware-vim-cmd to make the NFS changes. The problem I am having is that the Kick Start script appears to not like the . (period) that is in my command line.

I am specifying the following commands in the Kick Start script:

vmware-vim-cmd hostsvc/advopt/update NFS.HeartbeatFrequency int 12

vmware-vim-cmd hostsvc/advopt/update NFS.HeartbeatMaxFailures int 10

When the Kick Start script hits the lines with the . (period) in them it blows up and does not finish the script. The commands are valid and do work. If I manually enter the commands from an SSH session once the ESX host is up they work like a champ. Does anyone have any suggestions?

Reply
0 Kudos
1 Solution

Accepted Solutions
sbeaver
Leadership
Leadership
Jump to solution

Give this way a try

vmware-vim-cmd hostsvc/advopt/update "NFS.HeartbeatFrequency int 12"

vmware-vim-cmd hostsvc/advopt/update "NFS.HeartbeatMaxFailures int 10"

just going to need to play untill we find what it likes

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**

View solution in original post

Reply
0 Kudos
7 Replies
Gerry_Deutsch
Contributor
Contributor
Jump to solution

Moving this question to the ESX 3.5 thread.

Reply
0 Kudos
sbeaver
Leadership
Leadership
Jump to solution

Have you tried using quotes "" in the script?

Steve Beaver

VMware Communities User Moderator

Orlando Area VMware User Group Leader

====

Co-Author of "VMware ESX Essentials in the Virtual Data Center"

(ISBN:1420070274) from Auerbach

*Virtualization is a journey, not a project.*

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Gerry_Deutsch
Contributor
Contributor
Jump to solution

I have not. Would I need to put quotes around the whole command like this:

"vmware-vim-cmd hostsvc/advopt/update NFS.HeartbeatFrequency int 12"

"vmware-vim-cmd hostsvc/advopt/update NFS.HeartbeatMaxFailures int 10"

or just for the value like this?

vmware-vim-cmd hostsvc/advopt/update "NFS.HeartbeatFrequency int 12"

vmware-vim-cmd hostsvc/advopt/update "NFS.HeartbeatMaxFailures int 10"

Reply
0 Kudos
sbeaver
Leadership
Leadership
Jump to solution

Give this way a try

vmware-vim-cmd hostsvc/advopt/update "NFS.HeartbeatFrequency int 12"

vmware-vim-cmd hostsvc/advopt/update "NFS.HeartbeatMaxFailures int 10"

just going to need to play untill we find what it likes

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos
Gerry_Deutsch
Contributor
Contributor
Jump to solution

Thank's for the input. I'll let you know what I find later this morning..............

Reply
0 Kudos
Gerry_Deutsch
Contributor
Contributor
Jump to solution

OK I figured out the command line syntax to use in the Kick Start script. This worked in my Kick Start script:

/usr/bin/vmware-vim-cmd hostsvc/advopt/update NFS"."HeartbeatFrequency int 12

/usr/bin/vmware-vim-cmd hostsvc/advopt/update NFS"."HeartbeatMaxFailures int 10

Thanks for the help Steve. As always you are a tremendous help to this forum.........

Reply
0 Kudos
Vishy1
Enthusiast
Enthusiast
Jump to solution

Hi Guys,

Still can't figure out the correct syntax for NSF setup using kickstart script

/usr/bin/vmware-vim-cmd hostsvc/advopt/update NFS"."HeartbeatFrequency int 12/usr/bin/vmware-vim-cmd hostsvc/advopt/update NFS"."HeartbeatMaxFailures int 10or even/usr/bin/vmware-vim-cmd hostsvc/advopt/update NFS.HeartbeatFrequency int 12

/usr/bin/vmware-vim-cmd hostsvc/advopt/update NFS.HeartbeatMaxFailures int 10

Both commands works fine when executed manually via SC but the kickstart script just hungs when it comes to do this task.

Using ESX 3.5 U2

Any help will be appreciated

Thanks in advnace

Vishal

If you found this information useful, please consider awarding points for Correct or Helpful.
Reply
0 Kudos