Project

General

Profile

VMware ESXi » History » Version 4

Corey Osman, 12/27/2011 10:19 PM

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