On macOS, you must install Python 3.7.1 or later with the required packages and configure PowerCLI to use the VMware.ImageBuilder module.
Prerequisites
Verify that you have OpenSSL version 1.1.1 installed on your machine.
Procedure
- Install Python.
Option |
Action |
By Using the Mac Terminal |
Open the Mac Terminal and run brew install python@<Version> .
|
By Using the Python Installer |
Download the Python installer from https://www.python.org/downloads and complete the installation on your machine. |
- Save the get-pip.py file from https://bootstrap.pypa.io/get-pip.py.
- In the Mac Terminal, install pip package manager.
<pythonVer-directory>/<pythonVer> <get-pip-directory>/get-pip.py
For example:
<python3.10-directory>/python3.10 <get-pip-directory>/get-pip.py
- Install the required Python modules.
<pythonVer-directory>/Scripts/pip<Version> install six psutil lxml pyopenssl
For example:
<python3.10-directory>/Scripts/pip3.10 install six psutil lxml pyopenssl
- Open PowerShell and set the path to the Python executable.
Set-PowerCLIConfiguration -PythonPath <pythonVer-directory>/<pythonVer> -Scope User
For example:
Set-PowerCLIConfiguration -PythonPath <python3.10-directory>/python3.10 -Scope User
Results
You can now use the
PowerCLI
VMware.ImageBuider module.