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 [email protected] +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
_______________________________________________ virt mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/virt
