Reset Proxmox Root Password via GRUB

From Notes_Wiki

Home > Debian > Proxmox virtual environment > Reset Proxmox Root Password via GRUB


Reset Proxmox Root Password via GRUB

1. Reboot the Proxmox Server

Restart the server from the terminal or via remote management.

2. Interrupt the GRUB Bootloader

When the GRUB menu appears, quickly press 'e' to edit the default boot entry.

3. Modify the Boot Parameters

Locate the line starting with linux (e.g., linux /boot/vmlinuz...).

At the end of this line, append:

init=/bin/bash

Example full line (for reference):

linux /boot/vmlinuz-5.x... root=ZFS=rpool/ROOT/pve-1 ro quiet splash init=/bin/bash

4. Boot with Modified Settings

Press Ctrl + X or F10 to boot with the modified parameters.

5. Remount Root Filesystem as Read/Write

Once you are at the shell prompt (e.g., bash-5.1#), run:

mount -o remount,rw /

6. Reset the Root Password

Execute the following command:

passwd

Enter and confirm the new root password when prompted.

7. Reboot the System

Try to execute:

exec /sbin/init

If that does not work, force reboot using:

reboot -f

8. Login with New Password

After reboot, you should now be able to log in as root


Home > Debian > Proxmox virtual environment > Reset Proxmox Root Password via GRUB