Skip to content

Commit 42c9c65

Browse files
authored
Merge pull request #48480 from apinnick/CNV-20184-create-template-ui
CNV-20184: Update create/edit template procedures
2 parents d59f97a + 0a170e3 commit 42c9c65

14 files changed

+148
-174
lines changed

_topic_maps/_topic_map.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3367,7 +3367,7 @@ Topics:
33673367
Topics:
33683368
- Name: Creating virtual machine templates
33693369
File: virt-creating-vm-template
3370-
- Name: Editing a virtual machine template
3370+
- Name: Editing virtual machine templates
33713371
File: virt-editing-vm-template
33723372
- Name: Enabling dedicated resources for a virtual machine template
33733373
File: virt-dedicated-resources-vm-template

modules/virt-about-the-vm-dashboard.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
= The Virtual Machines dashboard
88

99
Access virtual machines (VMs) from the {product-title} web console by navigating
10-
to the *Virtualization* -> *VirtualMachines* page. The *Overview* tab for each virtual machine has the following cards that display VM data:
10+
to the *Virtualization* -> *VirtualMachines* page and clicking a virtual machine (VM) to view the *VirtualMachine details* page.
11+
12+
The *Overview* tab displays the following cards:
1113

1214
* *Details* provides identifying information about the virtual machine, including:
1315
+

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ifeval::["{context}" == "virt-editing-vm-template"]
2121
endif::[]
2222

2323
:_content-type: PROCEDURE
24-
[id="virt-vm-add-disk_{context}"]
24+
[id="virt-add-disk-to-vm_{context}"]
2525

2626
= Adding a virtual disk to a {object}
2727

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

Lines changed: 0 additions & 57 deletions
This file was deleted.

modules/virt-creating-template.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/virtual_machines/virt-create-vms.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="virt-creating-template_{context}"]
7+
= Creating a virtual machine template in the web console
8+
9+
You create a virtual machine template by editing a YAML file example in the {product-title} web console.
10+
11+
.Procedure
12+
13+
. In the web console, click *Virtualization* -> *Templates* in the side menu.
14+
. Click *Create Template*.
15+
. Specify the template parameters by editing the YAML file.
16+
. Click *Create*.
17+
+
18+
The template is displayed on the *Templates* page.
19+
20+
. Optional: Click *Download* to download and save the YAML file.

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

Lines changed: 0 additions & 28 deletions
This file was deleted.

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ endif::[]
1616
:_content-type: PROCEDURE
1717
[id="virt-editing-vm-yaml-web_{context}"]
1818

19-
= Editing a virtual machine YAML configuration using the web console
19+
= Editing a {object} YAML configuration using the web console
2020

21-
You can edit the YAML configuration of a virtual machine in the web console. Some parameters cannot be modified. If you click *Save* with an invalid configuration, an error message indicates the parameter that cannot be changed.
21+
You can edit the YAML configuration of a {object} in the web console. Some parameters cannot be modified. If you click *Save* with an invalid configuration, an error message indicates the parameter that cannot be changed.
2222

23+
ifdef::virt-edit-vms[]
2324
If you edit the YAML configuration while the virtual machine is running, changes will not take effect until you restart the virtual machine.
25+
endif::[]
2426

2527
[NOTE]
2628
====
@@ -44,8 +46,9 @@ A confirmation message shows that the modification has been successful and inclu
4446
//Ending conditional expressions
4547
ifeval::["{context}" == "virt-edit-vms"]
4648
:object!:
49+
:object-gui!:
4750
endif::[]
48-
4951
ifeval::["{context}" == "virt-editing-vm-template"]
5052
:object!:
53+
:object-gui!:
5154
endif::[]

modules/virt-template-fields-for-boot-source.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The following table describes the fields for *Add boot source to template* windo
3434

3535
|Access mode
3636
|Access mode of the persistent volume. Supported access modes are *Single User (RWO)*, *Shared Access (RWX)*, *Read Only (ROX)*. If *Single User (RWO)* is selected, the disk can be mounted as read/write by a single node. If *Shared Access (RWX)* is selected, the disk can be mounted as read-write by many nodes. The `kubevirt-storage-class-defaults` config map provides access mode defaults for data volumes. The default value is set according to the best option for each storage class in the cluster.
37-
+
37+
3838
[NOTE]
3939
====
4040
Shared Access (RWX) is required for some features, such as live migration of virtual machines between nodes.

modules/virt-template-fields-web.adoc

Lines changed: 0 additions & 49 deletions
This file was deleted.

