You can create virtual machines (VMs) from instance types by using the OpenShift Container Platform web console.

Creating a VM from an instance type

You can create a virtual machine (VM) from an instance type by using the OpenShift Container Platform web console. You can also use the web console to create a VM by copying an existing snapshot or to clone a VM.

  1. In the web console, navigate to VirtualizationCatalog and click the InstanceTypes tab.

  2. Select either of the following options:

    • Select a bootable volume.

      The bootable volume table lists only those volumes in the openshift-virtualization-os-images namespace that have the instancetype.kubevirt.io/default-preference label.

      • Optional: Click the star icon to designate a bootable volume as a favorite. Starred bootable volumes appear first in the volume list.

    • Click Add volume to upload a new volume or use an existing persistent volume claim (PVC), volume snapshot, or data source. Then click Save.

  3. Click an instance type tile and select the resource size appropriate for your workload.

  4. 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.

  5. Select one of the following options:

    • Use existing: Select a secret from the secrets list.

    • Add new:

      1. Browse to the public SSH key file or paste the file in the key field.

      2. Enter the secret name.

      3. Optional: Select Automatically apply this key to any new VirtualMachine you create in this project.

      4. Click Save.

  6. 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.

  7. Click Create VirtualMachine.

After the VM is created, you can monitor the status on the VirtualMachine details page.