ESX 3.5 image installs
Note, these are just my notes on how the process works. This document is by no means complete and assumes some level of Linux/Unix knowledge.
Building an ESX 3.5 server using a disk image has a number of advantages over manually installing ESX 3.5 or using Kickstart.
- It’s faster, if patching time is taken into account it can be much faster. Using local storage it is possible to build, patch and deploy a single server over a gigabit ethernet network in about 3 minutes.
- Easier to manage. All servers are nearly identical.
Creating an Image:
- Install ESX 3.5
- Install patches
- Install configuration script
- Remove the /etc/vmware/esx.conf file
- rm /etc/vmware/esx.conf
- Remove the /etc/sysconfig/network-scripts/vswif0 file
- rm /etc/sysconfig/network-scripts/vswif*
- Shutdown ESX 3.5
- shutdown -h now
- Boot the server from a Linux LiveCD
- Configure networking
- Using a VLan (Some older Linux LiveCDs don’t support using VLans)
- ifconfig eth0 up
- vconfig eth0 add vlanid
- ifconfig eth0.vlanid ipaddr netmask
- Without a vlan
- ifconfig ipaddr netmask up
- Using a VLan (Some older Linux LiveCDs don’t support using VLans)
- Determine the device with the image
- fdisk -l
- Create and image and copy it to the remote Linux/Unix/ESX server using ssh
- dd if=/dev/sourcedisk | gzip | ssh remotehost “cat > outfile.img.gz”
- Configure networking
Building a Server from the ESX 3.5 image
- Boot the server from a Linux LiveCD
- Configure networking
- Using a VLan (Some older Linux LiveCDs don’t support using VLans)
- ifconfig eth0 up
- vconfig eth0 add vlanid
- ifconfig eth0.vlanid ipaddr netmask
- Without a vlan
- ifconfig ipaddr netmask up
- Using a VLan (Some older Linux LiveCDs don’t support using VLans)
- Determine the device to write the image to (destination device must be the same size or larger than the device that contained the original image)
- fdisk -l
- Dump the image from the remote hosts onto the install disk
- ssh remotehost cat outfile.img.gz|gunzip -c > /dev/destinationdev
- Flush the disk write cache
- sync
- Reboot the server
- Eject the LiveCD
- Configure networking
Entries (RSS)