I have to develop an image server which will work with a libvirt/kvm hypervisor.
The idea is the following: I'd keep disk images on a server (which would be the free nas), one disk image for each os. So, let's say ubuntu/fedora/windows.
then I programmatically create vms on demand by dinamically copy and create a disk.
So, if the user wants to create an ubuntu vm I'd have to ask the server (is there a client protocol to do that?) to replicate the ubuntu disk image, let's call it ubuntu1, set it as an iscsi target, receive the iqn and send it to the client.
The client will create a vm passing, as hard disk, the iqn received.
I can already programmatically create a vm, specifying each paramether.
But is it possible to do something about dynamic disk/iscsi target creation with free nas?
Where to start?
The idea is the following: I'd keep disk images on a server (which would be the free nas), one disk image for each os. So, let's say ubuntu/fedora/windows.
then I programmatically create vms on demand by dinamically copy and create a disk.
So, if the user wants to create an ubuntu vm I'd have to ask the server (is there a client protocol to do that?) to replicate the ubuntu disk image, let's call it ubuntu1, set it as an iscsi target, receive the iqn and send it to the client.
The client will create a vm passing, as hard disk, the iqn received.
I can already programmatically create a vm, specifying each paramether.
But is it possible to do something about dynamic disk/iscsi target creation with free nas?
Where to start?