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

Creating an image profile from scratch

When creating an image profile from scratch, you will 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.

Tip

Pay careful attention to dependencies and acceptance levels when you create an image profile from scratch.

Getting ready

Read the recipes Downloading an ESXi offline bundle, Creating an image profile by cloning a predefined image profile, and Adding a VIB (software package) to an image profile as a preparation before you start learning how create an image 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 Get-EsxSoftwareDepot cmdlet to verify that 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 them to a variable. In this example, let's list all the packages released after 1/5/2013 (mm/dd/yyyy) by issuing the following command:
    Get-EsxSoftwarePackage -SoftwareDepot $softdepot[0] -CreatedAfter 1/5/2013
    
    How to do it...
  5. Assign this output to a user-defined variable:
    $afterMay2013 = Get-EsxSoftwarePackage -CreatedAfter 1/5/2013 -SoftwareDepot $softdepot[0]
    
  6. Use the New-EsxImageProfile cmdlet to create a new image profile by supplying Name, Vendor, and AcceptanceLevel:
    New-EsxImageProfile -NewProfile -Name "PostMay2013" -Vendor "vDescribed" -SoftwarePackage $afterMay2013 -AcceptanceLevel CommunitySupported
    
    How to do it...
  7. Export the image profile to an ISO or offline bundle:
    Export-EsxImageProfile -ImageProfile "PortMay2013" –ExportToBundle -FilePath C:\Offline-Bundles\PostMay2013.zip.
    

How it works...

It creates an ESXi image from scratch and helps to reduce the amount of data in terms of unnecessary drivers and software packages.

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.5 at page 228; this document can be found at http://bit.ly/vSphere55_install_guide
主站蜘蛛池模板: 勃利县| 嘉禾县| 保德县| 通辽市| 斗六市| 江达县| 广水市| 清水河县| 通渭县| 长岭县| 都兰县| 平潭县| 张北县| 曲阜市| 沙雅县| 交城县| 金乡县| 阜新市| 南丰县| 元阳县| 临洮县| 沁源县| 巫溪县| 城市| 元江| 墨江| 汽车| 达拉特旗| 甘孜| 嘉义县| 吴堡县| 门头沟区| 齐河县| 永安市| 肇源县| 江山市| 普陀区| 抚宁县| 甘泉县| 宜都市| 定远县|