mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-07 00:48:01 +01:00
78 lines
1.7 KiB
Plaintext
78 lines
1.7 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * virt/install/virt-installing-virtctl.adoc
|
|
|
|
:_content-type: PROCEDURE
|
|
[id="virt-installing-virtctl-client_{context}"]
|
|
= Installing the virtctl client on Linux, Windows, and macOS
|
|
|
|
Download and install the `virtctl` client for your operating system.
|
|
|
|
.Procedure
|
|
|
|
. Navigate to *Virtualization > Overview* in the {product-title} 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:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ tar -xvf <virtctl-version-distribution.arch>.tar.gz
|
|
----
|
|
|
|
.. Run the following command to make the `virtctl` binary executable:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ 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:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ echo $PATH
|
|
----
|
|
|
|
.. Set the `KUBECONFIG` environment variable:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ 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:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
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:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
echo $PATH
|
|
----
|