M
M
martensit2015-12-26 17:46:18
Virtualization
martensit, 2015-12-26 17:46:18

How to migrate Windows system from Hyper-V VDS to KVM VDS of another host?

How to migrate Windows Server 2012 system from Hyper-V VDS to KVM VDS of another host? Transferred the VHD of the system to a new hoster - says the transfer failed

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Kozhin, 2015-12-26
@martensit

I did a similar operation, only in the opposite direction (from KVM to Hyper-v). For your case, the algorithm is as follows:
Make a VHD image using the disk2hvd utility, or for a VHDx virtual machine, run in PowerShell:
copy the VHD to the new server, run the command:
This image can be used for virtual machines on KVM.
Alternatively, you can convert VHD to the so-called Raw format.
and make an LVM for the virtual machine, where you load the data from the resulting image into Raw.
The most difficult thing for me was to upload a 30-60 GB file from Amazon to a server in the Russian Federation without violating its consistency. After several unsuccessful attempts with ftp, http and sftp, I used the BitTorrentSync program: https://www.getsync.com

Y
Yaroslav_kh, 2020-03-03
@Yaroslav_kh

Konstantin Kozhin tell me the conversion command for KVM on Hyper-v
If I convert the vm-103-disk-0.qcow2 file to windows using the qemu-img.exe command convert -f qcow2 -O vhdx "C:\vm\vm-103 -disk-0.qcow2" C:\vm\103.vhdx then when starting Hyper-v it says "The requested operation could not be completed due to a virtual disk system limitation. Virtual hard disk files must not be compressed or encrypted and must not be sparse"
If you take the converted 103.vhdx and pull it into windows on the qemu-system-x86_64 shortcut, then everything starts. What am I doing wrong?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question