user1485841
user1485841

Reputation: 31

Linux KVM .img converting to Hyper-V .vhd

I have a Linux server with KVM virtualitation, and a new Windows Server with Hyper-V virtualization.

I would like migrate my KVM images to the Windows Hyper-V...

How can is converting kvm image to hyper-v vhd?

Upvotes: 0

Views: 10376

Answers (2)

Igor Belyaev
Igor Belyaev

Reputation: 11

There are inaccuracy in the question and in the answer. VHD is a image format for VirtualPC. There is VHDX format for Hyper-V. For migration to Hyper-V a right command will be for example:

qemu-img convert -f qcow2 something.img -O vhdx something.vhdx

Upvotes: 1

barjomet
barjomet

Reputation: 477

You can do it with with qemu-img:

qemu-img convert -f raw -O vpc something.img something.vhd

or

qemu-img convert -f qcow2 -O vpc something.img something.vhd

Read this to get more info about supported virtual disk images formats.

Upvotes: 4

Related Questions