You will need the ESXi installer ISO file and a USB flash drive with enough capacity for the installer (at least 8 GB is recommended). The following steps outline the process:
- Download the ESXi Installer:
- Obtain the ESXi ISO from the official VMware website. Make sure to download the version that you intend to install.
- Insert the USB Drive:
- Insert your USB drive into your Linux machine. Make sure to back up any important data from your USB drive, as this process will erase all contents.
- Identify the USB Drive:
- Run the following command to list all the disks attached to your system, including your USB drive:
lsblk - Identify your USB drive by its size or name. It’s typically listed as
/dev/sdx(wherexis a letter representing your USB device).
- Run the following command to list all the disks attached to your system, including your USB drive:
- Unmount the USB Drive:
- If your USB drive is automatically mounted by the system, you’ll need to unmount it with the following command, replacing
/dev/sdx1with the appropriate partition: umount /dev/sdx1
- If your USB drive is automatically mounted by the system, you’ll need to unmount it with the following command, replacing
- Write the ISO to the USB Drive:
- Use the
ddcommand to write the ISO image to the USB drive. Replace/path/to/downloaded-esxi.isowith the path to your downloaded ESXi ISO file and/dev/sdxwith your USB drive:sudo dd if=/path/to/downloaded-esxi.iso of=/dev/sdx bs=4M status=progress oflag=sync - This process will take some time depending on the speed of your USB drive and system. The
status=progressoption will show the progress.
- Use the
- Ensure the Write Operation is Complete:
- After the
ddcommand finishes, sync the data to the USB drive with the following command to ensure all write operations are complete:bashCopy codesync
- After the
- Eject the USB Drive:
- Before removing the USB drive, eject it properly using the following command:
sudo eject /dev/sdx
- Before removing the USB drive, eject it properly using the following command:
- Boot from the USB Drive:
- Insert the USB drive into the target system where you want to install ESXi.
- Reboot the system and enter the BIOS/UEFI setup.
- Change the boot order to boot from the USB drive.
- Save the changes and exit the BIOS/UEFI setup.
- Your system should now boot from the bootable ESXi USB drive, and you can proceed with the installation.
Remember to replace /dev/sdx with the correct device identifier for your USB drive, and /path/to/downloaded-esxi.iso with the actual path to your ESXi ISO file. Use the dd command with caution, as selecting the wrong device could result in data loss on another drive.
Example: Suppose your USB drive is /dev/sdb and your ESXi ISO is located in your Downloads folder. The dd command would look like this:
sudo dd if=~/Downloads/VMware-VMvisor-Installer-8.0.0-xxxxxx.x86_64.iso of=/dev/sdb bs=4M status=progress oflag=sync
After the process completes, proceed with the sync and sudo eject /dev/sdb commands.