Just a quick and short post about recovering root password of an Oracle VM for X86 Paravirtualized Virtual Machine (PVM). The process is quite straight and consists of:
The Virtual Machine name on which I'm willing to recover the password is stiv-vm1
- locate the VM ID, Repository name and Physical Server which hosts the VM
- manually boot the VMs
- From Pygrub proceeds as we'll do on a Physical system (boot in single User Mode -either by appending S to the kernel boot parameters or using rd.break on Systemd-).
The Virtual Machine name on which I'm willing to recover the password is stiv-vm1
1. Get that Paravirtualized VM ID, Repository name and Physical Server Name(knowing that the VM Name is stiv-vm1):
2. Get On the Physical node, and change directory to get to where this VM configuration is located, the start that VM using xm command.
This is as simple as : cd /OVS/Repositories/<repo_id>/VirtualMachines/ <vm_id>
For stiv-vm1 that would be,
3. To have OVM Manager reflecting the new state of the VM (from stopped to started), Restart OVMM Service on the Manager and check the VM Console.
Already thought I've lost the access to my VM, thanks!
ReplyDelete