2024-02-29 Mount LVM Virtual Machine Disk Image From External Drive WesleyBallard.com 01: Install lvm2 sudo apt install lvm2 02: Load the necessary modules as root: sudo modprobe dm-mod 03: Scan your system for LVM volumes and identify in the output the volume group name that has the name of your volume. It will likly be listed as an exported volume group. sudo vgscan 04: Import the LVM if it is exported sudo vgimport VOLUME-GROUP-NAME 05: Activate the volume: sudo vgchange -ay VOLUME-GROUP-NAME 06: List the logical volumes and find the name of the disk you want. sudo lvs 08: Use 'dd' to copy the logical disk image to an iso file. Doing this step is optional. sudo dd if=/dev/pve/vm-114-disk-0 of=~/Downloads/vm-114-disk-0.iso 09: Create a mount point for the disk image. sudo mkdir ~/lvmmount 10: Use the 'guestmount' application to mount the root filesystem inside the iso. sudo guestmount -a ~/Downloads/vm-114-disk-0.iso -i --ro -o allow_other ~/lvmmount/ 11: Umount the VM Disk Image sudo guestunmount ~/lvmmount 12: Set the volume group to not active sudo vgchange -an VOLUME-GROUP-NAME 13: Export the LVM sudo vgexport VOLUME-GROUP-NAME