Este contenido no está disponible en el idioma seleccionado.
6.2. Setting the root password
By default, the root login and password are disabled on RHEV Hypervisors for security reasons. During unattended installs, there is no way to override this and set the root password at install time. In some circumstances, however, having root access to the RHEV Hypervisor host is necessary for debugging and support. To work around this, administrators must first gain temporary root access to the RHEV Hypervisor host, then set the 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
putty.exe
andputtygen.exe
to your RHEV Manager server from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html - Use puttygen to generate a new private key.
- Run
puttygen.exe
. From the top menu, select conversion -> Import key - Select
C:\Program Files\RedHat\RHEVManager\Service\ca\keys\rhevm.pem
- Enter the passphrase for this key: mypass
- Click save private key
- Use the private key to connect to the RHEV Hypervisor host.
- Run
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
rescue
to 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 password
Once you have successfully gained root access, you can set the root password for future use.- Run the command
setup
- 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