X

News, tips, partners, and perspectives for Oracle’s virtualization offerings

Export VM from VirtualBox to OCI - part 1

Valery Portnyagin
Senior Developer
General logic

The following is a high-level outline of the steps which VirtualBox does:

  • Convert an user image as VMDK if it’s needed.
  • Upload the image to Oracle Cloud Infrastructure Object Storage. See Overview of Object Storage for more information.
  • Import the uploaded image, it means a custom image creation.
  • Launch new instance using the custom image and user settings.

Prerequisites

OCI IAM rights

User must have the appropriate IAM rights to upload the objects into a bucket, to create VCN and Subnet or to use VCN and Subnet, to launch an instance. If user hasn’t enough rights the action will fail. If you don’t know whether you have an appropriate IAM role or not then ask your tenancy administrator. If you're new to policies, see Getting Started with Policies and Common Policies. For reference material about writing policies for instances, cloud networks, or other Core Services API resources, see Details for the Core Services. The rules will be explained more in the part 6.

VirtualBox cloud profile

User must have create and configure OCI profile in VirtualBox manually or using Cloud Profile Manager. See the white paper Journey to Oracle Cloud Infrastructure with Oracle VM VirtualBox.

Linux and Windows Source Image Requirements

At present the requirements are identical for both systems. OCI documentation says that a custom image must meet the following requirements:

  • The maximum image size is 400 GB.
  • The image must be set up for BIOS boot.
  • Only one disk is supported, and it must be the boot drive with a valid master boot record (MBR) and boot loader. You can migrate additional data volumes after you import the image's boot volume.
  • The minimum boot volume size is 256 GB for Windows and 50 GB for Linux. For more information, see Custom Boot Volume Sizes.
  • The boot process must not require additional data volumes to be present for a successful boot.
  • The disk image cannot be encrypted.
  • The disk image must be a VMDK or QCOW2 file.
    • Create the image file by cloning the source volume, not by creating a snapshot.
    • VMDK files must be either the "single growable" (monolithicSparse) type or the "stream optimized" (streamOptimized) type, both of which consist of a single VMDK file. All other VMDK formats, such as those that use multiple files, split volumes, or contain snapshots, are not supported.
  • The network interface must use DHCP to discover the network settings. When you import a custom image, existing network interfaces are not recreated. Any existing network interfaces are replaced with a single NIC after the import process is complete. You can attach additional VNICs after you launch the imported instance.
  • The network configuration must not hardcode the MAC address for the network interface.

 


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.