VMware ESXi » History » Version 6
Corey Osman, 12/27/2011 10:21 PM
1 | 1 | Corey Osman | h1. How to Provision a VMware ESXi server using foreman |
---|---|---|---|
2 | |||
3 | Although puppet will not run under ESX server we can still use foreman to kickstart the server using PXE. |
||
4 | |||
5 | h2. Summary of what you need to do: |
||
6 | # Copy iso contents of ESXi to your media directory |
||
7 | # Copy the esx boot files to your tftp directory |
||
8 | # Create a ESX operating system in foreman |
||
9 | # Create a ESX partition table (optional) template |
||
10 | # Create a ESX kickstart template in foreman |
||
11 | # Create a ESX pxe or gpxe template for ESX in foreman |
||
12 | |||
13 | |||
14 | 4 | Corey Osman | h3. Copy iso contents of ESXi to your media directory (example only) |
15 | 1 | Corey Osman | <pre> |
16 | 6 | Corey Osman | mkdir /mnt/iso1 |
17 | mkdir -p /var/www/html/repos/vmware/esxi4.1/ |
||
18 | 5 | Corey Osman | mount -o loop esxi-iso-file.iso /mnt/iso1 (example for RHEL based distros) |
19 | 4 | Corey Osman | rsync -avz /mnt/iso1/ /var/www/html/repos/vmware/esxi4.1/ |
20 | </pre> |
||
21 | |||
22 | h3. Copy the esx boot files to your tftp directory |
||
23 | <pre> |
||
24 | cp /var/www/html/repos/vmware/esxi4.1/mboot.c32 /var/lib/tftpboot/boot/vmware/ |
||
25 | cp /var/www/html/repos/vmware/esxi4.1/vmkboot.gz /var/lib/tftpboot/boot/vmware/ |
||
26 | cp /var/www/html/repos/vmware/esxi4.1/vmkernel.gz /var/lib/tftpboot/boot/vmware/ |
||
27 | cp /var/www/html/repos/vmware/esxi4.1/sys.vgz /var/lib/tftpboot/boot/vmware/ |
||
28 | cp /var/www/html/repos/vmware/esxi4.1/cim.vgz /var/lib/tftpboot/boot/vmware/ |
||
29 | cp /var/www/html/repos/vmware/esxi4.1/ienviron.vgz /var/lib/tftpboot/boot/vmware/ |
||
30 | cp /var/www/html/repos/vmware/esxi4.1/install.vgz /var/lib/tftpboot/boot/vmware/ |
||
31 | |||
32 | 2 | Corey Osman | </pre> |
33 | 1 | Corey Osman | |
34 |