X

A Bridge to the Cloud...

Import and deploy Oracle Linux Template for Oracle Linux KVM

Simon Coter
Senior Manager, Oracle Linux and Virtualization Product Management

Oracle Linux Templates for Oracle Linux KVM provide an innovative approach to deploying a fully configured software stack by offering pre-installed and pre-configured software images. Use of Oracle Linux Templates eliminates the installation and configuration costs, and reduces the ongoing maintenance costs helping organizations achieve faster time to market and lower cost of operations.

Updated Oracle Linux Templates for Oracle Linux KVM has just been announced; those include:

  • Oracle Linux 7 Update 8 with UEK Release 5 Update 4 
  • Oracle Linux 8 Update 2 with UEK Release 6

This procedure shows:

  • How to import the "Oracle Linux Template for Oracle Linux KVM" appliance
  • How to create a Virtual Machine created (CPUs, RAM, Name and so on) starting from the Template imported
  • How to automate the Virtual Machine deployment configurationby cloud-init

Oracle Linux Virtualization Manager Requirements

Before starting with the entire process is strongly suggested to install latest updates, today available, on Oracle Linux Virtualization Manager.

So, before proceeding you're required to get your OLVM environment updated to, at least, include this errata:

ELBA-2020-5834 - ovirt-engine bug fix update

Import the Oracle Linux 7 Template for Oracle Linux KVM

# chown 36:36 /tmp/<myfile>.ova

To import the OVA proceed with following steps:

  • Click on "Compute => Templates", click on the "Import" button

  • On the "Template" window, select following options
    • Data Center: <OLVM Datacenter>
    • Source: "Virtual Appliance (OVA)"
    • Host: <kvm-host-containing-ova>
    • File Path: <ova_full_path>
  • and then click on "Load" button.

  • Select the "Appliance" on Source and move it to the right; once done, click on "Next" button

  • On the following window select the option "Clone" and proceed to configure options available under "General", "Network Interfaces" and "Disks" sections.

  • The import process will get some minutes; once ready, the template will appear under the menu "Compute" => "Templates"

Create Virtual Machine(s) starting from Oracle Linux Template

  • Click on "Compute" => "Virtual Machines", click on the "New" button

  • On the "New Virtual Machine" windows, select the proper "Template" to then proceed with the Virtual Machine creation process:

  • You can then configure the same and apply your settings, like:
    • Virtual Machine Name
    • RAM Memory
    • Possibly Add further virtual-disks
    • Networking
    • ....and more

Automate the Virtual Machine deployment configuration by cloud-init

  • Before starting the Virtual Machine we also have the option to configure different options for the guest Operating System, under the "Initial Run" TAB.
    All the options above are managed by "cloud-init" on the first boot of the Virtual Machine.

  • A very cool "cloud-init" option allows to execute a custom-script on the first boot of the Virtual Machine; the same is always available in the same "Initial Run" section.
    The custom script has to be in the "YAML" format and you can find examples on Cloud-Init Documentation website.
  • Once the configuration is in place, you can proceed to start the Virtual Machine created/configured

  • To connect, by "ssh", to the Virtual Machine created by "Oracle Linux 7 Template for Oracle Linux KVM" you can then use the following options
    If you try to directly access by "root" when the "SSH Key" has been defined, you'll get the following message

# ssh cloud-user@<hostname/ip-address> 

  • access will be granted, if defined, by SSH-key

# ssh <custom-user>@<hostname/ip-address>

  • to then supply the password defined

Feel free to leave your feedback and comments on this blog article and I'll be glad to answer and help.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.