LV mount
Greetings;
The concept of mounting a LV "file", as created by xenguest-install.py is very appealing. I've seen that topic here and there, but no practical advice on how to do it.
I'd like to create some standard system images, move them into position, tweak some files therein, and then create a host. The tweaking step is the big problem.
For clarity my config files have an entry like this:
disk = [ 'file:/xenimages/g1.root,xvda,w', ...
Is is possible to mount a LV "file", (i.e. /xenimages/g1.root), much like one would mount a file system using the loop option? (and *No*, I don't want to try to do this while my vMachine is running!) Then the Xen host machine can set little things like hostname, additional volumes to mount, etc. to get it on it's merry way!
Any direction would be helpful! :-)
-jap
Signature · 2 lines
Joseph A. Perrin President of Discovery Networks, Inc. Voice: 616.977.1700 [email protected] http://dnx.net Fax: 616.977.1702
Hi,
Quoted 3 lines · Joseph A. Perrin
Is is possible to mount a LV "file", (i.e. /xenimages/g1.root), much like one would mount a file system using the loop option? (and *No*, I don't want to try to do this while my vMachine is running!)
Yes, it is; there is a little-known tool called "kpartx" which lets you do it. I wrote this up for the FC5 xen wiki page: see topic "Accessing data on a guest disk image" at
http://fedoraproject.org/wiki/FedoraXenQuickstartFC5
It's *very* useful for accessing partitions and LVM PVs/LVs from inside Xen guest images.
--Stephen