11/28/2023
read 20 minutes

Migrating Your Infrastructure From Hyper-V To 3HCloud

/upload/iblock/104/lbqmjuzdzerhwdnwpap0mwku5xvf1d4l/big_data_processing_opt.jpeg

Contents of Articles:

  1. Introduction
  2. Let’s Go to the Practice
    1. Analysis and planning
    2. Preparing The 3HCloud Environment
    3. Preparation For Linux Distributions
  3. Hyper-V Virtual Machine Conversion
    1. Image Conversion Using V2V Image Converter
    2. The Command Line Converting
  4. Data Transfer And Configuration
    1. To Download The Image Via The Control Panel
    2. To Download An Image With A Volume Over 15 GB
    3. Testing and Verification
  5. Conclusion

Introduction

Organizations strive to optimize their infrastructure, increase flexibility, and improve the efficiency of their servers. Virtualization is necessary to achieve these goals by enabling the creation and management of virtual machines on physical hardware. In this case, migrating infrastructure to the 3HCloud platform from Hyper-V virtual servers is becoming an increasingly popular and reasonable strategy.

So, we will focus on the way of migrating infrastructure from Hyper-V to 3HCloud and consider the advantages and benefits of the transition. We will also write about the necessary steps for the successful implementation of migration and provide recommendations to avoid potential problems.

Let’s Go to the Practice

Let’s consider the data above in detail.

Analysis and planning

The first step in migrating from Hyper-V to 3HCloud is to analyze the existing infrastructure and develop a detailed migration plan. This will help avoid problems during migration.

Preparing The 3HCloud Environment

You need to prepare the 3HCloud environment before starting the migration. Begin by installing the required utilities and programs for your virtual machines to ensure compatibility with the 3HCloud infrastructure.

We use Legacy boot mode by default, but UEFI support is also available. If necessary, we can enable this boot mode for your image.

Let’s consider an example of using the Windows operating system. It’s necessary to install utilities virtio-win-guest-tools.exe (here is the link for the newest version: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/).

Migrating Your Infrastructure From Hyper-V To 3HCloud

  1. Download and immediately launch, agree to the license agreement, and click Install.

    Migrating Your Infrastructure From Hyper-V To 3HCloud

  2. Then check that all modules are added.

    Migrating Your Infrastructure From Hyper-V To 3HCloud

  3. Launch the installation.

    Migrating Your Infrastructure From Hyper-V To 3HCloud

  4. The program is now ready to use.

    Migrating Your Infrastructure From Hyper-V To 3HCloud

  5. Check its presence in 'Programs and Components' by pressing the Win+R key combination and entering the appwiz.cpl command.

    Migrating Your Infrastructure From Hyper-V To 3HCloud
    Migrating Your Infrastructure From Hyper-V To 3HCloud

Thus, the soft installation process is complete.

Preparation For Linux Distributions

Install the utilities and add them to the startup. Below are the command options for different distributions.

  1. Debian:
    $ sudo apt install -y acpid cloud-init qemu-guest-agent cloud-guest-utils && \ systemctl enable qemu-guest-agent acpid

    Migrating Your Infrastructure From Hyper-V To 3HCloud
    Migrating Your Infrastructure From Hyper-V To 3HCloud

  2. RHEL Yum Package Manager:
    $ sudo yum install -y acpid cloud-init qemu-guest-agent cloud-utils-growpart && \ systemctl enable qemu-guest-agent && echo "NOZEROCONF=yes" >> /etc/sysconfig/network && systemctl enable acpid

    Migrating Your Infrastructure From Hyper-V To 3HCloud
    Migrating Your Infrastructure From Hyper-V To 3HCloud

  3. RHEL DNF Package Manager:
    dnf install -y acpid cloud-init qemu-guest-agent cloud-utils-growpart && \ systemctl enable qemu-guest-agent && echo "NOZEROCONF=yes" >> /etc/sysconfig/network && systemctl enable acpid

Hyper-V Virtual Machine Conversion

We will proceed with the process of converting virtual machines from Hyper-V to a 3HCloud-compatible format after preparing the 3HCloud environment. In this phase, we will explore the tools and methods that can be used for this conversion, as well as discuss possible problems and recommendations for a successful conversion.

Image Conversion Using V2V Image Converter

You can either export an image of your virtual machine or navigate to the folder where this image is stored. In this guide, we will utilize the Windows program “V2V Image Converter”. StarWind V2V Image Converter is a utility designed for converting virtual disk files. It is free, but you will need to send a request to the developer's email to obtain the software.

All the next actions are the same when converting an image of any OS.

Migrating Your Infrastructure From Hyper-V To 3HCloud

Migrating Your Infrastructure From Hyper-V To 3HCloud

