Root Password Reset under Cluster enviroment

Mehyl

Active Member
Jul 4, 2018
2
2
41
Greetings this is my first post, I am new to the Linux world and I am inheriting the functions of systems administrator in a small LAN. It only has two servers in cluster using version 4.x I think.

There have been electrical problems and the servers obviously turn off, and I think that due to these electrical problems the file of passwords has been corrupted, since for the last week I could access with the root user to the web interface. But today I said Login Failed and try via SSH with the same result and ultimately via console.

The virtual machines are operative, but I can not access them from the console that is included in each one of them from the web interface

I found a procedure to reset the password for the root user

https://pve.proxmox.com/wiki/Root_Password_Reset

The one that could apply is method 1

And there is another

https://forum.proxmox.com/threads/root-password-reset-proxmox-ve-1-9.10280/

But I doubt that if this procedure is done, the cluster will be affected by the change, causing it to be destroyed or desynchronized

On a server there are approximately 7 virtual machines between Windows and GNU / Linux

In the other I have only two virtual machines

Both servers have the authentication failure of the root user

If the password reset procedure does not affect the Cluster how would it proceed to do it under this type of environment, I mean:

1- The password is reset regardless of the order of the servers and is performed on both servers separately
2- You have to start with the server where the cluster was created and then with the servers added to the cluster
3- Only the procedure is performed on any of the servers and the change is propagated to the rest of the servers

Thank you for your attention, help and response.
 
  • Like
Reactions: BloodyIron
Hi,

if you reset the password the cluster will NOTbe destroyed or desynchronized.
Proxmox VE uses certificates to auth and after a password reset the certs stays the same.

It is enough if you reset one server.
The second one you can login over the first one.
As I tell before the server has exchanged certs so you are able to use ssh from one cluster member to the other without password.
On the second server, you can use "passwd" to set a new root password.
 
Hi Wolfgang

Thanks for you reply and help, I did the procedure for the reset password in one server and I be abled to log in the web interface, from here I just clicked on the second one and I used the Console option, then the passwd command.

Everything goes smooth and now I can configure the existence VMs

Thanks once more for your help, my best wishes for you

P.S. Sorry for my english, long time ago that I don't write in english
 
  • Like
Reactions: BloodyIron

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!