Skip to content

Instantly share code, notes, and snippets.

@hightemp
Last active February 18, 2024 12:08
Show Gist options
  • Star 22 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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
@creallfluharty
Copy link

When dealing with large virtual hard drives, the qemu-img command has a helpful -p flag to show progress. source

@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