Categories

Saturday 6 April 2013

How to reset Xen Root password if it is not changing from SolusVM control Pannel

Hello,

  Some times One of the Xen VPS became in accessibe thriough ssh and we are not able to change the Root password through SolusVM. Then please follow the steps mentioned below to reset the root password.

1)First Stop the container using command(xm shutdown CTID) or through solusvm
2)Secondly find the the the Xen image location  of the VPS which is /dev/mapper/xen-vm369_img(example)
3)create a directory name test and then mount the image to it using command
 mount /dev/mapper/xen-vm369_img /test
4)then change the root environment to test using the command
 chroot /test
5)Now the root environment will be same as that of Xen VPS which we have mounted
6)Then change the root password of root using passwd command.
passwd root
7)Then exit from the root environment by typing the command exit and unmount the /test directory using umount /test
8)Reboot the server in solusvm

Now you will be able to ssh into the server with the new password

Regards
Syamkumar.M 

No comments:

Post a Comment

Ad