Breaking the Kubernetes Kill Chain: Host Path Mount
Tao usb boot wmw
1. Format a USB Flash Drive to Boot the ESXi Installation or Upgrade Page 1 of 2
ESXi and vCenter Server 5 Documentation > vSphere Installation and Setup > Introduction to vSphere Installation and
Setup > Media Options for Booting the ESXi Installer
Format a USB Flash Drive to Boot the ESXi Installation or Upgrade
You can format a USB flash drive to boot the ESXi installation or upgrade.
These instructions assume that you are performing the procedure on a Linux machine and that the USB flash
drive is detected by the operating system as /dev/sdb.
Note
The ks file containing the installation script cannot be located on the same USB flash drive that you are using to
boot the installation or upgrade.
Prerequisites
From the VMware Web site, download the ESXi ISO image VMware-VMvisor-Installer-5.x.x-
XXXXXX.x86_64.iso, including the file isolinux.cfg,where 5.x.x is the version of ESXi you are
installing, and XXXXXX is the build number of the installer ISO image.
Procedure
1 If your USB flash drive is not detected as /dev/sdb, or you are not sure how your USB flash drive is detected, de
a In a terminal window, run the following command.
tail -f /var/log/messages
This command displays current log messages in the terminal window.
b Plug in your USB flash drive.
The terminal window displays several messages identifying the USB flash drive, in a format similar to the follo
Oct 25 13:25:23 ubuntu kernel: [ 712.447080] sd 3:0:0:0: [sdb] Attac
In this example, "[sdb]" identifies the USB device. If your device is identified differently, use that identification,
in this procedure.
2 Create a partition table on the USB flash device.
/sbin/fdisk /dev/sdb
a Type d to delete partitions until they are all deleted.
b Type n to create primary partition 1 that extends over the entire disk.
c Type t to set the type to an appropriate setting for the FAT32 file system, such as c.
d Type a to set the active flag on partition 1.
e Type p to print the partition table.
The result should be similar to the following text:
http://pubs.vmware.com/vsphere-50/topic/com.vmware.vsphere.install.doc_50/GUID-33C... 4/15/2012
2. Format a USB Flash Drive to Boot the ESXi Installation or Upgrade Page 2 of 2
Disk /dev/sdb: 2004 MB, 2004877312 bytes
255 heads, 63 sectors/track, 243 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 243 1951866 c W95 FAT32 (LB
f Type w to write the partition table and quit.
3 Format the USB flash drive with the Fat32 file system.
/sbin/mkfs.vfat -F 32 -n USB /dev/sdb1
4 Run the following commands.
/path_to_syslinux-3.86_directory/syslinux-3.86/bin/syslinux /dev/sdb1
cat /path_to_syslinux-3.86_directory/syslinux-3.86/usr/share/syslinux/mbr
5 Mount the USB flash drive.
mount /dev/sdb1 /usbdisk
6 Mount the ESXi installer ISO image.
mount -o loop VMware-VMvisor-Installer-5.x.x-XXXXXX.x86_64.iso /esxi_cd
7 Copy the contents of the ISO image to /usbdisk.
cp -r /esxi_cdrom/* /usbdisk
8 Rename the isolinux.cfg file to syslinux.cfg.
mv /usbdisk/isolinux.cfg /usbdisk/syslinux.cfg
9 In the file /usbdisk/syslinux.cfg, change the line APPEND -c boot.cfg to APPEND -c boot.
10 Unmount the USB flash drive.
umount /usbdisk
11 Unmount the installer ISO image.
umount /esxi_cdrom
The USB flash drive can now boot the ESXi installer.
http://pubs.vmware.com/vsphere-50/topic/com.vmware.vsphere.install.doc_50/GUID-33C... 4/15/2012