Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th November 2008, 01:04
unclecameron unclecameron is offline
Senior Member
 
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
Default 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?
Reply With Quote
Sponsored Links
  #2  
Old 18th November 2008, 15:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by unclecameron View Post
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 View Post
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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
unclecameron (19th November 2008)
  #3  
Old 19th November 2008, 08:04
unclecameron unclecameron is offline
Senior Member
 
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
Default

thanks a lot falko, this saved a lot of time and allowed far fewer angry e-mail users on domU
Reply With Quote
  #4  
Old 29th November 2008, 16:20
rhill rhill is offline
Junior Member
 
Join Date: Nov 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 View Post
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
Reply With Quote
  #5  
Old 30th November 2008, 16:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Run
Code:
modprobe loop
and try again.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 3rd January 2013, 13:09
erenay erenay is offline
Junior Member
 
Join Date: Jan 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
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.

Last edited by erenay; 3rd January 2013 at 13:11.
Reply With Quote
  #7  
Old 4th January 2013, 14:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

http://forums.fedoraforum.org/showthread.php?t=211093
http://www.thegibson.org/blog/archives/467
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 13th May 2013, 23:25
eloopz eloopz is offline
Junior Member
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing Email dayjahone General 7 30th June 2008 15:29
Postfix email server problems Access denied 554 554 5.7.1 state 14 AceRimmer Server Operation 4 19th June 2008 14:36
i am having some problem ? cobro Installation/Configuration 20 30th April 2008 16:26
Add Webmin to the system sushestvo Installation/Configuration 44 21st August 2007 16:52
cannot connect to ispconfig guidovanh Installation/Configuration 22 3rd March 2006 19:52


All times are GMT +2. The time now is 02:23.


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