Import OVA from S3

This page describes the Import VM functionality and how to use it. It is provided as a XaaS blueprint and it can be used either from vRA UI or over API.

The goal of this feature is to allow end-users to be able to import their own OVA VM template within vRA for further provisioning, or to import a VM directly.

Prerequisites

  • Currently, we only support .ova format (import of .ovf, .vmdk, .iso etc. will be unsuccessful)
  • When providing a template/vm, please ensure that a right virtual hardware version is configured (at the moment we are supporting: vmx-11, vmx-12 and vmx-13). Please note that at the moment we do not support other hardware families (e.g. VirtualBox). In case you have a VirtualBox .ova image please change the configuration parameter as explained hereopen in new window.
    Note: use a supported hardware version (e.g. vmx-11)
  • Please ensure that there are no CPU or Memory resource allocation limits set in the template - they are not supported and will be removed regularly.
  • We support .ova VM/Templates up to 4TB.
  • Hardware configurations:
    • As a Network Adapter we support following default type: "VMXNET 3".
      ESXi networking features provide communication between VMs on the same host, between VMs on different hosts and between other virtual and physical machines.
      We do also support the "E1000" network type, please refer to your appliance supplier documentation for more information. In case you need to use the "E1000" type, you will need to modify the network type property only for this deployment. Go to Properties in the deployment form, edit the field VMware.Network.Type and change the value to E1000.

    • As a SCSI Controller we support following type: "VMware Paravirtual"
      SCSI controller provides access to virtual disks.
This is an information message

VMware Tools

It is highly recommended to have VMware Tools installed on the provided template.

Guest customization (setting passwords, domain join) and day 2 actions, such as graceful reboot rely heavily on VMware Tools and won't work properly without them installed.

The Import as Blueprint option will not work when you decide to import a template without VMware Tools installed. Furthermore, access via Web Console or VMRC will be very restricted (e.g. low resolution).

Please make sure to always update and use the latest VMware Tools. If you use Open VM Tools, ensure full compatibility with VMware as described hereopen in new window.

Other Implications

  • Networking: When importing .ova as the template, all vNICs remain in the template, but they will not be connected to the customer's network. In case of VM import, all vNICs are removed from the VM and the user has to reconfigure the VM via day 2 actions.

Licences

Windows Licence

Every operating system is licensed by Swisscom. Swisscom license on ESXi Host Level Microsoft Server Datacenter Edition. In the Swisscom Portal the licence Windows Server Standard is shown.
The customer's own Windows licences cannot be taken into account.
Also see hereopen in new window for a comparison of Standard and Datacenter edition.

Activate Redhat Licence

This action is provided as a XaaS blueprint and it can be used either from vRA UI or over API.

For more information like converting units of subscriptions or a detailed guide how to enable Cloud Access please consult the official documentation on the Red Hat Portalopen in new window and hereopen in new window.

Using "Import OVA from S3"

Follow the steps described below under The Process

When you choose "Red Hat Enterprise Linux" in the Operating System dropdown, you will see an additional dropdown where you can choose if the Swisscom licence should be used or not.

This is an information message

Important

The operating system license can be purchased through Swisscom. In case self-licensing is chosen, all VMs need to be properly registered in the portal of the corresponding OS vendor (Red Hat Cloud Access / CCSP, SUSE PCSSP).

On existing deployments

Activating a licence on an existing deployment needs to be done by Swisscom. If you want to activate this service, you can order it by opening a Service Request.

The Process

Before you Start

Note: A VM image can be imported as either template (named blueprint in vRA) or as standalone VM.

Prepare your VM image inside your favorite hypervisor

  • On your desktop for example with VMware Workstation or VirtualBox
  • On your virtualization infrastructure on-premise (e.g. vSphere/vCenter)

Export this VM image as an Open Virtual Appliance (OVA) compliant file format

  • In addition to the usual VM image template best practice (sysprep/vmdk punchzero/…), ensure to be compliant with the prerequisites for OVA import described here

Upload the OVA VM Image to your Swisscom-shared "Object Storage S3" bucket via S3 protocol

