How to Setup CLI in Virtual Environment for Troubleshooting?

Problem

How to configure the OpenStack command-line client within a virtual environment to interact with an OpenStack cloud.

Environment

  • Private Cloud Director - v2025.4 and Higher
  • Self-Hosted Private Cloud Director Virtualization – v2025.4 and Higher

Procedure

  1. Create a Virtual Environment (This command creates a new Python virtual environment named openstack-venv in your home directory):
Command
Copy
  1. Activate the Virtual Environment:
Command
Copy
  1. Install the OpenStack Client:
Command
Copy
  1. Verify OpenStack client by running command:
Command
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard