Skip to content

Instantly share code, notes, and snippets.

@dunderrrrrr
Created January 14, 2022 18:55
Show Gist options
  • Save dunderrrrrr/a64aa1ead1cb00df182ce9af381db2b8 to your computer and use it in GitHub Desktop.
Save dunderrrrrr/a64aa1ead1cb00df182ce9af381db2b8 to your computer and use it in GitHub Desktop.

If you need to mount a VMDK-file and browse around.
You will need guestmount. My VMDK is a linux based disk.

Installation

guestmount is contained in following packages per distro:

Ubuntu: libguestfs-tools
OpenSuse: guestfs-tools
CentOS / Fedora: libguestfs-tools-c

$ sudo apt install libguestfs-tools

Usage

You may need to replace /dev/sda1 depending on your vmdk.

$ sudo /mnt/vmdk
$ sudo guestmount -a disk-flat.vmdk --ro /mnt/vmdk -m /dev/sda1
$ sudo ls /mnt/vmdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment