$ oc get ConsoleCLIDownload virtctl-clidownloads-kubevirt-hyperconverged -o yaml
The virtctl client is a command-line utility for managing OKD Virtualization
resources. It is available for Linux, macOS, and Windows distributions.
Download the virtctl client by using the link provided in the ConsoleCLIDownload custom resource (CR).
View the ConsoleCLIDownload object by running the following command:
$ oc get ConsoleCLIDownload virtctl-clidownloads-kubevirt-hyperconverged -o yaml
Download the virtctl client by using the link listed for your distribution.
Extract and install the virtctl client after downloading from the appropriate location for your operating system.
You must have downloaded the virtctl client.
For Linux:
Extract the tarball. The following CLI command extracts it into the same directory as the tarball:
$ tar -xvf <virtctl-version-distribution.arch>.tar.gz
Navigate the extracted folder hierachy and run the following command to make the virtctl binary executable:
$ chmod +x <virtctl-file-name>
Move the virtctl binary to a directory in your PATH environment variable.
To check your path, run the following command:
$ echo $PATH
For Windows users:
Unpack and unzip the archive.
Navigate the extracted folder hierarchy and double-click the virtctl executable file to install the client.
Move the virtctl binary to a directory in your PATH environment variable.
To check your path, run the following command:
C:\> path
For macOS users:
Unpack and unzip the archive.
Move the virtctl binary to a directory in your PATH environment variable.
To check your path, run the following command:
echo $PATH
Install the virtctl client from the kubevirt-virtctl package.
Install the kubevirt-virtctl package:
# yum install kubevirt-virtctl
Red Hat offers OKD Virtualization repositories for both Red Hat Enterprise Linux 8 and Red Hat Enterprise Linux 7:
Red Hat Enterprise Linux 8 repository: cnv-4.10-for-rhel-8-x86_64-rpms
Red Hat Enterprise Linux 7 repository: rhel-7-server-cnv-4.10-rpms
The process for enabling the repository in subscription-manager is the same
in both platforms.
Enable the appropriate OKD Virtualization repository for your system by running the following command:
# subscription-manager repos --enable <repository>
Using the CLI tools for OKD Virtualization.