$ tar -xvf <virtctl-version-distribution.arch>.tar.gz
The virtctl
client is a command-line utility for managing OKD Virtualization resources. It is available for Linux, Windows, and macOS.
Download and install the virtctl
client for your operating system.
Navigate to Virtualization > Overview in the OKD web console.
Click the Download virtctl link on the upper right corner of the page and download the virtctl
client for your operating system.
Install virtctl
:
For Linux:
Decompress the archive file:
$ tar -xvf <virtctl-version-distribution.arch>.tar.gz
Run the following command to make the virtctl
binary executable:
$ chmod +x <path/virtctl-file-name>
Move the virtctl
binary to a directory in your PATH
environment variable.
You can check your path by running the following command:
$ echo $PATH
Set the KUBECONFIG
environment variable:
$ export KUBECONFIG=/home/<user>/clusters/current/auth/kubeconfig
For Windows:
Decompress the archive file.
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.
You can check your path by running the following command:
C:\> path
For macOS:
Decompress the archive file.
Move the virtctl
binary to a directory in your PATH
environment variable.
You can check your path by running the following command:
echo $PATH
You can install the virtctl
client on Fedora as an RPM after enabling the OKD Virtualization repository.
Enable the OKD Virtualization repository for your version of Fedora.
Your system is registered to a Red Hat account with an active subscription to the "Red Hat Container Native Virtualization" entitlement.
Enable the appropriate OKD Virtualization repository for your operating system by using the subscription-manager
CLI tool.
To enable the repository for Fedora 8, run:
# subscription-manager repos --enable cnv-4.12-for-rhel-8-x86_64-rpms
To enable the repository for Fedora 7, run:
# subscription-manager repos --enable rhel-7-server-cnv-4.12-rpms
Using the CLI tools for OKD Virtualization.