|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] can the root password be recovered from a DomU
You can try this from dom0 (in this example the domU uses LVM):
kpartx -av /var/lib/xen/images/vm2.img
You may need to install kpartx yourself, not sure if it comes "free
inside" (yum search kpartx on CentOs)
maps disk partitions to device table entries
uses losetup to create loop devices to disks
vgscan
To find volume groups on the newly mapped disk
vgchange -ay VM_VG00
Activate the volume group you need, VM_VG00 is just an example...
mount /dev/VM_VG00/VM_LV00 /mnt
Mount the filesystem you want,
Make your changes
umount /mnt
vgchange -an VM_VG00
kpartx -dv /var/lib/xen/images/vm2.img
To unwind things.
Joe
----- Original Message -----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> <xen-users-bounces@xxxxxxxxxxxxxxxxxxx>
> To: Xen-users@xxxxxxxxxxxxxxxxxxx <Xen-users@xxxxxxxxxxxxxxxxxxx>, Kevin
> McKeon <kevin.w.mckeon@xxxxxxxxx>
> Sent: Friday, May 22, 2009 1:03:16 PM GMT-0800 America;Los_Angeles
> Subject: [Xen-users] can the root password be recovered from a DomU
> > Just curious if anyone knows this. If you loose the root password on a
> Linux box, you can just boot from CDRom, mount the root partition and
> edit /etc/shadow.
> Is it possible to do something similar with a DomU.
>
> I tried:
> mount -o loop mydisk.img /mnt
> but I got an error saying something like "you must specify a
> filesystem type"
> mount -o loop -t ext3 mydisk.img /mnt does NOT work either (I've also
> tried moving the '-t ext3' part but no go)
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|