On Linux, 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

  1. Open a terminal and install Python by running apt-get install python<version>.
    For example:
    apt-get install python3.10
  2. Save the get-pip.py file from https://bootstrap.pypa.io/get-pip.py.
  3. In the 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
  4. 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
  5. 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.