Skip to content

Commit 4451682

Browse files
authored
Merge pull request #28478 from lmandavi/CNV-9030-vm-templates
CNV-9030 New UI for Virtual Machine Templates
2 parents cf6a435 + ecae03e commit 4451682

21 files changed

+400
-101
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/vm_templates/virt-creating-vm-template.adoc
4+
5+
[id="virt-understanding-vm-templates-web_{context}"]
6+
= About virtual machine templates
7+
8+
Preconfigured Red Hat virtual machine templates are listed in the *Templates* tab within the *Virtualization* page. These templates are available for different versions of Red Hat Enterprise Linux, Fedora, Microsoft Windows 10, and Microsoft Windows Servers. Each Red Hat virtual machine template is preconfigured with the operating system image, default settings for the operating system, flavor (CPU and memory), and workload type (server).
9+
10+
The *Templates* tab displays four types of virtual machine templates:
11+
12+
* *Red Hat Supported* templates are fully supported by Red Hat.
13+
* *User Supported* templates are *Red Hat Supported* templates that were cloned and created by users.
14+
* *Red Hat Provided* templates have limited support from Red Hat.
15+
* *User Provided* templates are *Red Hat Provided* templates that were cloned and created by users.
16+
17+
[NOTE]
18+
====
19+
In the Templates tab, you cannot edit or delete Red Hat Supported or Red Hat Provided templates. You can only edit or delete custom virtual machine templates that were created by users.
20+
====
21+
22+
Using a Red Hat template is convenient because the template is already preconfigured. When you select a Red Hat template to create your own custom template, the *Create Virtual Machine Template* wizard prompts you to add a boot source if a boot source was not added previously. Then, you can either save your custom template or continue to customize it and save it.
23+
24+
You can also select the *Create Virtual Machine Template* wizard directly and create a custom virtual machine template. The wizard prompts you to provide configuration details for the operating system, flavor, workload type, and other settings. You can add a boot source and continue to customize your template and save it.

modules/virt-add-disk-to-vm.adoc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
ifeval::["{context}" == "virt-edit-vms"]
1010
:virt-vm:
1111
:object: virtual machine
12-
:object-gui: Virtual Machine
12+
:object-gui: Virtual Machines
13+
:object-vm-overview: Virtual Machine Overview
1314
endif::[]
1415

1516
ifeval::["{context}" == "virt-editing-vm-template"]
1617
:virt-vm-template:
1718
:object: virtual machine template
18-
:object-gui: Virtual Machine Template
19+
:object-gui: Templates
20+
:object-vm-overview: VM Template Details
1921
endif::[]
2022

2123
[id="virt-vm-add-disk_{context}"]
@@ -27,8 +29,8 @@ Use this procedure to add a virtual disk to a {object}.
2729
.Procedure
2830

2931
. Click *Workloads* -> *Virtualization* from the side menu.
30-
. Click the *{object-gui}s* tab.
31-
. Select a {object} to open the *{object-gui} Overview* screen.
32+
. Click the *{object-gui}* tab.
33+
. Select a {object} to open the *{object-vm-overview}* screen.
3234
. Click the *Disks* tab.
3335
. Click *Add Disk* to open the *Add Disk* window.
3436
. In the *Add Disk* window, specify the *Source*, *Name*, *Size*, *Interface*, *Type*, and *Storage Class*.
@@ -50,10 +52,12 @@ ifeval::["{context}" == "virt-edit-vms"]
5052
:virt-vm!:
5153
:object!:
5254
:object-gui!:
55+
:object-vm-overview!:
5356
endif::[]
5457

5558
ifeval::["{context}" == "virt-editing-vm-template"]
5659
:virt-vm-template!:
5760
:object!:
5861
:object-gui!:
62+
:object-vm-overview!:
5963
endif::[]

modules/virt-add-nic-to-vm.adoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ ifeval::["{context}" == "virt-edit-vms"]
77
:virt-vm:
88
:object: virtual machine
99
:object-gui: Virtual Machine
10+
:object-vm-overview: Virtual Machine Overview
1011
endif::[]
1112

1213
ifeval::["{context}" == "virt-editing-vm-template"]
1314
:virt-vm-template:
1415
:object: virtual machine template
15-
:object-gui: Virtual Machine Template
16+
:object-gui: Templates
17+
:object-vm-overview: VM Template Details
1618
endif::[]
1719

1820
[id="virt-vm-add-nic_{context}"]
@@ -24,8 +26,8 @@ Use this procedure to add a network interface to a {object}.
2426
.Procedure
2527

