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.)