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

    Requires Free Membership to View

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.