2628
. Click *Workloads* -> *Virtualization* from the side menu.
27-
. Click the *{object-gui}s* tab.
28-
. Select a {object} to open the *{object-gui} Overview* screen.
29+
. Click the *{object-gui}* tab.
30+
. Select a {object} to open the *{object-vm-overview}* screen.
2931
. Click the *Network Interfaces* tab.
3032
. Click *Add Network Interface*.
3133
. In the *Add Network Interface* window, specify the *Name*, *Model*, *Network*, *Type*,
@@ -47,10 +49,12 @@ ifeval::["{context}" == "virt-edit-vms"]
4749
:virt-vm!:
4850
:object!:
4951
:object-gui!:
52+
:object-vm-overview!:
5053
endif::[]
5154

5255
ifeval::["{context}" == "virt-editing-vm-template"]
5356
:virt-vm-template!:
5457
:object!:
5558
:object-gui!:
59+
:object-vm-overview!:
5660
endif::[]
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/vm_templates/virt-creating-vm-template.adoc
4+
5+
[id="virt-adding-a-boot-source-web_{context}"]
6+
= Adding a boot source for a virtual machine template
7+
8+
A boot source can be configured for any virtual machine template that you want to use for creating virtual machines or custom templates. When virtual machine templates are configured with a boot source, they are labeled *Available* in the *Templates* tab.
9+
10+
.Procedure
11+
12+
. In the {VirtProductName} console, click *Workloads* -> *Virtualization* from the side menu.
13+
14+
. Click the *Templates* tab.
15+
16+
. Identify the virtual machine template for which you want to configure a boot source and click *Add source*.
17+
18+
. In the *Add boot source to template* window, click *Select boot source*, select a method for creating a persistent volume claim (PVC): *Upload local file*, *Import via URL*, *Clone existing PVC*, or *Import via Registry*.
19+
20+
.. Optional: Click *Mount this as a CD-ROM boot source* to add an additional disk and mount the disk as a CD-ROM.
21+
22+
. Enter a value for *Persistent Volume Claim size* to specify the PVC size that is adequate for the uncompressed image and any additional space that is required.
23+
24+
.. Optional: Enter a name for *Source provider* to associate the name with this template.
25+
26+
.. Advanced: Click *Storage class* and select the storage class that is used to create the disk.
27+
28+
.. Advanced: Click *Access mode* and select an access mode for the persistent volume. Supported access modes are: *Single User (RWO)*, *Shared Access (RWX)*, and *Read Only (ROX)*.
29+
30+
.. Advanced: Click *Volume mode* if you want to select *Block* instead of the default value *Filesystem*.
31+
32+
. Select the appropriate method to save your boot source:
33+
34+
.. Click *Save and upload* if you uploaded a local file.
35+
36+
.. Click *Save and import* if you imported content from a URL or the registry.
37+
38+
.. Click *Save and clone* if you cloned an existing PVC.
39+
40+
Your custom virtual machine template with a boot source is listed in the *Templates* tab, and you can create virtual machines by using this template.

modules/virt-cloud-init-fields-web.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
|Hostname
1414
|Sets a specific host name for the virtual machine.
1515

16-
|Authenticated SSH Keys
16+
|Authorized SSH Keys
1717
|The user's public key that is copied to *_~/.ssh/authorized_keys_* on the virtual machine.
1818

1919
|Custom script

modules/virt-creating-template-wizard-web.adoc

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,48 @@
33
// * virt/vm_templates/virt-creating-vm-template.adoc
44

55
[id="virt-creating-template-wizard-web_{context}"]
6-
= Creating a virtual machine template with the interactive wizard in the web console
6+
= Creating a virtual machine template with the wizard in the web console
77

8-
The web console features an interactive wizard that guides you through the *General*,
9-
*Networking*, *Storage*, *Advanced*, and *Review* steps to simplify the process of creating virtual machine templates.
10-
All required fields are marked with a `*`. The wizard prevents you from moving to the next step
11-
until you provide values in the required fields.
8+
The web console features the *Create Virtual Machine Template* wizard that guides you through the *General*, *Networking*, *Storage*, *Advanced*, and *Review* steps to simplify the process of creating virtual machine templates. All required fields are marked with a ++*++. The *Create Virtual Machine Template* wizard prevents you from moving to the next step until you provide values in the required fields.
9+
10+
[NOTE]
11+
====
12+
The wizard guides you to create a custom virtual machine template where you specify the operating system, boot source, flavor, and other settings.
13+
====
1214

1315
.Procedure
1416

