Error 500: hostname lookup 'pve2' failed - failed to get address info for: pve2: Name or service not known

NE78

Member
Aug 2, 2022
38
3
8
I built a second PVE and named it pve2; it's now the primary. I had some VMs that I want to trash but can't. I get the following:
Error 500: hostname lookup 'pve2' failed - failed to get address info for: pve2: Name or service not known
/etc/hosts
Code:
GNU nano 5.4                                              /etc/hosts                                                       
127.0.0.1 localhost.localdomain localhost
10.20.20.5 pve pve.network.lan

Code:
root@pve:~# hostnamectl status
   Static hostname: pve

How can I resolve this?

Thank you!
 
  • Like
Reactions: riccardomorelli164
I would add the new node into DNS and/or hosts file

Note: The hosts should be as the following:

Code:
127.0.0.1 localhost.localdomain localhost
10.20.20.5 pve.network.lan pve
 
This is the only Node now, the hosts file currently shows what you had suggested.
 
What I did to fix:
rm -rd /etc/pve/nodes/pve2

There was no data in there on those VMs.
 
  • Like
Reactions: Moayad

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!