HostOnNet Blog

Convert KVM, VMWare virtual machine to Hyper-V

Looking for Linux Server Admin or WordPress Expert? We can help.

QEMU disk image utility (qemu-img) can be used to convert virtual machine disk from one format to another.

QEMU is part of Linux KVM virtual machine.

To convert KVM Virtual machine image to Hyper-V format, run

qemu-img convert -f qcow2 “kvm-virtal-machine.img” -O vhdx -o subformat=dynamic “hyperv-virtual-machine.vhdx”

To convert VMware image to Hyper-V

qemu-img convert -f vmdk "vmware-virtal-machine.vmdk” -O vhdx -o subformat=dynamic hyperv-virtual-machine.vhdx”

Create A Virtual Machine Image

To create a 10 GB virtual machine image with qcow2 format, run

qemu-img create -f qcow2 /home/virt/images/del/disk.img 10G

Disk image with 10 GB size will be created at /home/virt/images/del/disk.img.

Posted in Virtualization

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.