Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

esxi kickstart script /w iscsi

Posted on 2016-10-04
3
Medium Priority
?
200 Views
Last Modified: 2016-10-28
So I need to enable iSCSI Software Adapter.

Then I need to set values for the iSCSI
It would be simpliar if the vmhbaxx was the same on all host, however it is not.

Is there a command that can scan and grep for the vmhba (example host one might be vmhba41 whereas host 2 is vmhba38

Then change some of the advance settings including to renaming the iqn to be
iqn.1998-01.com.vmware:%hostname%

So it renames the iqn to whatever the host name is?

enable iSCSI software adapter
esxcli iscsi software set --enabled=true

The advance settings for the iscsi that needs to be set on all host, and new builds are:
LoginTimeout and change the value to 60
uncheck the box for “Delayed ack”

Then chap username/password
and rename iqn
0
Comment
Question by:Indyrb
  • 2
3 Comments
 
LVL 124
ID: 41828663
edit esx.conf and change the configuration.

You will be able to change vmhbaxx and alter Advanced settings.
0
 
LVL 5

Author Comment

by:Indyrb
ID: 41832256
So if you create a ks.cfg called upon during deployment, do you also edit esx.conf or can you do that via install and ks,cfg?  if via ks.cfg what are the commands to complete both renaming the detected iSCSI vmhba and setting the iqn based upon hostname once entered when configurating the MGMT port and hostname
0
 
LVL 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 41832437
you can create scripts, to alter the esx.conf.

there are no commands, you would use scripts to copy the configuration you require to build up the configuration file.
0

Featured Post

Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following article is comprised of the pearls we have garnered deploying virtualization solutions since Virtual Server 2005 and subsequent 2008 RTM+ Hyper-V in standalone and clustered environments.
Windows Server 2003 introduced persistent Volume Shadow Copies and made 2003 a must-do upgrade.  Since then, it's been a must-implement feature for all servers doing any kind of file sharing.
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
Loops Section Overview

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question