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.
@tofutim
Copy link

tofutim commented Feb 21, 2018

Did you try qcow2-fuse? I wonder if there is a way to mount it so that it can be remounted by qemu after you are done. (Looking for a quick cross-compiling solution that can reuse libraries obtained using sudo apt-get in rpi)

@brandonros
Copy link

it isn't clear if in 2020 ext4fuse supports writing from Mac OS X. does it, or is it read only?

@CodeBrauer
Copy link
Author

CodeBrauer commented Jun 3, 2020

3 years ago I think I didn't try to write on that disk. I wanted only to access the data.
I got a .qcow2 as a backup file from a virtual server and only needed to extract some files from there

@KarlBaumann
Copy link

VDMK Mounter is discontinued, I was able to mount vmdk using VirtualBox

@neomafo88
Copy link

VDMK Mounter is discontinued, I was able to mount vmdk using VirtualBox

brew install --cask paragon-vmdk-mounter

@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