UDA 1.4 and Patching an ESX host

It is quite easy to reconfigure the UDA to patch your ESX host after the build process. All we need is NFS export on the UDA to act as repository for the patches, a free-patching script and call statement in the kickstart script. Here’s how I do it (of course, everyone has their own preferred script/method):

Step One: First enable NFS on the UDA

Login to the UDA as root

  1. Edit the exports file with: nano -w /etc/exports
  2. Copy and Paste existing line
  3. Paste and change the path to be
  4. /var/public/smbmount/DISK2
  5. Save the file and exit nano
  6. Restart the NFS service with: service nfs restart
  7. Create a directory at /var/public/smbmount/DISK2 called esxpatches with mkdir /var/public/smbmoun/DISK2/esxpatches 

Step Two: Upload the Patching Script & the Patches in the tar.gz format

  1. From this web-site copy the esx_apply_patches.sh script into the /var/public/smbmoun/DISK2/esxpatches
  2. From VMware’s website download and copy the patches to the same location

Note:
You will find Mike Knight’s esx_apply_patches.sh script in the Free Tools section of this website

Step Three: Mount the NFS export in the Kickstart Script and Execute the uda_esx_apply_patches script 

  1. To the esxcfg.sh script add the following kickstart info

# Connect to UDA Source
service portmap start && service nfs start
esxcfg-firewall -e nfsClient
mkdir /tmp/udasource
mount 192.168.3.150:/var/public/smbmount/DISK2 /tmp/udasource

# Execute the uda_esx_apply_patches.sh
mkdir /var/updates
cp -v /tmp/udasource/esxpatches/* /var/updates
sh /var/updates/esx_apply_patches.sh

# Clean up after using NFS on the UDA
# Unmount udasource, remove mounting point, stop services, close firewall
umount /tmp/udasource
rmdir /tmp/udasource
service nfs stop && service portmap stop
esxcfg-firewall -d nfsClient

Comments are closed.



Podcast

LinkedIn

If you want to add Mike Laverick on LinkedIn, click on this button:

Mike Laverick

Categories

My Pages

Archives

Other VMware Bloggers