HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   xen reset guest root password (http://www.howtoforge.com/forums/showthread.php?t=28779)

unclecameron 18th November 2008 02:04

xen reset guest root password
 
I need to reset a root password on a Debian xen guest domain. Is there a way to do this without remounting the domain and chrooting into it? If not, is there someone who can give an example of how to do that?

falko 18th November 2008 16:21

Quote:

Originally Posted by unclecameron (Post 155525)
Is there a way to do this without remounting the domain and chrooting into it?

I don't think so.

Quote:

Originally Posted by unclecameron (Post 155525)
If not, is there someone who can give an example of how to do that?

Like this:

Code:

mount -o loop /vserver/images/vm01.img /vserver/vm_base
chroot /vserver/vm_base

passwd root

exit
umount /vserver/vm_base


unclecameron 19th November 2008 09:04

thanks a lot falko, this saved a lot of time and allowed far fewer angry e-mail users on domU :)

rhill 29th November 2008 17:20

xen reset guest root password
 
I tried to boot like this but got error message:
mount: wrong fs type, bad option, bad superblock on /dev/loop0,

am i doing anything wrong?

thanks for any help

Quote:

Originally Posted by falko (Post 155629)
I don't think so.


Like this:

Code:

mount -o loop /vserver/images/vm01.img /vserver/vm_base
chroot /vserver/vm_base

passwd root

exit
umount /vserver/vm_base



falko 30th November 2008 17:11

Run
Code:

modprobe loop
and try again.

erenay 3rd January 2013 14:09

Quote:

Originally Posted by falko (Post 155629)
Code:

mount -o loop /vserver/images/vm01.img /vserver/vm_base
...


This gives an error: "you must specify the filesystem type". My file system is Linux LVM.

falko 4th January 2013 15:09

http://forums.fedoraforum.org/showthread.php?t=211093
http://www.thegibson.org/blog/archives/467

eloopz 14th May 2013 00:25

Hi falko and cameron, I found the following on Skipfast blogspot which worked for me (Debian & LVM)

Recover XEN Guest Root Password

Have you come across a situation when you need to reset the root password of a XEN virtual box.

Logon Host machine run following command to boot guest OS in single usermode and simply recover root user password as normally we do.

#xm create -c /etc/xen/guest_vm_name extra=1

Cheers!

ori on:
http://skipfast.blogspot.nl/2010/05/...-password.html


All times are GMT +2. The time now is 16:26.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.