# You must have a primary /boot partition at the start of the disk (2Gb is a good size) # ensure you are using syslinux 3.X (i.e using Ubuntu 10.04, not 12.04) #Variables export IP=176.31.121.221 export NM=255.255.255.0 export GW=176.31.121.254 export NS=8.8.8.8 export URLKS=https://arnor.org/ESX/esxi41/treebeard.eriador.org.ks #Script wget --no-check-certificate http://arnor.org/ESX/VMware-VMvisor-Installer-4.1.0.update02-502767.x86_64.iso mkdir /extract mount -o loop -t iso9660 VMware-VMvisor-Installer-4.1.0.update02-502767.x86_64.iso /mnt/ cp -rp /mnt/* /extract/ umount /mnt cd /extract mv isolinux.cfg syslinux.cfg sed -i "s|vmkboot.gz|vmkboot.gz ks=${URLKS} nameserver=${NS} ip=${IP} netmask=${NM} gateway=${GW}|" syslinux.cfg umount /boot apt-get -qy install syslinux dosfstools mtools printf "a\n1\na\n1\nt\n1\n0C\nw\nq\n" |fdisk /dev/sda mkfs.vfat -F 32 -n USB /dev/sda1 mount /dev/sda1 /mnt/ cp -rp * /mnt/ syslinux /dev/sda1 dd bs=440 conv=notrunc count=1 if=/usr/lib/syslinux/mbr.bin of=/dev/sda umount /mnt reboot # ks file: vmaccepteula rootpw temppass autopart --firstdisk --overwritevmfs network --bootproto=static --device=vmnic0 --ip=176.31.121.221 --netmask=255.255.255.0 --gateway=176.31.121.254 --hostname=treebeard.eriador.org --vlanid=0 --nameserver=8.8.8.8 install url https://arnor.org/ESX/esxi41/ # in the URL, you must have the ISO contents (not the iso itself)