Link

create VM design updates

This item will cover various updates to the VM creation wizard

  • Adding descriptions to the dropdown fields (using this pattern https://github.com/patternfly/patternfly-design-kit/issues/218)
  • Renaming fields
  • Reordering fields
  • Adding ‘Operating System source’ step

Create VM - General-default Landing on the General step, Default mode. Section titles added, and fields reorgenized and renamed. Any OS image source related fields are moved to the next step.

‘General’ section:

  • ‘Name’
  • ‘Description’ ‘Resources & configuration’ section’
  • ‘Operating system’
  • ‘Workload type’ (previously Workload profile)
  • ‘Flavor (CPU and Memory)’ (previously only ‘flavor’)

General step

Create VM - General Upon selecting an operating system, the Workload type and Flavor (CPU and Memory) fields will be enabled and their defaults will be selected.

Create VM - General - Workload type Workload type options Server is the default

Create VM - General - flavor Flavor options. Medium is the default

Operating system source step (new)

Create VM - General Operating system source step,landing mode.

Create VM - General ‘Boot operating system via’ field options

Create VM - General Selecting an option from the ‘Boot operating system via’ field will expose below all the fields required to upload the image and create the correlating disk/NIC. For example: on selecting the ‘URL’ option, additional fields will appear below. These fields are required in order to point to the desired URL as well as creating a disk via PVC that will contain the image on that URL. The fields are basically mapped 1:1 to the Disk modal, with the URL option selected for ‘Disk content’ field.

An Advanced (settings) drawer is available here as well, containing the same options as the Advanced options on the disk modal.

Create VM - OS disk on list Once the user clicks next, the disk containing the OS image from the URL is added. This disk will be available on the Storage step and will appear as the first item on the list. This disk cannot be deleted but can be modified to some extent.

Create VM - OS disk modal Editing that disk will display an info notification within the edit modal, mentioning the link between this disk and the one created on the OS source step. The fields related to the OS source, in this case, the URL, will be locked.

Networking step

Create VM - Networking -list NIC list. For any VM source selection (with the exception of PXE) a default NIC will be added. This NIC exposes the VM to the cluster. an info alert will notify the user of the purpose of this NIC and that modifying this NIC might break that ‘exposing to cluster’ configuration.

Create VM - Networking -list On deleting the default NIC, a confirmation modal will present itsself.

Create VM - Networking -Default Edit modal. The Advanced drawer is always collapsed by default

Create VM - Networking -Add The Add NIC modal. The Advanced drawer is closed by default, as seen in the previous image. All fields have moved into the advanced drawer, except the Name and Network fields. Network field does not require description for each option since these options are created and managed by the user.

Create VM - Networking -Model ‘Model’ dropdown options. ViritIO marked as (recommended)

Create VM - Networking -Binding ‘Binding method’ dropdown options (previously ‘Type’)

This field’s default is dependent on the Network field. For ‘Pod network’ the default option will be ‘Masquerade’. For other Network option, the default will be ‘Birgde’.

Storage

Create VM - Storage -list Disks list. In case no disk type OS image source selected in the General step, a default disk will be created in order to make the VM operational. This will be highlighted by an in-line info alert (like in the Networking step)

Create VM - Storage -Default disk deletion On deleting the default disk, a confirmation modal will present itsself.

Create VM - Storage -Default disk

Add disk modal.

  • ‘Type’ field changed to ‘Disk content’
  • ‘Name’ field changed to ‘Disk name’
  • ‘Size’ changed to ‘Disk size (PVC size)’
  • Some fields pulled into the the Advanced drawer (see image below)

Create VM - Storage -list The Add/Edit modal expanded view.

  • Advanced drawer added containing:
    • Interface
    • Volume mode
    • Access mode (should be automatically selected and locked to the Storage class default)

Create VM - Storage -list Disk content dropdwon options.

Create VM - Storage -list empty state List empty state will notify the user that at least one disk is needed.

Create VM - Storage -list empty state This will be supported by an alert blocking the user from moving from this step when there are no disks.

Review & create

Create VM - Advanced -drawers The name of this step has changed to correlate better with the ‘Create and review action’ that is available along previous steps.

The ‘Start VM on creation’ checkbox had been removed from the General step and placed in this step at the bottom of the page.