[SOLVED] vps is running,but qm list not found vps

nishuo

New Member
Mar 12, 2020
20
2
3
23
Snipaste_2020-03-12_21-12-16.png
The problem is this. First, I connected the cluster, and the vps of this node disappeared, leaving the previous configuration.

Snipaste_2020-03-12_21-12-24.png

How do I restore the vps configuration file?
 
root@aaex-hk2:/var/run/qemu-server# ls
114.pid 114.qmp 114.vnc 115.pid 115.qmp 115.vnc 116.pid 116.qmp 116.vnc 117.pid 117.qmp 117.vnc 118.pid 118.qmp 118.vnc
root@aaex-hk2:/1tbssd/images# ls
114 115 116 117 118
root@aaex-hk2:/1tbssd/images# cd 118
root@aaex-hk2:/1tbssd/images/118# ls
vm-118-disk-0.qcow2
 
hi,

the VM configuration file disappeared? do you see it in /etc/pve/qemu-server?

what do you get when you run qm config VMID?

also the output of pvecm status could be useful here.
 
he problem is this. First, I connected the cluster, and the vps of this node disappeared, leaving the previous configuration.
Did you try to connect a node with active and configured guests to a existing cluster?
(this is not supported, and all existing guests would disappear from that node .... - see the first note in the chapter of the reference documenation:
https://pve.proxmox.com/pve-docs/chapter-pvecm.html#pvecm_join_node_to_cluster)

* should this be the case you can try (do so in a separate environment (e.g. setup a guest with PVE and work with that) ) to restore the config: the sqlite db for the pmxcfs of a node is backed up before it joins a cluster - check /var/lib/pve-cluster/backup and the reference documentation:
https://pve.proxmox.com/pve-docs/chapter-pmxcfs.html)

I hope this helps!
 
hi,

the VM configuration file disappeared? do you see it in /etc/pve/qemu-server?

what do you get when you run qm config VMID?

also the output of pvecm status could be useful here.
root@aaex-hk2:/etc/pve/qemu-server# ls
114.conf 115.conf
root@aaex-hk2:/etc/pve/qemu-server# qm config 116
Configuration file 'nodes/aaex-hk2/qemu-server/116.conf' does not exist
root@aaex-hk2:/etc/pve/qemu-server#
root@aaex-hk2:/etc/pve/qemu-server# pvecm status
Error: Corosync config '/etc/pve/corosync.conf' does not exist - is this node part of a cluster?
 
Just to be on the safe side - most information for starting a VM is in the commandline - save the output of `ps auxwf` to a file and keep that
 
as said - save the complete output to a file:
Code:
ps auxwf > ps.out

did you find a backup file?
 
ok - as said:
- read the reference documentation on pmxcfs (https://pve.proxmox.com/pve-docs/chapter-pmxcfs.html)
- install a pve instance in a virtual machine
- move the config backup in place (/var/lib/pve-cluster/)
- reboot
- you should find the config files in '/etc/pve'
 
:eek:sorry,my english bad,I don't understand
you mean, move config-1582610889.sql.gz to /var/lib/pve-cluster/ then reboot server?
-> create a virtual machine and install proxmox on it.
-> in the VM, move the config-1582610889.sql.gz to /var/lib/pve-cluster
-> reboot VM
-> you will see the config files in /etc/pve/

from there you can copy them and put them in your actual PVE host

hopefully this helps!
 
  • Like
Reactions: Stoiko Ivanov
-> create a virtual machine and install proxmox on it.
-> in the VM, move the config-1582610889.sql.gz to /var/lib/pve-cluster
-> reboot VM
-> you will see the config files in /etc/pve/

from there you can copy them and put them in your actual PVE host

hopefully this helps!
i do it
root@pve:/var/lib/pve-cluster# cd /etc/pve/
root@pve:/etc/pve# ls
authkey.pub local nodes priv pve-www.key storage.cfg vzdump.cron
datacenter.cfg lxc openvz pve-root-ca.pem qemu-server user.cfg
root@pve:/etc/pve# cd qemu-server
root@pve:/etc/pve/qemu-server# ls
root@pve:/etc/pve/qemu-server#
 
Last edited:
did you reboot after moving the file to /var/lib/pve-cluster ?
 
root@aaex-hk2:/var/run/qemu-server# ls
114.pid 114.qmp 114.vnc 115.pid 115.qmp 115.vnc 116.pid 116.qmp 116.vnc 117.pid 117.qmp 117.vnc 118.pid 118.qmp 118.vnc
root@aaex-hk2:/etc/pve/qemu-server# ls
114.conf 115.conf
root@aaex-hk2:/1tbssd/images# ls
114 115 116 117 118
root@aaex-hk2:/1tbssd/images# cd 118
root@aaex-hk2:/1tbssd/images/118# ls
vm-118-disk-0.qcow2
 
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!