This morning I performed my first scripted installation.  For reference this is the script template that I used and it worked like a charm.  For obvious reasons I’ve left out my info, IPs, passwords, etc.  I think you will get the gist of it though.

    accepteula
    keyboard us
    auth –enablemd5 –enableshadow
    # Canonical drive names:
    clearpart –drives=mpx.vmhba0:C0:T0:L0
    # Uncomment to use first detected disk:
    #clearpart –firstdisk
    install cdrom
    rootpw –iscrypted $1$RZG65IhM$gey0IiHJyKqeGqvioM8g.0
    timezone –utc ‘US/Eastern’
    network –addvmportgroup=true –device=vmnic0
    –bootproto=static –ip=[ipaddress]
    –netmask=[netmask] –gateway=[gatewayip]
    –nameserver=[ipaddress1,ipaddress2]
    –hostname=[hostname]
    part ‘/boot’ –fstype=ext3 –size=250
    –ondisk=mpxvmhba0:C0:T0:L0
    #Uncomment to use first detected disk:
    #part ‘/boot’ –fstype=ext3 –size=250 –onfirstdisk
    part ‘none’ –fstype=vmkcore –size=110
    –ondisk=mpx.vmhba0:C0:T0:L0
    # Uncomment to use first detected disk:
    #part ‘none’ –fstype=vmkcore –size=110 –onfirstdisk
    part ‘Storage1’ –fstype=vmfs3 –size=8604
    –grow –onfirstdisk
    virtualdisk ‘esxconsole’ –size=7604 –onvmfs=’Storage1′
    part ‘swap’ -fstype=swap –size=600
    –onvirtualdisk=’esxconsole’
    part ‘/var/log’ –fstype=ext3 –size=2000
    –onvirtualdisk=’esxconsole’
    part ‘/’ –fstype=ext3 –size=5000 –grow
    –onvirtualdisk=’esxconsole’
    %post –interpreter=bash
For those of you out there that have never performed a scripted install, this is a good start.
-GStuart
Greg W Stuart
Greg is the owner and editor of vDestination.com. He's been a VMware vExpert every year since 2011. Greg enjoys spending time with his wife and 3 kids. He works as a Sr. Consultant at VMware and resides in Northern Virginia, 15 minutes west of Washington DC.

Leave a Reply

Your email address will not be published. Required fields are marked *