Skip to content

Instantly share code, notes, and snippets.

@hightemp
Last active February 18, 2024 12:08
Show Gist options
  • Save hightemp/11196851 to your computer and use it in GitHub Desktop.
Save hightemp/11196851 to your computer and use it in GitHub Desktop.
Convert .vdi to .img
vboxmanage clonehd image.vdi image.img --format RAW
qemu-img convert -f vdi -O raw image.vdi image.img
vbox-img convert --srcfilename image.vdi --stdout --srcformat VDI --dstformat RAW image.img
@chengangc
Copy link

any one line/command in the sh script will be a completed command to convert vdi to raw/img, Right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment