Hello, I have a quite simple scenario and I am not really sure which is the right approach to execute it with ganeti. I would really like your input and suggestions.
I have 2 hypervisors and both of them they share a common space through NFS on a third machine. I would like to have a .qcow2 image on this third NFS machine and boot it on one of those 2 aforementioned hypervisors. I would also like to be able to failover my VM in case that the main hypervisor fails.
So far, I understood that the correct way to boot VMs is through OS-definitions. So I tried to find how can I boot from a qcow2 image and I found ganeti-instance-image. If I understand correctly the context I have to modify ganeti-instance-image defaults and change the IMAGE_NAME and IMAGE_DIR to point on the qcow2 image I want to boot. That is a huge problem for me because that implies that I have a create a new definition for every qcow2 image I want to boot. Is there any other way I can make it work? I find it really strange that if I want to create a VM with KVM I can just give the path of the image to KVM and everything works just like that, and on the other hand Ganeti makes this scenario so hard. What am I doing wrong?
gnt-instance add has the -t option and I thought that maybe I can use the -t file or the -t sharedfile but I see no flag afterwords on where to define a path for my qcow2 image.