VirtualBox VBoxManage Windows Path:
c:\Program Files\Oracle\VirtualBox\VBoxManage.exe
Convert raw to VHD:
VBoxManage.exe convertfromraw image.raw image.VHD –format VHD
Usage:
VBoxManage convertfromraw filename outputfile
--format [VDI|VMDK|VHD]
Clone VHDX file to raw:
VBoxManage.exe clonemedium disk image.VHDX image.raw –format raw
Usage:
VBoxManage clonemedium disk inputfile outputfile
--format [VDI|VMDK|VHD|RAW]