$ oc get vms -A
Use the web console or OpenShift CLI (oc) to list your virtual machines (VMs). From the list, you can filter and search for specific VMs.
You can either list all of the virtual machines (VMs) in your cluster or limit the list to VMs in a specified namespace by using the OpenShift CLI (oc).
You have installed the OpenShift CLI (oc).
List all of the VMs in your cluster by running the following command:
$ oc get vms -A
List all of the VMs in a specific namespace by running the following command:
$ oc get vms -n <namespace>
You can list all of the virtual machines (VMs) in your cluster by using the web console.
Click Virtualization → VirtualMachines from the side menu to access the tree view of all projects and VMs in your cluster.
Optional: Enable the Show only projects with VirtualMachines option above the tree view to limit the displayed projects.
Optional: Click the Advanced search button next to the search bar to further filter VMs. You can filter your VMs by their name, project, labels, or the allocated vCPU and memory resources.
In addition to creating virtual machines (VMs) in different projects, you can use the tree view to further organize them in folders.
|
Enabling folders in the virtual machine tree is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process. For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope. |
|
OKD Virtualization does not enable folders in the virtual machine tree by default. To enable folders, go to Virtualization → Settings. In the Preview features tab, select Enable folders in Virtual Machines tree view. |
Click Virtualization → VirtualMachines from the side menu to access the tree view with all projects and VMs in your cluster.
Perform one of the following actions depending on your use case:
To move the VM to a new folder in the same project:
Right-click the name of the VM in the tree view.
Select Move to folder from the menu.
Type the name of the folder to create in the "Search folder" bar.
Click Create folder in the drop-down list.
Click Save.
To move the VM to an existing folder in the same project:
Click the name of the VM in the tree view and drag it to a folder in the same project. A highlight is displayed on the folder for permitted operations.
To move the VM from a folder to the project:
Click the name of the VM in the tree view and drag it on the project name. A highlight is displayed on the folder for permitted operations.