- VMware vSphere 5.1 Cookbook
- Abhilash GB
- 332字
- 2021-08-13 16:56:34
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:
- 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
- Issue the command
Get-EsxSoftwareDepot
cmdlet to verify the Offline bundles have been added successfully. - Assign the output of the
Get-EsxSoftwareDepot
command to a user defined variable.$softdepot = Get-EsxSoftwareDepot
- 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 after8/1/2012
(mm/dd/yyyy) by issuing the following command:Get-EsxSoftwarePackage -SoftwareDepot $softdepot[0] -CreatedAfter 8/1/2012
- Assign this output to a user-defined variable.
$afterAUG2012 = Get-EsxSoftwarePackage -CreatedAfter 8/1/2012 -SoftwareDepot $softdepot[0]
- Use the
New-EsxImageProfile
cmdlet to create a new Image Profile by supplying aName
, aVendor
, and anAcceptance Level
.New-EsxImageProfile -NewProfile -Name "PostAUG2012PKG" -Vendor "Abhilash" -SoftwarePackage $afterAUG2012 -AcceptanceLevel CommunitySupported
- 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:
- pcDuino開發(fā)實戰(zhàn)
- Citrix XenApp Performance Essentials
- Mastering ElasticSearch
- Windows Server 2012 Hyper-V:Deploying the Hyper-V Enterprise Server Virtualization Platform
- 從零開始寫Linux內核:一書學透核心原理與實現(xiàn)
- SOA實踐者說
- 新手易學:系統(tǒng)安裝與重裝
- Installing and Configuring Windows 10:70-698 Exam Guide
- 精解Windows8
- 深入Linux內核架構與底層原理(第2版)
- 新編電腦辦公(Windows 10+ Office 2013版)從入門到精通
- Linux 從入門到項目實踐(超值版)
- OpenHarmony開發(fā)與實踐:基于紅莓RK2206開發(fā)板
- Azure Resource Manager Templates Quick Start Guide
- Linux系統(tǒng)管理初學者指南:基于CentOS 7.6