6.2. Setting the root password
Gaining temporary root access
- Method 1: SSH using a key pair. This procedure is run from the RHEV Manager server.
- Download the latest versions of
puttygen.exeto your RHEV Manager server from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
- Use puttygen to generate a new private key.
puttygen.exe. From the top menu, select conversion -> Import key
- Enter the passphrase for this key: mypass
- Click save private key
- Use the private key to connect to the RHEV Hypervisor host.
putty.exe. Enter the IP address of the RHEV Hypervisor host you wish to connect to.
- From the left panel select SSH -> Auth
- Browse to the private key you just generated, click open
- Enter the username root and use the password mypass. Open the SSH connection. You should now have a root shell open on the RHEV Hypervisor host.
- Method 2: Boot into rescue mode. This procedure requires physical access to the RHEV Hypervisor host, and is run from its physical console.
- Reboot the machine and wait for the GRUB prompt. Hit enter to interrupt normal booting.
- Modify the kernel line to boot into rescue mode. To do this, append the string
rescueto the kernel line, separated from the rest of the line with a space character. Once the system boots, you will be dropped to a a single user root shell. The system must be rebooted into multi-user mode after following the instructions below.
Setting the root passwordOnce you have successfully gained root access, you can set the root password for future use.
- Run the command
- Select option #1 Configure authentication
- Select option #2 Toggle SSH password authentication
- Enable SSH password authentication
- Select option #1 Set administrator password
- Enter your new root password
- Select option #3 Return to the Hypervisor Configuration Menu
- Select option #7 Exit Hypervisor Configuration Menu