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 a repository for the patches, a free-patching script and call statement in the kickstart script.

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 a 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 the 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

 

This was first published in July 2007

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchVirtualDesktop

SearchDataCenter

SearchCloudComputing

Close