Link to home
Start Free TrialLog in
Avatar of Indyrb
IndyrbFlag for United States of America

asked on

esxi kickstart script /w iscsi

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
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

edit esx.conf and change the configuration.

You will be able to change vmhbaxx and alter Advanced settings.
Avatar of Indyrb

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial