Creating an Oracle Linux Virtualization Manager VM Template

Use the Oracle Linux Virtualization Manager console to create a VM template that uses the OCK image uploaded to Oracle Linux Virtualization Manager. This template is used to create nodes in a Kubernetes cluster.

Define a VM template in Oracle Linux Virtualization Manager. This template is used to set the configuration for VM nodes in the cluster, such as CPUs, and memory size. This template is used to create the nodes in the cluster. You can create a template for control plane nodes, and another for worker nodes.

Tip:

If you don't see the OS name Oracle CNE - OCK x64 in Oracle Linux Virtualization Manager, upgrade the product branding package. This package must be olvm-branding-4.5.5-1.3.el8.noarch.rpm or later. Upgrade the package on the Oracle Linux Virtualization Manager host using:

sudo dnf upgrade olvm-branding
  1. Sign in to Oracle Linux Virtualization Manager.
  2. Create a VM.

    Navigate to the Virtual Machines page, and create a VM.

    Fill in the form, only changing the following fields:

    Operating System: Oracle CNE - OCK x64

    Name: Set a name for the VM.

    Instance Image: Attach and select the uploaded boot.qcow2 image, and select the OS (boot) checkbox.

    Select OK to create the VM.

  3. Create a VM template.

    After the VM creation is finished, select the VM, and select Make Template. Set the name of the VM template to the value assigned to the vmTemplateName option in the cluster configuration file.

    Note:

    The VM template name must match the vmTemplateName in the cluster configuration file.

  4. Delete the VM.

    Delete the VM used to create the VM template. This is no longer required.

    Note:

    Don't remove the VMs disk when you delete the VM. The disk is used by the VM template to create more VMs.