[libvirt-users] Using the host's LVM to manage virtual disks

scar scar at drigon.com
Fri Apr 23 23:03:43 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

i am envisioning a scenario that a fellow sysadmin is employing using
xen, where the host is configured with LVM.  basically, one volume group
spans the physical disk.  then, various logical volumes are created for
the host and (Linux) guest OSes.  this makes it easy to resize logical
volumes should it be needed.

is a setup like this possible with libvirt?  the best i can think up, so
far, is to create a new logical disk, vm1, and pass that as an argument
to the -f option of virt-install.  then, during the installation i can
setup LVM within the guest.  not sure if this would even work if i need
to expand the volume size.  first i would expand the size of vm1.  then,
within the vm1 OS i would expand the size of the root partition.

i would like to not have to use this second layer of LVM.  for example,
on the host OS, i would create two logical volumes: vm1-root and
vm1-swap, and these are what vm1 would use for root and swap.  then, if
needed, i can just increase the size of vm1-root, etc.

thanks

-----BEGIN PGP SIGNATURE-----

iEYEAREIAAYFAkvSJ08ACgkQXhfCJNu98qDAoQCfbdN84rlxmFJCwHnsaHXdv0l4
juUAmwfE2Te+l07VfkuJYUI2/us83F5e
=AmQ+
-----END PGP SIGNATURE-----




More information about the libvirt-users mailing list