Skip to content

Instantly share code, notes, and snippets.

@rdronov
Last active April 27, 2019 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdronov/1ce5a6c4a7ae084762739bcda84e635c to your computer and use it in GitHub Desktop.
Save rdronov/1ce5a6c4a7ae084762739bcda84e635c to your computer and use it in GitHub Desktop.
# Accept VMware EULA
accepteula
# Set the root password (default: VMware!)
rootpw --iscrypted $1$DK/hzmaO$ZFEGEeAv3rNc8gqvhY2it1
# Clear VMFS partitions (if exist) on the USB drive
clearpart --drives=/vmfs/devices/disks/mpx.vmhbaXX:C0:T0:L0
# Install ESXi on the USB drive
install --drive=/vmfs/devices/disks/mpx.vmhbaXX:C0:T0:L0
# Set the static network settings
network --bootproto=static --device=a0:b1:c2:d3:e4:f5 --ip=192.168.0.10 --gateway=192.168.0.1 --netmask=255.255.255.0 --nameserver=192.168.0.1 --hostname=esxi-host.domain.local --addvmportgroup=0
# Reboot host
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment