Migrating VMware instances to Metacloud

If you have virtual machines (VMs) running in a VMware deployment, such as an ESXi server, you can migrate them to Metacloud and manage all your VMs conveniently in one cloud.

Migration involves the following steps:

Updating or Installing Virtio Drivers on VMware Images

Paravirtualized (virtio) drivers enhance performance of instances running on Kernel-based Virtual Machine (KVM) architecture, which is the standard for Metacloud Hypervisors (MHVs). Images for VMs running in Metacloud must have these drivers installed.

The drivers are automatically loaded on several versions of Red Hat Enterprise Linux (RHEL) and some versions of Linux based on the 2.6.27 kernel or later versions. See the Red Hat document KVM Paravirtualized (Virtio) Drivers for more information.

Windows images do not automatically include virtio drivers. See the Red Hat document Installing the Drivers on an Installed Windows Guest Virtual Machine for more information.

Exporting the VMware OVF Package

Export the VMware instance as an Open Virtualization Format (OVF) package, which captures the state of a virtual machine in a self-contained set of compressed files. This package includes the VMDK file, which is the source for the image that you create in Metacloud later in the migration.

The export steps vary, depending on the VMware environment. Look up the export procedure for your VMware environment in VMware Docs for more information.

Locating the VMDK file

VMDK is one of the image file types that Metacloud supports. The VMDK file, which is part of the OVF bundle, contains descriptors for virtual disks drive sectors, heads, cylinders, and the disk adapter type used in the VM. You need to know its location so that you can upload it to the Metacloud image service when creating the image. 

For information on finding the VMDK file, see Locating a hosted virtual machine's files on the VMware support knowledge base.

Creating the Image and Launching an Instance in Metacloud

After locating the VMDK file, upload it to create an image, and then launch an instance.

Using the Dashboard

  1. Click Images on the Project drop-down list.
  2. On the Images page, click CREATE IMAGE.
  3. Enter information about the image, select the VMDK file for upload, and select the Raw format. Click Create Image.

    upload_VMware_image.png

    The new image appears in the table.  

    VMware_image_uploaded.png

  4. Click LAUNCH INSTANCE in the row of the new image.
  5. Enter properties of the new instance, selecting the new image as the source. 
  6. Assign the new instance to a network.
  7. Configure additional settings. 
  8. Click Launch.

    launch_VMware_instance_raw.png

    The new instance appears in the table. Verify that its status is Running.

    VMware_instance_launched.png

Using the CLI

1. Create the image, using the flat VMDK file as the source file and specifying the Raw image format:

$ openstack image create vmware_ubuntu_3 --disk-format raw --public --file ~/Documents/Virtual\ Machines.localized/Ubuntu\ 64-bit\ 14.04.5.vmwarevm/Virtual\ Disk.vmdk
+------------------+----------------------------------------------------------------------------------+
| Field            | Value                                                                            |
+------------------+----------------------------------------------------------------------------------+
| checksum         | 7f18a6f5bac1c48ae992aa348937b561                                                 |
| container_format | bare                                                                             |
| created_at       | 2017-07-13T00:05:44Z                                                             |
| disk_format      | raw                                                                              |
| file             | /v2/images/42395a7d-9067-4395-b06b-03b6944a11d6/file                             |
| id               | <image_uuid>                                                                     |
| min_disk         | 0                                                                                |
| min_ram          | 0                                                                                |
| name             | vmware_ubuntu_3                                                                  |
| owner            | <owner_uuid>                                                                     |
| properties       | direct_url='rbd://8f258174-0a5d-ee47-9a56-07fb5e97a23f/nova-                     |
|                  | images1/42395a7d-9067-4395-b06b-03b6944a11d6/snap'                               |
| protected        | False                                                                            |
| schema           | /v2/schemas/image                                                                |
| size             | 764                                                                              |
| status           | active                                                                           |
| tags             |                                                                                  |
| updated_at       | 2017-07-13T00:05:45Z                                                             |
| virtual_size     | None                                                                             |
| visibility       | public                                                                           |
+------------------+----------------------------------------------------------------------------------+

