Зачем конвертировать OVA в VHD?
An OVA bundles a VM descriptor and a VMDK virtual disk into a single TAR archive. VHD is Microsoft's virtual disk format used by Hyper-V and Azure. Converting allows a VM exported from VMware or VirtualBox to run under Hyper-V, which cannot import OVA directly and requires a standalone .vhd or VHDX disk.
Способы конвертации OVA в VHD
VirtualBox OPEN-SOURCE
Import the .ova via File > Import Appliance, note the .vmdk path in Settings > Storage, then run VBoxManage clonehd disk.vmdk disk.vhd --format VHD; use --format VHDX for the newer Hyper-V format.
qemu-img OPEN-SOURCE
Extract the .vmdk from the OVA with tar -xf machine.ova, then run qemu-img convert -f vmdk disk.vmdk -O vpc disk.vhd; use -O vhdx for VHDX output.
Программы, которые конвертируют OVA
Об этих форматах
Файл OVA - это пакет из одного файла, содержащий полную виртуальную машину: её конфигурацию оборудования и один или несколько виртуальных жестких дисков, объединенных в один архив TAR. Его…
Открыть детали .OVA →Файл VHD - это полный образ жесткого диска, хранящийся в виде одного файла: таблица разделов, файловая система и зачастую полноценная операционная система. В Windows его можно смонтировать…
Открыть детали .VHD →Качество и на что обратить внимание
- No tool does a single-click OVA-to-VHD conversion - the VMDK disk inside the OVA must be extracted and re-encoded separately.
- VMware sometimes splits large VMDK files into multiple extents; VBoxManage handles these correctly.
- To get VHDX (the newer Hyper-V format) instead of VHD, use
--format VHDXwith VBoxManage or-O vhdxwith qemu-img.
Часто задаваемые вопросы
Can Hyper-V import an OVA file directly?
Do I need to start the VM in VirtualBox before exporting?
VBoxManage clonehd without ever starting the VM.What is the difference between VHD and VHDX?
--format VHDX or -O vhdx to produce VHDX.