How to reset the root password of a VM running inside Proxmox?
There are options like:
- GRUB loader method.
- Boot into a live ISO .
Etc… But I want the simplest for a Ubuntu VM.
How to reset the root password of a VM running inside Proxmox?
There are options like:
Etc… But I want the simplest for a Ubuntu VM.
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>