Quantcast
Viewing all articles
Browse latest Browse all 60069

Using variables in kickstart script

Hi

 

I'm using Mike's UDA to install ESX hosts. The script I have is about 260 lines at the moment. For each host I copy this script and change the IP / hostname and vmotion IP. To do this I have to search through the whole script and hope I don't forget anything.

 

Is it possible to use variables? I would like something like this:

 

ks.cfg:

 

HostIP = "172.x.x.x"

HostName = "vmesx022.mydomain.com"

VMotionIP = "172.x.x.x"

 

\# Network Configurations

network --device eth0 --bootproto static --ip $HostIP --netmask 255.255.255.0 --gateway 172.29.26.254 --nameserver 145.70.12.203 --nameserver 145.70.11.203  --hostname $HostName --addvmportgroup=0

 

 

 

Can this work?

 

Gabrie


Viewing all articles
Browse latest Browse all 60069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>