Hi,
I'm struggling to recover an Ubuntu 20..04 LTS VM that I have running on a Proxmox 8.3.3 system. I'm trying to reboot the VM into single user mode so that I can repair the root password (that's been lost). However, given the way that Ubuntu boots as a VM, I can't catch it with an escape in the virtual console.
Is there a good way to force an Ubuntu VM to reboot into single user mode on Proxmox? I know in GRUB you can do the "init=/bin/bash" trick but that's not applicable here. The VM is DOA at the moment so it doesn't matter about how many times it's rebooted or messed with. Worst case, I'll rebuild from scratch but this feels like something that would be useful to know.
Added
---------
Okay, so it looks like a qemu launch with --append="init=/bin/bash" as an additional argument would do this. Is there a way to add this to the VM config file and/or a recommended way to do a one-off launch with this added?
Cheers
Scott...
I'm struggling to recover an Ubuntu 20..04 LTS VM that I have running on a Proxmox 8.3.3 system. I'm trying to reboot the VM into single user mode so that I can repair the root password (that's been lost). However, given the way that Ubuntu boots as a VM, I can't catch it with an escape in the virtual console.
Is there a good way to force an Ubuntu VM to reboot into single user mode on Proxmox? I know in GRUB you can do the "init=/bin/bash" trick but that's not applicable here. The VM is DOA at the moment so it doesn't matter about how many times it's rebooted or messed with. Worst case, I'll rebuild from scratch but this feels like something that would be useful to know.
Added
---------
Okay, so it looks like a qemu launch with --append="init=/bin/bash" as an additional argument would do this. Is there a way to add this to the VM config file and/or a recommended way to do a one-off launch with this added?
Cheers
Scott...
Last edited: