Last active
April 27, 2019 12:01
-
-
Save rdronov/1ce5a6c4a7ae084762739bcda84e635c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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