Amos Shapira
2007-Dec-10 03:50 UTC
[CentOS] building a Xen guest image on straight LVM partitions?
Hello, When I needed to build Xen guests under Debian I could follow more or less the instructions in http://preview.tinyurl.com/2oc48r and the advantage of this approach is that it allows me to setup the Xen guest directly on the LVM partition without making it consider the LVM partition as an entire disk with a partition table. The advantages of this approach are: 1. I can add more LVM's later, or share LVM's at the host level among multiple Xen guests. 2. I can easily grow/shrink the Xen guest's disks. 3. I can access the Xen guest's filesystem much more easily 5. Probably less overhead in having LVM->parition->LVM. But I didn't find a way to achieve this with CentOS 5's automatic tools. Is this supported by CentOS as a Xen host or do I have to find my own way? Thanks, --Amos
Tomasz 'Zen' Napierala
2007-Dec-10 14:12 UTC
[CentOS] building a Xen guest image on straight LVM partitions?
Monday 10 December 2007 04:50:04 Amos Shapira napisa?(a):> Hello, > > When I needed to build Xen guests under Debian I could follow more or > less the instructions in http://preview.tinyurl.com/2oc48r and the > advantage of this approach is that it allows me to setup the Xen guest > directly on the LVM partition without making it consider the LVM > partition as an entire disk with a partition table. > > The advantages of this approach are: > 1. I can add more LVM's later, or share LVM's at the host level among > multiple Xen guests. > 2. I can easily grow/shrink the Xen guest's disks. > 3. I can access the Xen guest's filesystem much more easily > 5. Probably less overhead in having LVM->parition->LVM. > > But I didn't find a way to achieve this with CentOS 5's automatic > tools. Is this supported by CentOS as a Xen host or do I have to find > my own way?As far as I know it's not supported with standard CentOS tools. pz -- Tomasz Napierala System Administrator QXL Poland - Allegro.pl Team http://www.allegro.pl/
Johnny Tan
2007-Dec-10 22:27 UTC
[CentOS] building a Xen guest image on straight LVM partitions?
Amos Shapira wrote:> When I needed to build Xen guests under Debian I could follow more or > less the instructions in http://preview.tinyurl.com/2oc48r and the > advantage of this approach is that it allows me to setup the Xen guest > directly on the LVM partition without making it consider the LVM > partition as an entire disk with a partition table.I might be missing something, but that link seems to talk about FAI and doesn't mention xen. I'm interested in seeing how it can install on the LVM partition but the OS doesn't see it as an entire disk with a partition table. What does "fdisk -l" show, then? johnn
Ross S. W. Walker
2007-Dec-11 14:49 UTC
[CentOS] building a Xen guest image on straight LVM partitions?
Amos, The quickest way to deploy a Xen VM requires a little more prep work... Use the regular (long) method as discussed. Most use an HVM to do the install but config it as a domU afterward as most installers only work reliably in a fully virtualized environment. Create an LVM based guest for each distribution/OS you plan to use. Then for each Xen guest you want to create take an LVM snapshot of the distribution/OS of choice and use that for the guest. This way guest deployment is very quick and disk space is conserved wisely. You can start with 1 or 2 GB snapshot and as space gets tight in the snapshot add more storage. -Ross -----Original Message----- From: centos-bounces at centos.org <centos-bounces at centos.org> To: CentOS mailing list <centos at centos.org> Sent: Tue Dec 11 01:50:01 2007 Subject: Re: [CentOS] building a Xen guest image on straight LVM partitions? On 11/12/2007, Ross S. W. Walker <rwalker at medallion.com> wrote:> Here is a good link: http://wiki.rpath.com/wiki/Xen_DomU_GuideAh and forgot to say "thank you" for the link. Looks useful. Cheers, --Amos _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos ______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20071211/cf728c3c/attachment-0003.html>