You can update a virtual machine template in the web console, either by editing the full configuration in the YAML editor or by editing a subset of the parameters in the Virtual Machine Template Overview screen.
Edit select values of a virtual machine template in the Virtual Machine Template Overview screen of the web console by clicking on the pencil icon next to the relevant field. Other values can be edited using the CLI.
Click Workloads → Virtual Machine Templates from the side menu.
Select a virtual machine template to open the Virtual Machine Template Overview screen.
Click the pencil icon to make that field editable.
Make the relevant changes and click Save.
Editing a virtual machine template will not affect virtual machines already created from that template.
You can edit the YAML configuration of a virtual machine template from the web console.
Not all parameters can be modified. If you click Save with an invalid configuration, an error message indicates the parameter that cannot be modified.
Navigating away from the YAML screen while editing cancels any changes to the configuration that you made. |
In the container-native virtualization console, click Workloads → Virtual Machine Templates.
Select a template.
Click the YAML tab to display the editable configuration.
Edit the file and click Save.
A confirmation message, which includes the updated version number for the object, shows the modification has been successful.
Use this procedure to add a virtual disk to a virtual machine template.
From the Virtual Machine Templates tab, select your virtual machine template.
Select the Disks tab.
Click Add Disks to open the Add Disk window.
In the Add Disk window, specify Source, Name, Size, Interface, and Storage Class.
Use the drop-down lists and check boxes to edit the disk configuration.
Click OK.
Use this procedure to add a network interface to a virtual machine template.
From the Virtual Machine Templates tab, select the virtual machine template.
Select the Network Interfaces tab.
Click Add Network Interface.
In the Add Network Interface window, specify the Name, Model, Network, Type, and MAC Address of the network interface.
Click Add to add the network interface.
Restart the virtual machine to enable access.
Edit the drop-down lists and check boxes to configure the network interface.
Click Save Changes.
Click OK.
The new network interface displays at the top of the Create Network Interface list until the user restarts it.
The new network interface has a Pending VM restart
Link State until you
restart the virtual machine. Hover over the Link State to display more
detailed information.
The Link State is set to Up by default when the network interface card is defined on the virtual machine and connected to the network.
Use the following procedure to configure CD-ROMs for virtual machines.
From the Virtual Machine Templates tab, select your virtual machine template.
Select the Overview tab.
Click the pencil icon to the right of the CD-ROMs label to open the Edit CD-ROM window.
If no CD-ROMs are available for editing, the CD label initially displays blank.
If there are CD-ROMs available, you can eject the CD-ROM by clicking Eject CD-ROM or remove it by clicking -.
In the Edit CD-ROM window, do the following:
Select the type of CD-ROM configuration in the Media Type field.
On Windows systems, Windows guest tools is attached by default in the Media Type field.
Complete the required information for each Media Type.
Click Add CD-ROM.
When all CD-ROMs are added, click Save.