Project

General

Profile

VMware ESXi » History » Revision 7

Revision 6 (Corey Osman, 12/27/2011 10:21 PM) → Revision 7/23 (Corey Osman, 12/27/2011 10:21 PM)

h1. How to Provision a VMware ESXi server using foreman 

 Although puppet will not run under ESX server we can still use foreman to kickstart the server using PXE. 

 h2. Summary of what you need to do: 
 # Copy iso contents of ESXi to your media directory 
 # Copy the esx boot files to your tftp directory 
 # Create a ESX operating system in foreman 
 # Create a ESX partition table (optional) template 
 # Create a ESX kickstart template in foreman 
 # Create a ESX pxe or gpxe template for ESX in foreman 


 h3. Copy iso contents of ESXi to your media directory (example only) 
 <pre> 
 mkdir /mnt/iso1 
 mkdir -p /var/www/html/repos/vmware/esxi4.1/   
 mount -o loop esxi-iso-file.iso /mnt/iso1    (example for RHEL based distros) 
 rsync -avz /mnt/iso1/ /var/www/html/repos/vmware/esxi4.1/ 
 </pre> 

 h3. Copy the esx boot files to your tftp directory    (must have all of these) 
 <pre> 
 cp /var/www/html/repos/vmware/esxi4.1/mboot.c32 /var/lib/tftpboot/boot/vmware/ 
 cp /var/www/html/repos/vmware/esxi4.1/vmkboot.gz /var/lib/tftpboot/boot/vmware/ 
 cp /var/www/html/repos/vmware/esxi4.1/vmkernel.gz /var/lib/tftpboot/boot/vmware/ 
 cp /var/www/html/repos/vmware/esxi4.1/sys.vgz /var/lib/tftpboot/boot/vmware/ 
 cp /var/www/html/repos/vmware/esxi4.1/cim.vgz /var/lib/tftpboot/boot/vmware/ 
 cp /var/www/html/repos/vmware/esxi4.1/ienviron.vgz /var/lib/tftpboot/boot/vmware/ 
 cp /var/www/html/repos/vmware/esxi4.1/install.vgz /var/lib/tftpboot/boot/vmware/ 

 </pre>