PFMP:如何使用已发布的修补程序捆绑包创建标准 ESXi ISO 映像。

Summary: 从 PowerFlex Manager 平台 (PFMP) 4.6 开始,客户必须提供标准 ESXi ISO 映像,才能启用需要 ESXi 的 Powerflex 机架或设备版本。 本文提供了在 Broadcom 仅发布修补程序捆绑包时使用 ESXi 修补程序捆绑包 (ESXidepot.zip) 创建标准 ESXi.iso 映像的步骤。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

使用 ESXi 修补程序捆绑包 (ESXidepot.zip) 创建标准 ESXi.iso 映像的步骤。

• PowerCLI 模块必须安装在 PowerShell 上。
•  对于使用 PowerCLI 导出 ISO 映像的映像生成器模块,建议安装 Python。 

提醒:PowerFlex Manager4.6 及更高版本使用标准 ESXi 映像进行系统构建,因此在创建标准 ESXi ISO 映像期间不应执行 OEM 驱动程序或其他自定义。

如何安装和配置 PowerCLI。

在开始之前,请使用 VMware Broadcom 链接确定与 VMware vSphere ESXi 7 兼容的相应 PowerCLI 版本。X 或 8 X 版本
https://docs.vmware.com/en/VMware-PowerCLI/latest/rn/compatibility-matrix-for-vmware-powercli/index.html 

步骤:
1.在工作站上打开 PowerShell。
2.从 PowerShell 库页面下载高于 PowerCLI 6.5 R1 的 PowerCLI 版本。(我们不下载它,“Install-Module”命令会为您完成。在下面的命令中,您需要从网站收集版本号)

3.要安装所有 PowerCLI 模块,请运行以下命令: 

Install-Module -Name VMware.PowerCLI -RequiredVersion

示例:

#Install-Module -Name VMware.PowerCLI -RequiredVersion 13.3.0.24145081

提醒:或者,您可以通过运行具有模块名称的 Install-Module cmdlet 来安装单个 PowerCLI 模块。如果您看到一条警告,指示您正在从不受信任的存储库安装模块,请按 y,然后按 Enter 键以确认安装。

4.使用以下命令验证 PowerCLI 模块是否已安装在个人计算机上。

#Get-Module -Name VMware.PowerCLI -ListAvailable.

如何在 Windows 中安装和配置 Python。
使用此过程部署 Python,PowerCLI 在创建 ESXI 时需要它。ISO 的

1.从 https://www.python.org/downloads 下载 Python 3.9.x 或更高版本,并在您的计算机上完成安装。

2.从 https://bootstrap.pypa.io/get-pip.py 保存 get-pip.py 文件


注意:访问后,将链接中的内容复制到记事本,使用文件名“get-pip.py”保存文件,然后在“另存为类型”字段中选择文件类型“所有文件”。  

3.在工作站上打开命令提示符并安装 pip 包管理器。

python.exe C:\Users\Administrator\Desktop\get-pip.py

4.在命令提示符下,安装所需的 Python 模块。

\Scripts\pip.exe install six psutil lxml pyopenssl

例如:

C:\Users\Administrator\AppData\Local\Programs\Python\Python39\Scripts\pip3.10.exe install six psutil lxml pyopenssl

 5.打开 PowerShell 并设置 Python 可执行文件的路径。

Set-PowerCLIConfiguration -PythonPath \python.exe -Scope User

示例: 

Set-PowerCLIConfiguration -PythonPath C:\Users\Administrator\AppData\Local\Programs\Python\Python39\python.exe -Scope User



Perform operation?
Performing operation 'Update VMware.PowerCLI configuration.'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): Y

Scope    ProxyPolicy     DefaultVIServerMode InvalidCertificateAction  DisplayDeprecationWarnings WebOperationTimeout
                                                                                                  Seconds
-----    -----------     ------------------- ------------------------  -------------------------- -------------------
Session  UseSystemProxy  Multiple            Unset                     True                       300
User
AllUsers

安装并验证所需的 PowerCli/python 后。 

如何将映像配置文件导出到 ISO

在开始构建 ISO 的过程之前,我们应该下载 esxi-patch。从 Broadcom 门户
返厂维修提醒:对于某些修补程序版本,Broadcom 不会发布 ISO 映像,使用此映像可以为未随 ISO 映像提供的修补程序生成 ISO 映像。
步骤:
1.启动 Powershell。
2.    将目录更改为下载文件所在的文件路径,或使用文件所在的直接路径,如以下示例中所述。
提醒:在运行下一步之前,我们必须从 Broadcom 门户下载 esxi-patch-depot.zip。

3.添加软件仓库以上传映像配置文件。

 使用以下链接从 Broadcom 门户下载 ESXi 映像。
https://support.broadcom.com/group/ecx/productdownloads?subfamily=VMware%20vSphere

直接路径示例:

#Add-EsxSoftwareDepot -DepotUrl “C:\Users\Administrator\Downloads\ISO test\VMware-ESXi-7.0U3p-23307199-depot.zip”

提醒:如果文件夹名称中有空格(ISO 测试),我们应该使用双引号

 在以下示例中,如果您已位于文件所在的目标文件夹中,请使用以下命令。

#Add-EsxSoftwareDepot -DepotUrl VMware-ESXi-7.0U3p-23307199-depot.zip

4.查看所有可用的映像配置文件,以查找要导出的映像配置文件的名称。

#Get-EsxImageProfile


Below example, output contains image profiles for 7. x and 8. x ESXi images

Name                           Vendor          Last Modified   Acceptance Level

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

ESXi-8.0U3-24022510-no-tools   VMware, Inc.    6/11/2024 1:... PartnerSupported

ESXi-8.0U3-24022510-standard   VMware, Inc.    6/11/2024 1:... PartnerSupported

ESXi-7.0U3sq-23794019-no-tools VMware, Inc.    5/3/2024 9:4... PartnerSupported

ESXi-7.0U3q-23794027-standard  VMware, Inc.    5/21/2024 12... PartnerSupported

ESXi-7.0U3sq-23794019-standard VMware, Inc.    5/21/2024 12... PartnerSupported

ESXi-7.0U3q-23794027-no-tools  VMware, Inc.    5/3/2024 11:... PartnerSupported

  5.导出映像配置文件。

注意:从上面的设置中,我们得到了图像配置文件名称,我们应该只选择标准图像。

 在上面的示例中,我们有三个标准映像配置文件,我们应该忽略标记为“sq”和无工具的配置文件。

#Export-EsxImageProfile -ImageProfile "myprofile" -ExportToIso -FilePath iso_name

示例 7.X ESXi 映像

Export-EsxImageProfile -ImageProfile "ESXi-7.0U3q-23794027-standard" -ExportToIso -FilePath E:\smb\ESXi-7.0U3q-23794027-standard.iso

8.x ESXi 映像示例

#Export-EsxImageProfile -ImageProfile "ESXi-8.0U3-24022510-standard" -ExportToIso -FilePath E:\smb\vSphere8.0\test\ESXi-8.0U3-24022510-standard.iso

    6.将ESXi.ISO上传到 PowerFlex Manager以执行部署和升级。机架和设备文档中提供了将映像上传到 PowerFlex Manager 的过程。
提醒:   
机架部署使用 rack-field-logical-build-guide-4x-en-us
设备部署使用flex_appliance_deployment_guide_4x

Affected Products

PowerFlex rack, ScaleIO
Article Properties
Article Number: 000228333
Article Type: How To
Last Modified: 02 Feb 2025
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.