How to install VMware ESX from a USB stick

Requirements

  1. A copy of VMware ESX 4.  Download an evaluation copy from here (free VMware logon required)
  2. A copy of UNetbootin from here. UNetbootin allows you to create bootable Live USB drives for a variety of Linux distributions including VMware ESX 4.
  3. A USB stick.  Nothing special is required here, for example I’ve got a couple of really cheap 1Gb sticks that work just fine.

How To

  1. Format your USB stick using Windows format.  FAT32 file system is fine:
  2. Once format is complete, leave USB stick plugged in and start UNetbootin:
  3. Select “Diskimage” and locate your ESX 4 iso file.
  4. Select your USB drive.
  5. Click OK and let UNetbootin extract and copy the ESX 4 installation and boot sector files on the USB
  6. Close UNetbootin and open USB stick in Windows Explorer
  7. Open the file syslinux.cfg (located in the root of the USB) with Wordpad – NOT Notepad
  8. Add askmedia to the end of each text section.  For example:

label ubnentry0
menu label Install ESX in graphical mode
kernel /isolinux/vmlinuz
append initrd=/isolinux/initrd.img vmkopts=debugLogToSerial:1 mem=512M quiet

becomes:

label ubnentry0
menu label Install ESX in graphical mode
kernel /isolinux/vmlinuz
append initrd=/isolinux/initrd.img vmkopts=debugLogToSerial:1 mem=512M quiet askmedia

Or alternatively replace the complete contents of syslinux.cfg with this:

default vesamenu.c32
prompt 0
menu title CH ESX4 Update 1 USB
timeout 100

label unetbootindefault
menu label Install ESX in graphical mode
kernel /isolinux/vmlinuz
append initrd=/isolinux/initrd.img vmkopts=debugLogToSerial:1 mem=512M quiet askmedia

label ubnentry0
menu label Install ESX in text mode
kernel /isolinux/vmlinuz
append initrd=/isolinux/initrd.img vmkopts=debugLogToSerial:1 mem=512M text quiet askmedia

label ubnentry1
menu label ESX Scripted Install using USB ks.cfg
kernel /isolinux/vmlinuz
append initrd=/isolinux/initrd.img vmkopts=debugLogToSerial:1 mem=512M ks=usb quiet

label ubnentry2
menu label ESX Scripted Install to first disk
kernel /isolinux/vmlinuz
append initrd=/isolinux/initrd.img vmkopts=debugLogToSerial:1 mem=512M ks=file:///usr/lib/vmware/weasel/examples/ks-first-safe.cfg quiet

label ubnentry3
menu label ESX Scripted Install to first disk (overwrite VMFS)
kernel /isolinux/vmlinuz
append initrd=/isolinux/initrd.img vmkopts=debugLogToSerial:1 mem=512M ks=file:///usr/lib/vmware/weasel/examples/ks-first.cfg quiet

label ubnentry4
menu label ^Boot from first hard disk
kernel /ubnkern
append initrd=/ubninit

As you can see from the above, I’ve tweaked the boot menu to A) remove the “Default” entry B) Add a personalised boot menu title.

Save syslinux.cfg file back onto the USB and eject.

Easy and ESX installation is a lot quicker too!

6 Comments

  1. I am getting error 15 file not found what does that mean

  2. I am completely impressed with the article I have just read. I wish the author of vworld.nl can continue to provide so much useful information and unforgettable experience to vworld.nl readers. There is not much to say except the following universal truth: On panel discussion shows, someone always says “It’s important to remember, they’re not a monolithic group” I will be back.

  3. I prefer this method:

    1. Download and extract syslinux: http://syslinux.zytor.com/wiki/index.php/Download
    Extract it somewhere – lets say c:syslinux
    2. Insert the USB drive if you have not already, make sure it is formatted fat32, and make note of the drive letter.
    3. Open a command prompt. (In windows Vista or 7, make sure to Run as Administrator)
    Change directory to the place you extracted syslinux win32.
    cd c:syslinuxwin32
    syslinux -m -f -a {drive}:
    where {drive} is the drive letter of the USB drive.
    4. Extract or copy the contents of the ESX iso image to the USB drive (you can use 7zip or winrar – no need to burn it)
    5. rename directory isolinux to syslinux and the file isolinux.cfg within to syslinux.cfg.
    6. edit .syslinuxsyslinux.cfg

    remove

    gfxboot bootlogo
    prompt1

    Add “askmedia”to every label

    ie
    LABEL esx
    menu default
    menu label Install ESX in graphical mode
    kernel vmlinuz
    append initrd=initrd.img vmkopts=debugLogToSerial:1 mem=512M quiet

    becomes

    LABEL esx
    menu default
    menu label Install ESX in graphical mode
    kernel vmlinuz
    append initrd=initrd.img vmkopts=debugLogToSerial:1 mem=512M quiet askmedia

    all done

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.