Is there a way to mount a virtual drive stored in local-lvm to the node shell?

mikeloeven

New Member
Nov 3, 2023
2
0
1
I am a bit new to proxmox or linux in general. I need to pull a log file from a crashed virtual machine problem A if i simply restart the machine the syslog i need gets overwritten. Problem B I cannot find a way to mount or navigate to the VM's VHD from the node shell or otherwise mount and extract the file. Any idea how to access the VHD of an offline VM?
 
You can mount the filesystem on that LVM thin volume and then use it.
Something like:
Code:
mkdir /test
ls -la /dev/pve/
mount /dev/pve/name-of-your-vdisk /test
...do stuff...
umount /test
rmdir /test
But make sure to never mount a VM that is running or you will corrupt its data.
 
Last edited: