From redhat documentation:
A guest virtual machine installed on shared storage using one of the following protocols: Fibre Channel-based LUNs iSCSI FCoE NFS SCSI RDMA protocols (SCSI RCP): the block export protocol used in Infiniband and 10GbE iWARP adapters
Till now I simply created an iscsi target leading to a .dsk file which was the VM’s hard disk.
Problem is that now I’d like to have a central server hosting .dsk files so that, installing a custom program on it, I could generate new vms by simply copying these .dsk files.In short: I’d like to implement an on demand VM creation, generating their hard disks by simply copying files.
So, my idea would be to set the VM’s disk to
<source file='<network file system root path/aVMImage.dsk'/>
Is it possible to do something like that? And would live migration still work?
Answer
Have your central storage server export the directory of disk images over NFS. The servers running the VMs can access the disk images using the Network Filesystem backend for libvirt storage pools, or you can perform the NFS mount yourself and use the directory backend. Migration should work.
Attribution
Source : Link , Question Author : user2358943 , Answer Author : sciurus