microsoft / azure-vhd-utils

Azure VHD utilities.
Other
96 stars 41 forks source link

Quick question: conversion from VMDK to VHD? #51

Open diwu1989 opened 7 years ago

diwu1989 commented 7 years ago

It looks like https://github.com/Microsoft/azure-vhd-utils/blob/master/vhdcore/writer/vhdWriter.go has the ability to write raw disk blocks into the VHD file.

Assuming that I read a VMDK block by block using the VMware VDDK, would I be able to write block by block into a equally sized fixed VHD file via the API in this library?

If I upload that manually written VHD to Azure, would it be bootable as the boot device? Any caveats to manually creating a bootable VHD image?

Thanks in advance