How to enable root user on Redhat Hypervisor ?

Redhat Enterprise virtualization’s core part is Redhat Hypervisor. I have never been worked such a long  hours to get/recover the root password on any Unix/Linux operating system. Even i have recovered VMware ESXi’s root  password in quick time. During the Redhat Enterprise virtualization hypervisor’s installation, we will be just setting the user “admin” password. But where can i find the root password for RHEV-H ? I have referred the so many support articles from redhat and those just guides the way to reset the root password if its already set. In my case, i suppose to set new one. How can   i do it ?

I have  booted the Redhat Hypervisor(RHEV-H) in rescue mode and tried to reset the root password on the shell(as root) .But i was getting error like “authentication token manipulation error”. some of the support article guides that if the user is locked, then you can’t reset the account password but that applies only to normal user. But in my case , i am unable to unlock it .(“password -s root” shows still user is locked).System shows that hypervisor is using different authentication.Don’t know what it is !!! (Could be RSA key based)

Then my mind started working like typical Unix admin and edited the shadow/password files manually and end up with corrupted system.LOL ! It’s Okay since i am playing with my LAB systems. I have just re-ran the REHV-H setup to bring it up.

Finally i just woke up and found the way of setting the root password for RHEV-H. Its very simple ..

1. Just login to RHEV-H using “admin” account.

RHEV-H console screen
RHEV-H console screen

2.Navigate it to oVirt-engine.

Setting root password

3.Use the arrow keys to navigate to “password” section and set the new password for root user.

Setting root password
Setting root password

4.Save & Register.

5. Open a putty session with RHEV-H . Just login as root user with password which you have set in the oVirt Engine configuration.

[root@uarhevh1 ~]# uname -a
Linux uarhevh1 2.6.32-431.29.2.el6.x86_64 #1 SMP Sun Jul 27 15:55:46 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@uarhevh1 ~]# id
uid=0(root) gid=0(root) groups=0(root),498(sfcb) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@uarhevh1 ~]# tty
[root@uarhevh1 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/live-rw   1.5G  456M  1.1G  31% /
                      7.8M  2.4M  5.1M  32% /config
tmpfs                 2.9G     0  2.9G   0% /dev/shm
[root@uarhevh1 ~]# cat /etc/redhat-release
Red Hat Enterprise Virtualization Hypervisor release 6.5 (20140821.1.el6ev)
[root@uarhevh1 ~]#

Not sure why Redhat didn’t use  “root” in the oVirt-Engine screen.Could be Security reason? Who knows !!!

Share it ! Comment it !! Be Sociable !!!


One comment

  1. Hi ,

    Thanks ..