Managed OpenStack
v5.10
Introduction
Getting Started
Infrastructure
Networks
Volumes and Snapshots
Images
Instances
Flavors
Tenant Administration
User Administration
Authentication & Authorization
Accessing VMs
Application Management
CLI Access
Monitoring & Alarms
Troubleshooting
Tutorials
Support
Regions
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Installing OpenStack CLI Client on CentOS 7
Copy Markdown
Open in ChatGPT
Open in Claude
You must have Python 2.7 and Python pip installed on your CentOS 7 host before you can install OpenStack CLI. Python is available, by default, on a CentOS 7 host.
For some reason, if Python and pip are not already installed, you must install Python and pip first, and then install OpenStack CLI.
Use the following commands to install Python and pip.
Shell
yum install -y epel-release yum install -y gcc openssl-devel python-pip python-wheel python-virtualenv python-virtualenvwrapperInstall OpenStack CLI
Once Python and pip are installed, you are ready to set up a virtual environment and install OpenStack CLI on the virtual environment.
Follow the steps given below to install OpenStack CLI.
- Load the virtualenvwrapper setup script into your current shell session.
Shell
xxxxxxxxxx# location of virtualenvwrapper.shsource /usr/bin/virtualenvwrapper.sh# directory to store virtual environmentsexport WORKON_HOME=$HOME/.virtenvs- Create a new virtual environment.
Shell
xxxxxxxxxxmkvirtualenv os_cliThe context switches to the newly created virtual environment.
- Upgrade pip.
Shell
xxxxxxxxxxpip install pip --upgrade- Run the following command to set up the OpenStack CLI.
Shell
pip install --upgrade --requirement https://raw.githubusercontent.com/platform9/support-locker/master/openstack-clients/requirements.txt --constraint https://raw.githubusercontent.com/openstack/requirements/stable/train/upper-constraints.txtOpenStack CLI is successfully installed, and ready to be used on the CentOS 7 host.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated by Pooja Ghumre on Jan 12, 2024
Was this page helpful?
Next to read:
Installing OpenStack CLI Client on Dockernull
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message