hostname changed missing VMs

almiller

Member
Dec 1, 2020
17
0
6
58
I changed the hostname & IP of my proxmox ve 8.2.2 and updated the SSL cert but now all my VMs are missing.

The cert is now valid and I can connect to the UI via https.

I probably just messed up the links under /etc/pve but I'm confused where the files need to be.
I backed up everything to /root/backup/pve which contains this:

Code:
root@proxmox ~ # ls -l  /root/backup/pve/
total 56
-rw-r----- 1 root root   83 Nov 20 17:54 lrm_status
-rw-r----- 1 root root   83 Nov 20 17:54 lrm_status.tmp.2115
-rw-r----- 1 root root    0 Nov 20 17:54 lrm_status.tmp.2133
-rw-r----- 1 root root    0 Nov 20 17:54 lrm_status.tmp.2204
-rw-r----- 1 root root   83 Nov 20 17:54 lrm_status.tmp.2485
-rw-r----- 1 root root   83 Nov 20 17:54 lrm_status.tmp.2605
-rw-r----- 1 root root   83 Nov 20 17:54 lrm_status.tmp.3446
drwxr-xr-x 2 root root 4096 Nov 20 17:54 lxc
drwxr-xr-x 2 root root 4096 Nov 20 17:54 openvz
drwx------ 2 root root 4096 Nov 20 17:54 priv
-rw-r----- 1 root root  240 Nov 20 17:54 pveproxy-ssl.key
-rw-r----- 1 root root 2846 Nov 20 17:54 pveproxy-ssl.pem
-rw-r----- 1 root root 1675 Nov 20 17:54 pve-ssl.key
-rw-r----- 1 root root 1789 Nov 20 17:54 pve-ssl.pem
drwxr-xr-x 2 root root 4096 Nov 20 17:54 qemu-server
-rw-r----- 1 root root  384 Nov 20 17:54 ssh_known_hosts

My /etc/pve has these links that point to nodes/proxmox
Code:
root@proxmox /etc/pve # ls -l  |grep nodes
lrwxr-xr-x 1 root www-data    0 Dec 31  1969 local -> nodes/proxmox
lrwxr-xr-x 1 root www-data    0 Dec 31  1969 lxc -> nodes/proxmox/lxc
drwxr-xr-x 2 root www-data    0 May 26  2019 nodes
lrwxr-xr-x 1 root www-data    0 Dec 31  1969 openvz -> nodes/proxmox/openvz
lrwxr-xr-x 1 root www-data    0 Dec 31  1969 qemu-server -> nodes/proxmox/qemu-server

But in /etc/pve/nodes/proxmox I have this
Code:
root@proxmox /etc/pve/nodes/proxmox # ls
lrm_status  lxc  openvz  priv  pve-ssl.key  pve-ssl.pem  qemu-server

and this in /etc/pve/nodes/proxmoxqemu-server
Code:
root@proxmox /etc/pve/nodes/proxmox # ls qemu-server/
lrm_status           lrm_status.tmp.2204  lrm_status.tmp.3446  priv              pve-ssl.key      pve-ssl.pem.ORG
lrm_status.tmp.2115  lrm_status.tmp.2485  lxc                  pveproxy-ssl.key  pve-ssl.key.ORG  ssh_known_hosts
lrm_status.tmp.2133  lrm_status.tmp.2605  openvz               pveproxy-ssl.pem  pve-ssl.pem

That looks messed up to me:

Where should the lxc openvz priv sub-directories be?
I see them in /etc/pve/nodes/proxmox and in /etc/pve/nodes/proxmox/qemu-server
 
Nevermind, I got it working again.

/etc/pve/nodes only has 1 folder now which is the hostname of my standalone node. "proxmox"

Code:
root@proxmox /etc/pve/nodes # ls
proxmox

And the proxmox folder has this
Code:
root@proxmox /etc/pve/nodes/proxmox # ls
lrm_status  lxc  openvz  priv  pveproxy-ssl.key  pveproxy-ssl.pem  qemu-server
root@proxmox /etc/pve/nodes/proxmox # ls lxc/
109.conf  999.conf
root@proxmox /etc/pve/nodes/proxmox # ls qemu-server/
100.conf  102.conf  104.conf  106.conf  108.conf  111.conf  401.conf  403.conf  902.conf  997.conf
101.conf  103.conf  105.conf  107.conf  110.conf  400.conf  402.conf  404.conf  903.conf  998.conf

And my containers and vms are working again.
Screenshot 2024-11-20 at 7.05.39 PM.png
 
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!