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

  • VMware vSphere 5.1 Cookbook
  • Abhilash GB
  • 195字
  • 2021-08-13 16:56:31

Choosing an ESXi Image to deploy

The Offline Bundle presented to the Auto Deploy server, using the Add-ESXSoftwareDepot command, may contain more than one image of ESXi. We need to identify the required image and select it for use.

How to do it…

The following steps will help you list all the available Image Profiles and assign them to different variables:

  1. Display all the images currently detected by the Auto Deploy server by issuing the following command:
    Get-EsxImageProfile
    
  2. The Image Profile list generated by the Get-ESXImageProfle command can be assigned to a VMware PowerCLI array variable by issuing the following command:
    $imageprofile=Get-EsxImageProfile
    
  3. The array variable imageprofile now holds an array of ESXi Image Profile elements. Each of the elements in the array can be individually addressed using the array element number starting with zero(0).

    The following command will display array elements 0 and 1:

    $imageprofile[0].name
    $imageprofile[1].name
    

From the output of the preceding command, we now know the names of the images available. Here they are:

  • ESXi-5.1.0-799733-no-tools
  • ESXi-5.1.0-799733-standard

How it works…

The variable created can hold array of image names. The VMware Auto Deploy PowerCLI cmdlets can use these variables to perform version operations.

主站蜘蛛池模板: 海城市| 宁远县| 分宜县| 五华县| 巴林左旗| 邵阳市| 铜陵市| 瑞安市| 马尔康县| 吉首市| 葫芦岛市| 镇沅| 文安县| 赞皇县| 襄城县| 定结县| 成安县| 峨眉山市| 石家庄市| 平果县| 桑日县| 原平市| 安国市| 怀柔区| 平舆县| 措勤县| 昭觉县| 抚顺市| 阜新市| 肇东市| 临猗县| 峨山| 图木舒克市| 亳州市| 通榆县| 陵川县| 民勤县| 施秉县| 宁都县| 互助| 增城市|