$ oc get vms -A
You can list available virtual machines (VMs) by using the web console or the OpenShift cli (oc
).
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 with all of the 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 by one of the following: their name, the project they belong to, their 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.
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. If the operation is permitted, the folder is highlighted in green when you drag the VM over it.
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. If the operation is permitted, the project name is highlighted in green when you drag the VM over it.