官术网_书友最值得收藏!

Creating an Image Profile from scratch

When creating an image from scratch, you would have to identify the software packages you need to be part of the image. This means that, unlike customizing an existing image, you will create a new one with only what you need, so that you don't have to go through the process of removing software packages from an Image Profile.

Note

It is important to pay careful attention to dependencies and acceptance levels when you create an Image Profile from scratch.

How to do it…

The following procedure will guide you through the steps required to create an Image Profile from scratch:

  1. Use the Add-EsxSoftwareDepot cmdlet to add all the needed Offline Bundles to the vSphere PowerCLI session.
    Add-EsxSoftwareDepot C:\AutoDeploy-VIBS\ESXi500-201111001.zip
    
  2. Issue the command Get-EsxSoftwareDepot cmdlet to verify the Offline bundles have been added successfully.
  3. Assign the output of the Get-EsxSoftwareDepot command to a user defined variable.
    $softdepot = Get-EsxSoftwareDepot
    
  4. Use the Get-EsxSoftwarePackage cmdlet to list the needed software packages from the correct depot. Filter the results as needed and assign it to a variable. In this example, let's list all the packages released after 8/1/2012 (mm/dd/yyyy) by issuing the following command:
    Get-EsxSoftwarePackage -SoftwareDepot $softdepot[0] -CreatedAfter 8/1/2012
    
  5. Assign this output to a user-defined variable.
    $afterAUG2012 = Get-EsxSoftwarePackage -CreatedAfter 8/1/2012 -SoftwareDepot $softdepot[0]
    
  6. Use the New-EsxImageProfile cmdlet to create a new Image Profile by supplying a Name, a Vendor, and an Acceptance Level.
    New-EsxImageProfile -NewProfile -Name "PostAUG2012PKG" -Vendor "Abhilash" -SoftwarePackage $afterAUG2012 -AcceptanceLevel CommunitySupported
    
  7. Export the Image Profile to an ISO or Offline Bundle.
    Export-EsxImageProfile -ImageProfile "PostAUG2012PKG" -ExportToBundle
    -FilePath C:\AutoDeploy-VIBS\Exported\ PostAUG2012PKG.zip.
    

There's more...

When executing most of the PowerCLI commands, instead of specifying the parameters on the command line, you can also use the PowerShell's prompting mechanism to specify parameters.

See also

For information regarding the structure of an Image Profile, read the section Structure of ImageProfile, SoftwarePackage, and ImageProfileDiff Objects in the vSphere Installation and Setup Guide for vSphere 5.1 at page 147, which can be found at:

http://pubs.vmware.com/vsphere-51/topic/com.vmware.ICbase/PDF/vsphere-esxi-vcenter-server-511-installation-setup-guide.pdf

主站蜘蛛池模板: 桑日县| 习水县| 钟祥市| 白城市| 吴堡县| 黄浦区| 高平市| 鹰潭市| 武宁县| 大洼县| 伊金霍洛旗| 潮州市| 公安县| 富民县| 南部县| 淅川县| 象山县| 柯坪县| 吴川市| 汝城县| 常山县| 金山区| 大厂| 碌曲县| 垣曲县| 施秉县| 庆安县| 宜宾市| 辛集市| 海阳市| 乐都县| 鸡东县| 太康县| 延川县| 泽州县| 高密市| 平昌县| 喀喇| 茂名市| 鹤峰县| 峨边|