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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!