Migrating Your Infrastructure From Hyper-V To 3HCloud

  1. Launch the program and click Next.

  2. Select the VM image that needs to be converted.

    Migrating Your Infrastructure From Hyper-V To 3HCloud

  3. Set the RAW format and click Next.

    Migrating Your Infrastructure From Hyper-V To 3HCloud

  4. The conversion process has started.

    Migrating Your Infrastructure From Hyper-V To 3HCloud

  5. As a result, the image was successfully converted.

    Migrating Your Infrastructure From Hyper-V To 3HCloud

Next, we have two options to choose from:

  • send an image in .img format to 3HCloud support;
  • take advantage of the power of PowerShell and translate the image from img to raw using the command listed below:
    Rename-Item -Path 'X:\..\VM\WS2022\Disc.img' -NewName 'X:\..\VM\WS2022\Disc.raw'
    where X is your disk with the VM image.

The Command Line Converting

You can also convert an image using the qemu-img command line tool to manage disk images. If the program is already installed, you can quickly convert the image to the raw format.

If the installation is still required, then this can be done using the following command:

$ sudo apt install qemu qemu-kvm libvirt-daemon libvirt-clients bridge-utils virt-manager && \ systemctl enable libvirtd

Then you can immediately start the process of converting your image to raw format:

  1. Command for Debian:
    $ sudo apt install qemu-utils
  2. Command for RHEL:
    $ sudo yum install qemu-img
    $ sudo qemu-img convert -f vpc -O raw Way to the image/ws2022.vhd Way_to_the_image /ws2022.raw

    Migrating Your Infrastructure From Hyper-V To 3HCloud

Data Transfer And Configuration

You have to transfer the data and configure them in the 3HCloud environment after converting the virtual machines.

To Download The Image Via The Control Panel

This method will only work if your image is up to 15 GB.

  1. The process begins with the uploading of the image to your personal account.

    Migrating Your Infrastructure From Hyper-V To 3HCloud

    Migrating Your Infrastructure From Hyper-V To 3HCloud

    Migrating Your Infrastructure From Hyper-V To 3HCloud

    Migrating Your Infrastructure From Hyper-V To 3HCloud

    Migrating Your Infrastructure From Hyper-V To 3HCloud

  2. Once the upload process is complete, let's proceed to creating a server based on the new image. Ensure that the operating system starts without problems after the migration.

    Migrating Your Infrastructure From Hyper-V To 3HCloud

    Migrating Your Infrastructure From Hyper-V To 3HCloud

To Download An Image With A Volume Over 15 GB

In this case, a suitable option would be to upload your image to the 3HCloud object storage. Alternatively, you can use your own storage. Below is an example of self-loading an image into object storage:

  1. Create the EC2 key.
  2. Create a container.
  3. Load your image into the container.

You can upload the image using a browser through your personal account, or use S3-browser.

  1. You can upload the image using a browser through your personal account or use S3-browser. Instructions for Linux are provided in the manual.
  2. For Windows and Mac OS, use the Cyberduck program for downloading. Ensure you have the EC2 keys created in the 'Object Storage' – 'Access' section to work with the object storage.

Once you gain access to the object storage, you can upload the image to your personal account. Consequently, you will be able to create a virtual server based on this image.

Note: You will need to name the region where you want to fill in the image.

Go to the 'Cloud' section - 'My images'.

Click the 'More Details' button. So, you are redirected to the description of your image. You can create a server here.

It is important to choose a volume equal to or greater than the actual volume of your image while creating a system disk.

Then, you can log in to the server via the 'Console' button, and if the network was initially configured via DHCP, you can immediately connect to your server via RDP or SSH.

Testing and Verification

It is important to conduct testing and verification to make sure that all virtual machines are working properly in the new 3HCloud environment. If something does not work correctly, you can contact us and we will try to resolve the issue immediately.

Conclusion

Migrating IT infrastructure to the 3HCloud can provide many benefits to an organization. Here are some of them:

  1. Flexibility and scalability. 3HCloud provides the ability to make the infrastructure wider depending on the needs of the company. You can easily add or remove resources, such as virtual machines, storage, or networks, according to the requirements of your business.
  2. Resource management. 3HCloud provides a centralized resource management interface that facilitates the control and management of your IT infrastructure. You can automate the deployment and management of virtual machines, resource monitoring, network configuration, and other operations, which reduces administration time.
  3. The support team. Our technical support team is a group of professionals who are not only deeply versed in the subject area but really help users. 

These are just some of the benefits of moving infrastructure to the 3HCloud. However, it is recommended to conduct a detailed analysis of requirements, planning, and testing to make sure that the selected infrastructure meets your needs and goals of the company before making a decision on migration.


News
28 March 202403/28/2024
read 1 minuteread 1 min
3HCloud Brings GPU Servers to Miami
28 December 202312/28/2023
read 2 minutesread 2 min
New features and tariffs