Procedure
-
In the web console, navigate to Virtualization → Catalog.
The InstanceTypes tab opens by default.
-
Select either of the following options:
-
Select a suitable bootable volume from the list. If the list is truncated, click the Show all button to display the entire list.
|
The bootable volume table lists only those volumes in the openshift-virtualization-os-images namespace that have the instancetype.kubevirt.io/default-preference label.
|
-
Click Add volume to upload a new volume or to use an existing persistent volume claim (PVC), a volume snapshot, or a containerDisk
volume. Click Save.
Logos of operating systems that are not available in the cluster are shown at the bottom of the list. You can add a volume for the required operating system by clicking the Add volume link.
In addition, there is a link to the Create a Windows boot source quick start. The same link appears in a popover if you hover the pointer over the question mark icon next to the Select volume to boot from line.
Immediately after you install the environment or when the environment is disconnected, the list of volumes to boot from is empty. In that case, three operating system logos are displayed: Windows, Fedora, and Linux. You can add a new volume that meets your requirements by clicking the Add volume button.
-
If you have not already added a public SSH key to your project, click the edit icon beside Authorized SSH key in the VirtualMachine details section.
-
Select one of the following options:
-
Click Save.
-
Optional: If you are creating a Windows VM, you can mount a Windows driver disk:
-
Click the Customize VirtualMachine button.
-
On the VirtualMachine details page, click Storage.
-
Select the Mount Windows drivers disk checkbox.
-
Optional: Click View YAML & CLI to view the YAML file. Click CLI to view the CLI commands. You can also download or copy either the YAML file contents or the CLI commands.
-
Click Create VirtualMachine.
After the VM is created, you can monitor the status on the VirtualMachine details page.