Chapter 1. Using the CLI

The Red Hat Enterprise Virtualization suite features a command line interface (CLI). This CLI provides users with a means to connect to Red Hat Enterprise 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.

1.1. Installing the CLI

Install the Red Hat Enterprise Virtualization CLI to a client machine:
  1. Log into the client machine as the root user.
  2. Register your system with the Content Delivery Network, entering your Customer Portal user name and password when prompted:
    # subscription-manager register
  3. Find the Red Hat Enterprise Virtualization subscription pool and note down the pool ID.
    # subscription-manager list --available
  4. Use the pool identifiers located in the previous step to attach the Red Hat Enterprise Virtualization entitlement to the system:
    # subscription-manager attach --pool=pool_id
  5. Enable the required repository:
    # subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms
    
  6. Install the CLI package and dependencies:
    # yum install rhevm-cli