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
- Create a Virtual Environment (This command creates a new Python virtual environment named
openstack-venvin your home directory):
$ sudo python3 -m venv ~/openstack-venv- Activate the Virtual Environment:
$ source ~/openstack-venv/bin/activate- Install the OpenStack Client:
$ sudo pip install python-openstackclient- Verify OpenStack client by running command:
$ openstack --helpWas this page helpful?