1517
. In the {VirtProductName} console, click *Workloads* -> *Virtualization* from the side menu.
16-
. Click the *Virtual Machine Templates* tab.
17-
. Click *Create Template* and select *New with Wizard*.
18+
19+
. Click the *Templates* tab.
20+
21+
. Click *Create* and select *Template with Wizard*.
22+
1823
. Fill in all required fields in the *General* step.
19-
. Click *Next* to progress to the *Networking* screen. A NIC that is named `nic0` is attached by default.
24+
25+
. Click *Next* to progress to the *Networking* step. A NIC that is named `nic0` is attached by default.
26+
2027
.. Optional: Click *Add Network Interface* to create additional NICs.
28+
2129
.. Optional: You can remove any or all NICs by clicking the Options menu {kebab} and selecting *Delete*. Virtual machines created from a template do not need a NIC attached. NICs can be created after a virtual machine has been created.
22-
. Click *Next* to progress to the *Storage* screen.
23-
.. Optional: Click *Add Disk* to create additional disks.
24-
.. Optional: Click a disk to modify available fields. Click the ✓ button to save the changes.
25-
.. Optional: Click *Disk* to choose an available disk from the *Select Storage* list.
30+
31+
. Click *Next* to progress to the *Storage* step.
32+
33+
. Click *Add Disk* to add a disk, and complete your selections for the fields in the *Add Disk* screen.
2634
+
2735
[NOTE]
2836
====
29-
If either *URL* or *Container* are selected as the *Source* in the *General* step, a `rootdisk` disk is created and attached to virtual machines as the *Bootable Disk*. You can modify the `rootdisk` but you cannot remove it.
37+
If either *Import via URL (creates PVC)* or *Import via Registry (creates PVC)* is selected as the *Source*, a `rootdisk` disk is created and attached to virtual machines as the *Bootable Disk*.
3038
3139
A *Bootable Disk* is not required for virtual machines provisioned from a *PXE* source if there are no disks attached to the virtual machine. If one or more disks are attached to the virtual machine, you must select one as the *Bootable Disk*.
3240
====
3341

34-
. Click *Create Virtual Machine Template >*. The *Results* screen displays the JSON configuration file for the virtual machine template.
35-
+
36-
The template is listed in the *Virtual Machine Templates* tab.
42+
. Optional: Click *Advanced* to configure Cloud-init.
43+
44+
. Click *Review* to review and confirm your settings.
45+
46+
. Click *Create Virtual Machine template*.
47+
48+
. Click *See virtual machine template details* to view details about the virtual machine template.
49+
50+
The template is also listed in the *Templates* tab.

modules/virt-creating-vm-wizard-web.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[id="virt-creating-vm-wizard-web_{context}"]
66
= Running the virtual machine wizard to create a virtual machine
77

8-
The web console features an interactive wizard that guides you through *General*, *Networking*, *Storage*, *Advanced*, and *Review* steps to simplify the process of creating virtual machines. All required fields are marked by a `*`. When the required fields are completed, you can review and create your virtual machine.
8+
The web console features a wizard that guides you through *General*, *Networking*, *Storage*, *Advanced*, and *Review* steps to simplify the process of creating virtual machines. All required fields are marked by a ++*++. When the required fields are completed, you can review and create your virtual machine.
99

1010
Network interface cards (NICs) and storage disks can be created and attached to virtual machines after they have been created.
1111

modules/virt-deleting-template-web.adoc

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@
77

88
Deleting a virtual machine template permanently removes it from the cluster.
99

10+
[NOTE]
11+
====
12+
You can delete virtual machine templates that were created by using a Red Hat template or the *Create Virtual Machine Template* wizard. Preconfigured virtual machine templates that are provided by Red Hat cannot be deleted.
13+
====
14+
1015
.Procedure
1116

1217
. In the {VirtProductName} console, click *Workloads* -> *Virtualization* from the side menu.
13-
. Click the *Virtual Machine Templates* tab.
14-
. You can delete the virtual machine template from this pane, which makes it
15-
easier to perform actions on multiple templates in the one pane, or from the
16-
*Virtual Machine Template Details* pane where you can view comprehensive
17-
details of the selected template:
18+
19+
. Click the *Templates* tab. Select the appropriate method to delete a virtual machine template:
20+
1821
** Click the Options menu {kebab} of the template to delete and select *Delete Template*.
19-
** Click the template name to open the *Virtual Machine Template Details*
20-
pane and click *Actions* -> *Delete Template*.
22+
23+
** Click the template name to open the *Virtual Machine Template Details* screen and click *Actions* -> *Delete Template*.
24+
2125
. In the confirmation pop-up window, click *Delete* to permanently delete the template.

modules/virt-edit-cdrom-vm.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ endif::[]
1313

1414
ifeval::["{context}" == "virt-editing-vm-template"]
1515
:object: virtual machine template
16-
:object-gui: Virtual Machine Templates
16+
:object-gui: Templates
1717
endif::[]
1818

1919
[id="virt-vm-edit-cdrom_{context}"]

modules/virt-editing-template-yaml-web.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Navigating away from the YAML screen while editing cancels any changes to the
2020
.Procedure
2121

2222
. In the {VirtProductName} console, click *Workloads* -> *Virtualization* from the side menu.
23-
. Click the *Virtual Machine Templates* tab.
24-
. Select a template.
23+
. Click the *Templates* tab.
24+
. Select a template to open the *Details* screen.
2525
. Click the *YAML* tab to display the editable configuration.
2626
. Edit the file and click *Save*.
2727

0 commit comments

Comments
 (0)