[CentOS-virt] img partitioning & swap

Brett Worth brett at worth.id.au
Sun Nov 1 03:53:35 UTC 2009

Adam wrote:

> What do you guys use for your partition scheme for .img files? I see
> examples where people create another .img to use it as swap. I was gonna
> put lvm inside the .img and create separate filesystems in logical
> volumes(/var, /home, /opt, /tmp and swap).

I'd recommend not using LVM inside the images because if you just have a raw disk image in
there with regular partitions you can mount it on dom0 (with losetup) for maintenance.  I
don't think that would be possible with LVM.


More information about the CentOS-virt mailing list