Xen domU and Lvm
This is a stupid one.
I've got Xen running on Debian testing, and I have created VG_Guests volume to hold all domUs partitions, but that's besides the point.
The problem is that when I created 4G lvm partition for a guest os, instead of formatting is as ext3 or similar, I left it as unpartitioned space, and later, when Installed a guest OS with default partitioning so now it looks something like:
So single LVM partition contains two partiton and master boot record.
Now I need to mount ext3 part of it while I'm in dom0 ( when the os that occupies that partition is turned off) and I have no idea how to do it.
# mount -t ext3 /dev/That_lvm_volume /mnt/dest
doesn't work for obvious reasons.
Any ideas how can I mount that?
If anyone interested in the answer, this is possible if you use loopback device, more specifically losetup program. Read a manual, you'd have to mount existing partition onto loopback device with offset specified by -o. The following command will work in most cases:
losetup -o 32256 /dev/loop0 /path_to/image
I'm planning on setting up something similar soon.
Xen looks to me like the wave of the future, but documentation is still a bit advanced for my skills.
I wrote that post a while ago, so there a couple of things I've learnt since then. Do not partition the space you want to install a fully virtualized guest os in it, since the guest os will not see the partition anyway, it will just see a physical disk, of undetermined format, so don't bother.
My original question was concerning the problem, of mounting guest os partition into host os, something that is less relevant when you have windows install. If you would want to do that anyway, your partition would look like I drawn above, and in order to mount the main partition you'd have to skip the boot sector, which is easily done using loopback device.
But if you want to learn about xen itself, I suggest you to read the following tutorials:
And something explaining how xen works (in particular paravirtualization engine):
|All times are GMT -5. The time now is 10:15 PM.|