csmart / ansible-role-virt-infra

Define and manage guests and networks on a KVM host with Ansible
GNU General Public License v3.0
67 stars 48 forks source link

add support for shared data disks #45

Open csmart opened 3 years ago

csmart commented 3 years ago

Specify a disk as shared so that it can be attached to multiple VMs. This will mean that shared option needs to be set (to enable correct SELinux labeling) and also that the name must not be based on the inventory hostname as it won't then be the same across VMs.

csmart commented 3 years ago

Shared disks are only supported with RAW format, else you can corrupt qcow2 headers, so I guess this means I need to bump support for #38

csmart commented 3 years ago

shared disks probably not supported with nvme due to the way we have to define the using qemu extra args...