mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
78 lines
1.7 KiB
Plaintext
78 lines
1.7 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * virt/getting_started/virt-using-the-cli-tools.adoc
|
|
|
|
:_content-type: PROCEDURE
|
|
[id="virt-installing-virtctl-client_{context}"]
|
|
= Installing virtctl on Linux, Windows, and macOS
|
|
|
|
Download and install the `virtctl` binary for your operating system.
|
|
|
|
.Procedure
|
|
|
|
. Navigate to *Virtualization -> Overview* page in the {product-title} web console.
|
|
|
|
. Click the *Download virtctl* link to download the `virtctl` binary 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
|
|
----
|