an awesome new feature in the just released ESXi 4.1 is the ability to do PXE boot and script the install using a kick-start script. If you looking for information on how to do this see here at billhill’s post.
However while adding that feature VMware seems have slightly broken the PXE boot, but manual install ability of ESXi. This is useful if you have lights-out lab and want to use the local pxe server instead of those virtual media options but also want to customize the install options as the lab servers do not have standardized components and hardware and may other issues.
Refer to the above link for overall PXE/dhcp/tftp install steps. I plan only to document what’s different for a manual install.
Here are the steps to do it. By the way, the key is in the weird named file imagedd.bz2 on the ESXi install cd.
-r--r--r-- 5 root root 13320 2010-05-18 16:48 a.z
-r--r--r-- 1 root root 2048 2010-05-18 17:21 boot.cat
-r--r--r-- 6 root root 1164618 2010-05-18 16:49 cimstg.tgz
-r--r--r-- 6 root root 16101197 2010-05-18 16:50 cim.vgz
-r--r--r-- 3 root root 7364186 2010-05-18 17:21 ienviron.vgz
-r--r--r-- 3 root root 212380054 2010-05-18 17:19 imagedd.bz2
-r--r--r-- 3 root root 74 2010-05-18 17:19 imagedd.md5
-r--r--r-- 2 root root 22887 2010-05-18 17:15 install.vgz
-r-xr-xr-x 1 root root 12241 2010-05-18 17:15 isolinux.bin
-r--r--r-- 1 root root 298 2010-05-18 17:15 isolinux.cfg
-r-xr-xr-x 1 root root 47404 2010-05-18 17:15 mboot.c32
-r-xr-xr-x 1 root root 51020 2010-05-18 17:15 menu.c32
-r--r--r-- 1 root root 1831459 2010-05-18 17:15 open_source_licenses.txt
-r--r--r-- 1 root root 2889 2010-05-18 17:15 README.txt
-r--r--r-- 5 root root 72206398 2010-05-18 17:15 sys.vgz
-r--r--r-- 5 root root 40876 2010-05-18 17:15 tboot.gz
-r--r--r-- 6 root root 48285 2010-05-18 17:15 vmkboot.gz
-r--r--r-- 5 root root 2469813 2010-05-18 17:15 vmkernel.gz
For the sake for posterity, just go ahead and copy all the above files to your tftp/pxeboot folder.
then rename the imagedd.bz file to VMware-VMvisor-big-260247-x86_64.dd.bz2
mv imagedd.bz2 VMware-VMvisor-big-260247-x86_64.dd.bz2
Create a folder structure that ESXi installer looks for the system file in
mkdir –p usr/lib/vmware/installer/
Move the file to the correct location
mv VMware-VMvisor-big-260247-x86_64.dd.bz2 usr/lib/vmware/installer/
The installer is looking for a tar fgz file named image.tgz, so lets create one.
tar cvzf image.tgz usr/
Now that we have the file in the correct format and folder structure lets add it to the pxe append command.
append vmware/esx4.1/vmkboot.gz ks=http://192.168.163.48/ks.cfg --- vmware/esx4.1/vmkernel.gz --- vmware/esx4.1/sys.vgz --- vmware/esx4.1/cim.vgz --- vmware/esx4.1/ienviron.vgz --- vmware/esx4.1/install.vgz
From the above line remove the ks command and add the image.tgz at the end.
append vmware/esx4.1/vmkboot.gz --- vmware/esx4.1/vmkernel.gz --- vmware/esx4.1/sys.vgz --- vmware/esx4.1/cim.vgz --- vmware/esx4.1/ienviron.vgz --- vmware/esx4.1/install.vgz --- vmware/esx4.1/image.tgz
That’s it. Now bootup your server and enjoy the pxe boot bliss.
Update: Also its safe to delete the usr folder tree you created after creating the image.tgz, it is just sitting there taking up space, thanks raph 🙂
Leave a Reply