Lost all vm .conf files

Inoyat

New Member
Jul 2, 2025
2
0
1
All conf files are lost, but vms still running.
Is there a way to restore these files (other than manually creating them again)?

Code:
pveversion
pve-manager/8.4.1/2a5fa54a8503f96d (running kernel: 5.11.22-5-pve)
 
If all the VM configuration files in /etc/pve/qemu-server/ are lost but the VMs are still running, there's still hope to recover their configuration.

You can extract most of the configuration details using this command:
Bash:
ps aux | grep /usr/bin/kvm

The output will show the full launch arguments for each currently running VM. From that, you can manually reconstruct the <id>.conf files by parsing values like:
  • VM ID (-id)
  • VM name (-name)
  • CPU and memory (-smp, -m)
  • Disk and network devices (-drive, -device, -netdev)
  • Boot order and BIOS type (-boot, -drive if=pflash)
  • Storage paths (e.g., Ceph volumes, local LVM, etc.)