[SOLVED] Recover running machines config after joining cluster

Ilanh

New Member
Feb 22, 2016
5
0
1
54
Hi

In Proxmox 4, I added a node with 'pvecm add -force' to an existing cluster.
There were 2 QEMU VMs running on the added node.
Currently the VMs are running but are not present in PVE Manager.

The config files are gone but I have a backup of the VMs, I don't want to restore VMs because they are running and data is being updated to existing disk images.
BTW running VMs have same ID as existing VMs in cluster.

Questions:
Is there a known procedure to recover configuration files without backup after joining a cluster?
Should I restore the VMs, shutdown KVM instances, and replace disk images for restored config?
Is it possible to extract just the conf file from the vma.lzo files?

Thanks in advance
 
there is:
Code:
pvesm extractconfig <volume>

where volume is your backup
 
pvesm extractconfig was not helpfull:
ERROR: unknown command 'extractconfig'

but after:
lzop -x ../dump/vzdump-qemu-120-2016_11_28-02_46_47.vma.lzo
vma extract vzdump-qemu-120-2016_11_28-02_46_47.vma outdir

Now I have the:
qemu-server.conf

do I just copy the file to /etc/pve/nodes/pm04/qemu-server/ as a new-id.conf and it will appear in PVE Manager?
 
for whom it may concern,

It did work,
since I had VM id 103
qemu-server.conf was copied to /etc/pve/nodes/pm04/qemu-server/1031.conf
to be sure I also renamed
/var/lib/vz/images/103 to /var/lib/vz/images/1031
/var/lib/vz/images/1031/vm-103-disk-1.qcow2 to /var/lib/vz/images/1031/vm-1031-disk-1.qcow2
and updated in /etc/pve/nodes/pm04/qemu-server/1031.conf respectfully.

a refresh of PVE Manager page was required and the VM appeared.

All this was done on a powered off VM for proof of concept, I'll shut down the production VMs tonight and do the same

Thanks, you have a wonderful product.
 

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!