Create bootable ESXi-USB-Stick using Ubuntu

install syslinux
sudo apt install syslinux
Identify your usb stick using one of the following commands (it should be somethin like /dev/sda, /dev/sdb, /dev/sdc…)
df -h
sudo fdisk -l
unmount the usb device
sudo umount /dev/sda
create partition table using fdisk (be sure to use the right device!!!)
sudo fdisk /dev/sda
1 - delete partitions by pressing [d]
2 - Create new primary partition by pressing [n] and [p] -> Press Enter three times
3 - press [t] and [c] to set the file system to FAT32
4 - write changes by pressing [c]
unmount partition and device
sudo umount /dev/sda
sudo umount /dev/sda1
use mkfs.vfat to format the partition
sudo /sbin/mkfs.vfat -F 32 -n ESXUSB /dev/sda1
copy syslinux / install syslinux to /dev/sda1
syslinux /dev/sda1
copy mbr.bin to /dev/sda
cat /usr/lib/syslinux/mbr/mbr.bin > /dev/sda
copy all the esxi content to your usb stick
sudo mkdir /usb
sudo mount /dev/sda1 /usb
sudo mkdir /esxi
mount -o loop /home/user/Downloads/VMware-VMvisor-Installer-6.7.0.update03-****.iso /esxi
sudo cp -r /esxi/* /usb
sudo mv /usb/isolinux.cfg /usb/syslinux.cfg
sudo nano /usb/syslinux.cfg --> append -p 1 to line "APPEND -c boot.cfg" 
it should look like "APPEND -c boot.cfg -p 1"
unmount /usb and /esxi
sudo umount /usb
sudo umount /esxi
boot your server using the USB-Stick and UEFI

Leave a Reply

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