For my new lab server I have created a new bootable USB flash disk for the initial installation of ESX version 6. As I am a Mac user I found this procedure that explains how to create a bootable ESX 6 USB drive using OS X.
Creating the disk
Download “VMware-VMvisor-Installer-6.0.0.update02-3620759.x86_64.iso” from the VMware website.
Download the “vmware-usb-osx-master” tool and upzip it.
Browse to the “vmware-usb-osx-master” directory.
Iwans-MacBook-Pro:~ iwanhoogendoorn$ cd Downloads/Iwans-MacBook-Pro:Downloads iwanhoogendoorn$ cd vmware-usb-osx-masterVerify if the “VMware-VMvisor-Installer-6.0.0.update02-3620759.x86_64.iso” is in that directory and if not place it in there.
Iwans-MacBook-Pro:vmware-usb-osx-master iwanhoogendoorn$ lsLICENSEMakefileREADME.mdVMware-VMvisor-Installer-6.0.0.update02-3620759.x86_64.isosyslinux.cfgRename “VMware-VMvisor-Installer-6.0.0.update02-3620759.x86_64.iso” to “esxi.iso”.
Iwans-MacBook-Pro:vmware-usb-osx-master iwanhoogendoorn$ mv VMware-VMvisor-Installer-6.0.0.update02-3620759.x86_64.iso esxi.isoVerify if the renaming is done correctly.
Iwans-MacBook-Pro:vmware-usb-osx-master iwanhoogendoorn$ lsLICENSE Makefile README.md esxi.iso syslinux.cfgVerify the disks that are currently inserted.
Iwans-MacBook-Pro:vmware-usb-osx-master iwanhoogendoorn$ make devicesdiskutil list/dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *1.0 TB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_CoreStorage Macintosh HD 999.7 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3/dev/disk1 (internal, virtual): #: TYPE NAME SIZE IDENTIFIER 0: Apple_HFS Macintosh HD +999.3 GB disk1 Logical Volume on disk0s2 75DB85AD-BE28-43ED-9487-C1BA421E5D17 Unencrypted/dev/disk4 (disk image): #: TYPE NAME SIZE IDENTIFIER 0: Apple_partition_scheme +18.1 MB disk4 1: Apple_partition_map 32.3 KB disk4s1 2: Apple_HFS Flash Player 18.1 MB disk4s2Insert the USB Flash Disk at this point.
Iwans-MacBook-Pro:vmware-usb-osx-master iwanhoogendoorn$ make devicesdiskutil list/dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *1.0 TB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_CoreStorage Macintosh HD 999.7 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3/dev/disk1 (internal, virtual): #: TYPE NAME SIZE IDENTIFIER 0: Apple_HFS Macintosh HD +999.3 GB disk1 Logical Volume on disk0s2 75DB85AD-BE28-43ED-9487-C1BA421E5D17 Unencrypted/dev/disk2 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *4.0 GB disk2 1: EFI EFI 209.7 MB disk2s1 2: Apple_HFS Untitled 3.7 GB disk2s2/dev/disk4 (disk image): #: TYPE NAME SIZE IDENTIFIER 0: Apple_partition_scheme +18.1 MB disk4 1: Apple_partition_map 32.3 KB disk4s1 2: Apple_HFS Flash Player 18.1 MB disk4s2You will see that a new disk “disk2” is there and this is the USB Flash disk that we will use for the bootable disk creation.
Now we can create the actual boot disk.
Iwans-MacBook-Pro:vmware-usb-osx-master iwanhoogendoorn$ make vmware DISK=2hdiutil convert -format UDRW -o esxi.img esxi.isoReading ESXI-6.0.0-20160302001-STANDARD (Apple_ISO : 0)…...............................................................................Elapsed Time: 1.649sSpeed: 217.0Mbytes/secSavings: 0.0%created: /Users/iwanhoogendoorn/Downloads/vmware-usb-osx-master/esxi.img.dmg# Format USB device as a bootable MS-DOS volumediskutil unmountDisk /dev/disk2Unmount of all volumes on disk2 was successfuldiskutil eraseDisk MS-DOS ESXI MBR /dev/disk2Started erase on disk2Unmounting diskCreating the partition mapWaiting for the disks to reappearFormatting disk2s1 as MS-DOS (FAT) with name ESXInewfs_msdos: warning: sectors/FAT limits sectors to 7866358, clusters to 981374512 bytes per physical sector/dev/rdisk2s1: 7850992 sectors in 981374 FAT32 clusters (4096 bytes/cluster)bps=512 spc=8 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=2 drv=0x80 bsec=7866358 bspf=7667 rdcl=2 infs=1 bkbs=6Mounting diskFinished erase on disk2# Mount USB device to add syslinux.cfgmkdir -p sourcemkdir -p targethdiutil mount esxi.iso -mountpoint ./source/dev/disk3 /Users/iwanhoogendoorn/Downloads/vmware-usb-osx-master/sourcecp -r source/ /Volumes/ESXI/cp syslinux.cfg /Volumes/ESXI/hdiutil eject ./source"disk3" unmounted."disk3" ejected.diskutil unmountDisk /dev/disk2Unmount of all volumes on disk2 was successfuldiskutil eject /dev/disk2Disk /dev/disk2 ejectedIwans-MacBook-Pro:vmware-usb-osx-master iwanhoogendoorn$And you are finished.
Originally published on the old wiki at /index.php/Creating_a_bootable_ESX_USB_installation_disk_with_OS_X.