2. Launch an instance from the image:

$ openstack server create VMware_instance_3 --flavor m1.small  --image  --nic net-id=<network_uuid>
+-------------------------------------+----------------------------------------------------------+
| Field                               | Value                                                    |
+-------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig                   | MANUAL                                                   |
| OS-EXT-AZ:availability_zone         | <az_name>                                                |
| OS-EXT-SRV-ATTR:host                | <mhv_host_name>                                          |
| OS-EXT-SRV-ATTR:hypervisor_hostname | <mhv_host_name>                                          |
| OS-EXT-SRV-ATTR:instance_name       | instance-0000eeca                                        |
| OS-EXT-STS:power_state              | NOSTATE                                                  |
| OS-EXT-STS:task_state               | None                                                     |
| OS-EXT-STS:vm_state                 | building                                                 |
| OS-SRV-USG:launched_at              | None                                                     |
| OS-SRV-USG:terminated_at            | None                                                     |
| accessIPv4                          |                                                          |
| accessIPv6                          |                                                          |
| addresses                           |                                                          |
| adminPass                           | yf9APk2n4JS8                                             |
| config_drive                        |                                                          |
| created                             | 2017-07-13T00:12:35Z                                     |
| flavor                              | m1.small (2)                                             |
| hostId                              | <mhv_uuid>                                               |
| id                                  | <instance_uuid>                                          |
| image                               | vmware_ubuntu_3 (<image_uuid>)                           |
| key_name                            | None                                                     |
| name                                | VMware_instance_3                                        |
| progress                            | 0                                                        |
| project_id                          |<project_uuid>                                            |
| properties                          |                                                          |
| security_groups                     | name='default'                                           |
| status                              | BUILD                                                    |
| updated                             | 2017-07-13T00:12:35Z                                     |
| user_id                             | <user_id>                                                |
| volumes_attached                    |                                                          |
+-------------------------------------+----------------------------------------------------------+

3. Verify that the new instance is running:

$ openstack server show 
+-------------------------------------+----------------------------------------------------------+
| Field                               | Value                                                    |
+-------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig                   | MANUAL                                                   |
| OS-EXT-AZ:availability_zone         | <az_name>                                                |
| OS-EXT-SRV-ATTR:host                | <mhv_name>                                               |
| OS-EXT-SRV-ATTR:hypervisor_hostname | <mhv_name>                                               |
| OS-EXT-SRV-ATTR:instance_name       | instance-0000eeca                                        |
| OS-EXT-STS:power_state              | Running                                                  |
| OS-EXT-STS:task_state               | None                                                     |
| OS-EXT-STS:vm_state                 | active                                                   |
| OS-SRV-USG:launched_at              | 2017-07-13T00:12:40.000000                               |
| OS-SRV-USG:terminated_at            | None                                                     |
| accessIPv4                          |                                                          |
| accessIPv6                          |                                                          |
| addresses                           | network2=<ip_adddress>                                                                      |
| config_drive                        |                                                          |
| created                             | 2017-07-13T00:12:35Z                                     |
| flavor                              | m1.small (2)                                             |
| hostId                              | <mhv_uuid>                                               |
| id                                  | <instance_uuid>                                          |
| image                               | vmware_ubuntu_3 (<image_uuid>)                           |                          |
| key_name                            | None                                                     |
| name                                | VMware_instance_3                                        |
| progress                            | 0                                                        |
| project_id                          | <project_uuid>                                           |
| properties                          |                                                          |
| security_groups                     | name='default'                                           |
| status                              | ACTIVE                                                   |
| updated                             | 2017-07-13T00:12:40Z                                     |
| user_id                             | <user_uuid>                                              |
| volumes_attached                    |                                                          |
+-------------------------------------+----------------------------------------------------------+

Have more questions? Submit a request
Powered by Zendesk