Skip to content

Instantly share code, notes, and snippets.

@CodeBrauer
Last active April 17, 2022 09:24
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save CodeBrauer/827ac03eab15215d36aaa773e740ecee to your computer and use it in GitHub Desktop.
Save CodeBrauer/827ac03eab15215d36aaa773e740ecee to your computer and use it in GitHub Desktop.
Mount image (qcow2) from KVM on macOS - fastest way? / Convert qcow2 to access files (EXT4 partition)

If you haven't installed any FUSE yet:

brew tap homebrew/fuse
brew install Caskroom/cask/osxfuse
  1. brew install qemu ext4fuse
  2. qemu-img convert -p -O vmdk snapshot.qcow2 system.vmdk This will take some time...
  3. Download and register for a free licence of VMDK Mounter for Mac® OS X and install it.
  4. Reboot your macOS device.
  5. Mount the vmdk volume by double clicking it.
  6. Mount the partition: ext4fuse "/dev/disk3s2" "/Volumes/kvm-snapshot" (you have to edit it to your disk numbers)
  7. Now you can access it with the terminal.
@YouROK
Copy link

YouROK commented Apr 1, 2022

But this is not mounting, but converting. I can't mount and change disk content

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