Admin-Ahead Community

Linux => General Linux => Topic started by: nidhinjo on March 10, 2018, 05:34:05 pm

Title: How to reset the Root password for th Xen VPS
Post by: nidhinjo on March 10, 2018, 05:34:05 pm

 If you guys ever face root login issue with Xen VPS. The below steps will help you to resolve the same,

1)First Stop the container using command or through solusvm

2)Secondlyfind 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.

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