|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-users
Re: [Xen-users] restore root password in domU
 
Hi Alex,
maybe it works for you:
 add extra=" vga=normal init=/bin/sh xencons=tty" temporary to the vm 
config file
than create the domain with console like (you have to delete if you had 
it added with the new option first)
xm create linuxvmtocrack -c
 you will get into the domain but the hdd will be readonly (the os shows 
like it would be rw but the tools reading /etc/mtab which is readonly 
since the
last reboot, so the tools not changed the state to ro)
so you have to:
mount / -o remount,rw
and than you can change the password with
passwd
and poweroff the vm
poweroff
 and remove the extra settings and you can start the vm with the new 
password set.
--
Mit freundlichen Grüßen:
Udo Attila Fischer
Max Born Straße 2
D-75015 Bretten
Tel: +49 3222 3328935
Email: udo@xxxxxx
 
 
smime.p7s 
Description: S/MIME Cryptographic Signature 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users 
 |   
 
 | 
    | 
  
  
    |   | 
    |