Chapter 1. Using the CLI
The Red Hat Virtualization suite features a command line interface (CLI). This CLI provides users with a means to connect to Red Hat Virtualization Manager outside of the standard web interface. The CLI also contains a scripting system, which helps system administrators perform periodic maintenance or repetitive tasks on their virtualization environment via client machines.
Important
Version 4 of the Red Hat Virtualization Manager includes a build of version 3.6 of the CLI for Red Hat Enterprise Linux 7. This version of the CLI uses version 3.6 of the Python SDK, and the version 3 compatibility mode of the REST API.
1.1. Installing the CLI
Install the Red Hat Virtualization CLI to a client machine:
- Log into the client machine as the
root
user. - Register your system with the Content Delivery Network, entering your Customer Portal user name and password when prompted:
# subscription-manager register
- Find the
Red Hat Virtualization
subscription pool and note down the pool ID.# subscription-manager list --available
- Use the pool identifiers located in the previous step to attach the
Red Hat Virtualization
entitlement to the system:# subscription-manager attach --pool=pool_id
- Enable the required repository:
# subscription-manager repos --enable=rhel-7-server-rhv-4.1-rpms
- Install the CLI package and dependencies:
# yum install ovirt-engine-cli