VK Cloud logo
Updated at April 15, 2024   08:50 AM

Hyper-V VM Migration to VK Cloud

1. Check the possibility of migration

The Hyper-V virtual machine must meet the following requirements:

  • The VM operating system has a 64-bit architecture.
  • VM uses BIOS emulation.
  • The current user has administrator rights.
  • At least one disk is connected to the VM.

2. Prepare the VM for migration

  1. Check availability of VirtIO drivers in the system.

  2. Check availability QEMU Guest Agent:

    systemctl status qemu-guest-agent

    If necessary, install QEMU Guest Agent.

3. Export the virtual machine

  1. Stop the VM.
  2. Start the Hyper-V Manager.
  3. Right-click on the desired VM and select Export.
  4. Select where to place the VM files and click Export.

4. Import the VM image to VK Cloud

To load a VM image, use the OpenStack CLI to avoid possible errors when processing large files by the web interface.

  1. Make sure that OpenStack client is installed and authenticate to the project.

  2. Convert the resulting export file .vhdx to RAW format.

  3. Upload the file to an existing VK Cloud project:

    openstack image create --private --container-format bare --disk-format raw --property store=s3 --file <file_path.raw> <image name>

    If the VM needs to support backup, upload the file .raw indicating the metadata of the presence of a guest agent:

    openstack image create --private --container-format bare --disk-format raw --file <file_path.raw> --property hw_qemu_guest_agent=yes --property store=s3 --property os_require_quiesce=yes <image name>
  4. Check the image download in personal account VK Cloud in section Cloud Computing → Images or via CLI:

    openstack image list

    The image should appear in the list and have the status ACTIVE.