Hi,
I’m trying to mount a guest image created as a
file. The guest was created with a standard centos 5.1 anaconda install so it
has two partitions, one for boot, which I can mount using:
# lomount –diskimage=<path-to-image>
-partition=1 /mnt
and another one which has a LVM volume group
VolGroup00 on it, which I can’t mount.
Tried:
# losetup –f
/dev/loop0
# losetup /dev/loop0 <path-to-image>
# kpartx /dev/loop0
add map loop0p1: 0 208782 linear /dev/loop0 63
add map loop0p1: 0 20755980 linear /dev/loop0 208845
but when I do:
# kpartx –a /dev/xen/guest1
I find there is no guest1 file.
Should this file get created when the DomU was
created?
If I do a vgscan it finds the VolGroup00 in the image
but I can’t mount it directly because the name conflicts with the volume
group in DomU0.
Any help please?