How to Access /etc/pve Configs in Rescue Mode?

Nov 19, 2024
13
3
3
Hi! everyone,

I’m currently facing a situation where I need to access the VM/CT configuration files stored in /etc/pve on my Proxmox server, but the server won’t boot normally.

I understand that /etc/pve is a virtual filesystem backed by a SQLite database located at /var/lib/pve-cluster/config.db, and it’s not directly accessible in rescue mode.

My questions are:
  • How can I mount or access /etc/pve from a rescue environment (like a live CD or SystemRescue) to extract VM/CT config files (from /etc/pve/qemu-server/ and /etc/pve/lxc/)?
  • Is there a simple way to recover these configs without fully booting Proxmox?
  • Alternatively, how can I boot Proxmox into rescue or single-user mode to access /etc/pve normally and perform necessary operations?
Thanks in advance for any advice or experiences you can share!

Best regards.
 
Thank you for the link, it’s very helpful for handling the PVE database.

However, my main question is more about whether it’s possible to boot the entire Proxmox system along with all VMs and containers in rescue or debug mode without reinstalling Proxmox — for example using the Proxmox live ISO or by using rescue/debug modes from GRUB.

I want to know if I can start the system and the VMs/CTs in such a mode to recover data or fix issues without performing a full reinstall.

Could you please advise if this is possible or how to do it?

Thanks again for your help!
 
The PVE iso has a rescue mode but without knowing why the server does not boot it's hard to give good advice.