2

How to reset the root password of a VM running inside Proxmox?

There are options like:

  1. GRUB loader method.
  2. Boot into a live ISO .

Etc… But I want the simplest for a Ubuntu VM.

Giacomo1968
  • 58,727

1 Answers1

5

The easiest way to do so if you have access to main Proxmox server node:

For Containers

pct enter <VM ID>

Then just run the below command (in case of Ubuntu).

Confirm that you are root:

whoami

Then reset the password using the below command:

passwd

For VMs (copied from here)

Stop the instance

qm set <VM ID> -serial0 socket

Start the instance, then run this, then login for the win :)

qm terminal <VM ID>