Knowledge Base
2025.10
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 --help
Last updated on
Was this page helpful?
GENERIC
Networking
Storage
Compute
Designate
Orchestration
Self-Hosted
Install
UPGRADE
Monitoring
Add-Ons
Powered by
