How to create VHD disk image from a Linux live system?


Within Linux you can use qemu-img or vhd-util

On Ubuntu:
qemu-img is part of the qemu-utils package
vhd-util is part of the the blktap-utils package.

I have not personally created VHD images, so you should test it out first.

qemu-img example:

qemu-img convert -O vpc /dev/sda /path/to/image.vhd