This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-users] Re: lost root password in guest

To: Paras pradhan <pradhanparas@xxxxxxxxx>
Subject: Re: [Xen-users] Re: lost root password in guest
From: Alexandre Bezroutchko <abb@xxxxxxxxxxxx>
Date: Wed, 11 May 2011 18:21:40 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 11 May 2011 09:23:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTim_duGkcEnrep0MfJCsmDEr5-K5Qg@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4DCA79C6.1070108@xxxxxxxxxxxx> <BANLkTim_duGkcEnrep0MfJCsmDEr5-K5Qg@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20110424 Thunderbird/3.1.10
In XCP/XenServer it is supposed to be possible too, with 'xe-edit-bootloader' command. I tried it, but somehow it can't find a partition to open... I thought 'single user mode' requires root password still, at least for some Linux distros like Ubuntu.

On 05/11/2011 04:33 PM, Paras pradhan wrote:
I normally start the domU using xm -c , edit the grub menu and add
'single' or '1'  at the end then it will boot to the single mode .
Then change the password.


On Wed, May 11, 2011 at 6:57 AM, Alexandre Bezroutchko<abb@xxxxxxxxxxxx>  wrote:

Apparently I can't find back the original question, but if the problem is in
the lost root password as the subj suggests, there is a nice trick: set Boot
OS parameters (XenCenter, VM Properties, Startup Options) to 'init=/bin/sh'
and reboot -- you will get root prompt on your console. You'll have to
remount your root file system in rw mode (mount -o remount,rw /) before you
can make any changes on the file system. Just my 2 cents.


Xen-users mailing list

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>