Skip to content

Instantly share code, notes, and snippets.

@gilangvperdana
Created October 24, 2022 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilangvperdana/98382539fc9a48579dcfd70e3fa117d4 to your computer and use it in GitHub Desktop.
Save gilangvperdana/98382539fc9a48579dcfd70e3fa117d4 to your computer and use it in GitHub Desktop.
Convert ISO to QCOW2

ISO to QCOW2 Convert

When you run OS with format .iso on baremetal, you must convert it to qcow2 to run on Cloud

Goals

  • Convert from .iso to .qcow2

Convert with Qemu-utils

  • Prepare utils
apt update -y
apt install -y qemu-utils
  • Prepare iso

    • for example you download an .iso image based from Ubuntu
  • Convert it

qemu-img convert -f raw -O qcow2 image.img image.qcow2

Reference

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