modules/virt-vm-fields-web.adoc

Lines changed: 86 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,126 @@
11
// Module included in the following assemblies:
22
//
33
// * virt/virtual_machines/virt-create-vms.adoc
4+
// * virt/vm_templates/virt-creating-vm-template.adoc
5+
// * virt/vm_templates/virt-editing-vm-template.adoc
46

57
// VM wizard includes additional options to VM template wizard
68
// Call appropriate attribute in the assembly
79

10+
ifeval::["{context}" == "virt-editing-vm-template"]
11+
:object: virtual machine template
12+
:object-title: Virtual machine template
13+
endif::[]
14+
ifeval::["{context}" == "virt-edit-vms"]
15+
:object: virtual machine
16+
:object-title: Virtual machine
17+
endif::[]
18+
ifeval::["{context}" == "virt-create-vms"]
19+
:object: virtual machine
20+
:object-title: Virtual machine
21+
endif::[]
22+
823
:_content-type: REFERENCE
924
[id="virt-vm-fields-web_{context}"]
10-
= Virtual machine fields
25+
= {object-title} fields
1126

12-
The following table lists the fields that you can edit when creating a new virtual machine (VM) in the {VirtProductName} web console:
27+
The following table lists the {object} fields that you can edit in the {product-title} web console:
1328

29+
[cols="1,1a", options="header"]
30+
.{object-title} fields
1431
|===
15-
|Name |Description
32+
|Tab |Fields or functionality
1633

34+
ifdef::virtualmachine[]
1735
|Overview
18-
a|
36+
endif::[]
37+
ifdef::virt-edit-vms,virt-editing-vm-template[]
38+
|Details
39+
endif::[]
40+
|
41+
ifdef::virt-edit-vms,virt-editing-vm-template[]
42+
* Labels
43+
* Annotations
44+
endif::[]
45+
ifdef::virt-editing-vm-template[]
46+
* Display name
47+
endif::[]
1948
* Description
20-
* Operating system
49+
ifdef::virt-editing-vm-template[]
50+
* Workload profile
51+
endif::[]
2152
* CPU/Memory
2253
* Boot mode
54+
ifdef::virt-edit-vms[]
55+
* Boot order
56+
endif::[]
2357
* GPU devices
24-
* Host Devices
58+
* Host devices
59+
ifdef::virt-edit-vms[]
60+
* SSH access
61+
endif::[]
2562

2663
|YAML
27-
|View the VM custom resource (CR).
64+
|
65+
* View, edit, or download the custom resource.
2866

2967
|Scheduling
30-
a|
68+
|
3169
* Node selector
3270
* Tolerations
3371
* Affinity rules
3472
* Dedicated resources
3573
* Eviction strategy
3674
* Descheduler setting
3775

76+
ifdef::virtualmachine[]
3877
|Environment
39-
|Add a config map, secret, or service account.
78+
|* Add, edit, or delete a config map, secret, or service account.
79+
endif::[]
4080

4181
|Network Interfaces
42-
|Add or edit a network interface.
82+
|
83+
* Add, edit, or delete a network interface.
4384

4485
|Disks
45-
|Add or edit a disk.
86+
|
87+
* Add, edit, or delete a disk.
4688

4789
|Scripts
48-
a|
49-
* `cloud-init` settings
50-
* SSH key
90+
|
91+
* cloud-init settings
92+
ifdef::virtualmachine[]
93+
* Authorized SSH key
5194
* Sysprep answer files
95+
endif::[]
5296

97+
ifdef::virtualmachine[]
5398
|Metadata
54-
|Specify labels and annotations.
99+
|
100+
* Labels
101+
* Annotations
102+
endif::[]
103+
ifdef::virt-editing-vm-template[]
104+
|Parameters (optional)
105+
|
106+
* Virtual machine name
107+
* cloud-user password
108+
endif::[]
109+
ifdef::virt-edit-vms[]
110+
|Snapshots
111+
|
112+
* Add, restore, or delete a virtual machine snapshot.
113+
endif::[]
55114
|===
115+
116+
ifeval::["{context}" == "virt-editing-vm-template"]
117+
:virt-editing-vm-template!:
118+
endif::[]
119+
ifeval::["{context}" == "virt-edit-vms"]
120+
:virt-edit-vms!:
121+
endif::[]
122+
ifeval::["{context}" == "virtualmachine"]
123+
:virtualmachine!:
124+
endif::[]
125+
:object!:
126+
:object-title!:

0 commit comments

Comments
 (0)