When image is fully loaded on the bucket, write down the exact bucket and file name and request the action called "Import OVA from S3" as described below.

Step by Step

Step 1: Request a XaaS action "Import OVA from S3"

Step 2a: Import .ova as a blueprint

Import OVA Basic

Basic Configuration inputs:

InputDescription
S3 Access KeyTenant-specific S3 Access Key.
S3 Secret KeyTenant-specific S3 Secret Key.
File PathThe relative path containing the bucket, folder, filename, and ending with .ova extension (e.g., my-bucket/my-folder-if-any/mylinux.ova).
Add vTPM deviceAdd vTPM device option when using Import OVA from S3 catalog item.
NameThe Blueprint name in the Service Catalog (e.g., MyImportedTemplate). This name has to be unique.
Overwrite if the blueprint already existsOverwrite an existing blueprint, if it exists.
Service CatalogDestination service in vRA catalog.
PasswordRoot (Linux) or Administrator (Windows) password for the given template.
Password RepeatSame as Password.
Operating SystemSelect the guest operating system to import.
Use Swisscom licenceNote: Not shown if Windows is selected, as Windows is always licensed by Swisscom.
The operating system license can be purchased through Swisscom. In case self-licensing is chosen, all VMs need to be properly registered in the portal of the corresponding OS vendor (Red Hat Cloud Access, CCSP, SUSE PCSSP).
Min CPUsMinimal number of CPUs in a Blueprint.
Default CPUsDefault number of CPUs in a Blueprint.
Max CPUsMaximum number of CPUs in a Blueprint.
Min MemoryMinimal memory size in a Blueprint.
Default MemoryDefault memory size in a Blueprint.
Max MemoryMaximum memory sizeCPUs in a Blueprint.
IconBase64 representation of the icon image.
DescriptionBlueprint description.

Advanced Configuration inputs:

This is an information message

Important

Before using the Advanced Configurations such as Property Groups or Machine Prefix please contact us by opening a new Service Request. We will assist you with these configurations.

InputDescription
Property GroupsList of property groups you want to add to the Blueprint
Machine PrefixMachine prefix you want to add to the Blueprint

Step 2b: Import .ova as a VM

Import As VM

InputDescription
S3 Access KeySame as for the blueprint import.
S3 Secret KeySame as for the blueprint import.
File PathSame as for the blueprint import.
Add vTPM deviceEnables vTPM during the OVA import
NameThe VM name.
DescriptionThe VM description.
Service LevelService Level has the same meaning as when provisioning a VM.
LocationLocation has the same meaning as when provisioning a VM.
Operating SystemSelect guest operating system to import
Blueprint nameName of the VM that should be taken to assign the VM to
vNic 1-8Select up to eight networks in which the VM should be attached.

Common issues

Unsupported vmx hardware version

In order to fix this issue follow these steps:

  1. Extract files from ova file (use 7-zip or ovftool).
  2. Open ovf file and change vssd:VirtualSystemType to vmx-13. We currently support templates that have a hardware version of vmx-13.
  3. Change the hash of the ovf file in the mf file.
  4. Create a new tar archive out of the three files (mf, ovf, vmdk's) with a zip tool or ovftool (ovatool will do some additional validation checks).

Unsupported hardware family

Often when users are exporting OVA's from VirtualBox it can come to incompatibilities with vCenter which results in error messages during the OVA import.

For example:

This OVF package requires unsupported hardware.
Details: Line 33: Unsupported hardware family 'virtualbox-2.2'.

To fix this you will have to unpack the OVA to OVF and change parts of the XML.

$ ovftool.exe --lax source.ova destination.ovf

Open destination.ovf
Change the following line:
   <vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>

to:
   <vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>

Timeout with Guest Customization

In case you don't have access to your root account, deployment of the workload will fail as it cannot access it for the customization task.

To resolve this issue, you will need to open a Service Request.

As soon as the Service Request was completed and the deployment was successful, you will need to set the IP parameters (IP, gateway, DNS) manually.

Last Updated: