Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Need help on resetting root password of a CentOS which is a guess OS (domU) in XEN. I already tried to get to grub but it doesn't display or maybe using a different grub (pygrub). Thanks in advance.

share|improve this question
    
Do you have control of the Dom0? –  fukawi2 Apr 15 '13 at 4:21
    
Please post the DomU-configuration. What XEN-Server ist this, which CentOS-major version, how is the DomU disk configured? –  Nils Apr 17 '13 at 10:42

2 Answers 2

up vote 2 down vote accepted

Shut down the guest VM, mount its disk on another VM that you have access to, then manually change the guest's /etc/shadow, or do a chroot to the mounted disk followed by "passwd".

share|improve this answer

If you have access to the parent:

xm console $vm

Will drop you into the console (can be escaped out of like telnet).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.