[fedora-virt] Shared swap among Guests?
Eric Blake
eblake at redhat.com
Wed Nov 23 13:16:42 UTC 2011
On 11/23/2011 06:01 AM, Frank Murphy wrote:
> Can a single physical disk,
> be used as a shared swap-drive.
> Among virtual Guests?
As long as guests aren't using the same disk at the same time, then yes,
it is possible to assign a disk image to more than one guest. The
libvirt-lock-sanlock package in Fedora can help ensure the mutual
exclusion of only one guest running at a time while using the otherwise
shared disk.
But having multiple guests simultaneously running while using the same
disk image for shared swap is a recipe for disaster.
>
> Guests would be Fedora\CentOS\Maybe an odd Ubuntu.
>
> If yes, how to adapt current images for such.
Update the XML of each guest that will share the host resource to point
to the same host source location; and probably also modify the guests'
/etc/fstab to correctly mount swap onto that virtual disk.
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/virt/attachments/20111123/2e83372e/attachment.bin
More information about the virt
mailing list