VMware Cloud Community
yonish
Contributor
Contributor

Autodeploy build image profile OpenSSL Heartbleed path.

Hello,

This will help you add patch to a image profile for autodeploy.

In this example the patch will for be for OpenSSL Heartbleed.

#First add the esx software depot for vmware-fdm (high high availability module) and the actual offline bundle and the patch and rqueried more modules (vxlan,vcd-agent and etc)

Connect-VIServer ip or name # connect vc

Add-EsxSoftwareDepot http://ip_or name_of_vc:80/vSphere-HA-depot # add vmware-fdm

Add-EsxSoftwareDepot E:\enter_path\ESXi550-201404001.zip # add patch heartbleed VMware KB: VMware ESXi 5.5, Patch Release ESXi550-201404001

Add-EsxSoftwareDepot E:\tenter_path\update-from-esxi5.5-5.5_update01.zip # add offline bundle

Get-EsxSoftwareDepot # you should get a similar output like below

Depot Url

---------

http://ip_of_vc/vSphere-HA-depot/index.xml

zip:E:\temp1\autod\ESXi550-201404001.zip?index.xml

zip:E:\temp1\autod\update-from-esxi5.5-5.5_update01.zip?index.xml

# Then

Get-EsxImageProfile | ft -a

Name                             Vendor       Last Modified         Acceptance Level

----                             ------       -------------         ----------------

ESXi-5.5.0-20140302001-no-tools  VMware, Inc. 2/22/2014 2:15:14 AM  PartnerSupported

ESXi-5.5.0-20140301001s-standard VMware, Inc. 2/22/2014 2:15:14 AM  PartnerSupported

ESXi-5.5.0-20140301001s-no-tools VMware, Inc. 2/22/2014 2:15:14 AM  PartnerSupported

ESXi-5.5.0-20140404001-no-tools  VMware, Inc. 4/15/2014 9:23:30 PM  PartnerSupported

ESXi-5.5.0-20140302001-standard  VMware, Inc. 2/22/2014 2:15:14 AM  PartnerSupported

ESXi-5.5.0-20140404001-standard  VMware, Inc. 4/15/2014 9:23:30 PM  PartnerSupported

Create a new esx image profile

New-EsxImageProfile -CloneProfile ESXi-5.5.0-20140302001-standard -Name E-5.5.0-20140302001 -Vendor "VMware, Inc."

Get-EsxImageProfile | ft -a  # the image profile will appear now

Name                             Vendor       Last Modified         Acceptance Level

----                             ------       -------------         ----------------

ESXi-5.5.0-20140302001-no-tools  VMware, Inc. 2/22/2014 2:15:14 AM  PartnerSupported

ESXi-5.5.0-20140301001s-standard VMware, Inc. 2/22/2014 2:15:14 AM  PartnerSupported

ESXi-5.5.0-20140301001s-no-tools VMware, Inc. 2/22/2014 2:15:14 AM  PartnerSupported

ESXi-5.5.0-20140404001-no-tools  VMware, Inc. 4/15/2014 9:23:30 PM  PartnerSupported

E-5.5.0-20140302001              VMware, Inc. 6/26/2014 12:52:45 PM PartnerSupported

ESXi-5.5.0-20140302001-standard  VMware, Inc. 2/22/2014 2:15:14 AM  PartnerSupported

ESXi-5.5.0-20140404001-standard  VMware, Inc. 4/15/2014 9:23:30 PM  PartnerSupported

# now view

(Get-EsxImageProfile E-5.5.0-20140302001).viblist

or like that

(Get-EsxImageProfile E-5.5.0-20140302001).viblist | where {$_.name -eq "vmware-fdm" }

Add-EsxSoftwarePackage -ImageProfile E-5.5.0-20140302001 -SoftwarePackage "esx-base" , "vmware-fdm"

New-DeployRule -Name deploy_rule_name -item E-5.5.0-20140302001, Cluster_name -Pattern "ipv4=ip_range_patt"

# or copy like that

Copy-DeployRule source_deployrule -name enter_name_for_deploy_rule -ReplaceItem host_profile -ReplacePattern "vendor==HP","ipv4=x.x.x.x-x.x.x.x"

Add-DeployRule name_of_deploy_rule

# check if active

Get-DeployRuleSet -Active

Tags (2)
Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

Thanks for sharing, but perhaps it would be more useful if you enter that info in a Document


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos