Answer the question
In order to leave comments, you need to log in
How to reset the root password of a Linux VM on Proxmox?
There is an Ubuntu VM that is running on Proxmox, the root password is lost. Only the way for containers or the way to hold shift when starting the machine is googled. How to get into boot options? Or are there other ways?
Answer the question
In order to leave comments, you need to log in
Boot from Unintu live cd, mount virtual hard disk partition.
Edit /etc/passwd then /etc/shadow
More details here https://www.novell.com/coolsolutions/trench/15629.html
You cut the disk from the virtual machine to another and change the password to the desired one, then the disk back
and google "how to reset the Linux password" is not fate?
.. with the ability to access the disk (disk image), everything is simply ridiculous
Just like any other linux - exit to the boot menu, add "single" or "emergency" to the command line to start the bucket, mount the files, if not mounted, change the password.
Or (which is faster) - booting from the LiveCD image, mounting the root of the machine, replacing the hash in /etc/shadow with one that is known in advance.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question