Hi everyone, does anyone know if the VM HA with KVM in Open Nebula only works with NFS in luns storage? or does it also support connection via FC or iSCSI?
Hi, basicly, you need any type of shared storage. When you get live migration working, then HA would work too
Tks!!, i have that shared storage but i got a problem when i chosse create a new VM and alocate in KVM servers ;
“Mon Nov 29 14:04:38 2021: Error executing image transfer script: Error copying vdc.eyc.cl:/var/lib/one//datastores/1/fbdba69a46986045cc7b3a3dd0482308 to kvmtst:/var/lib/one//datastores/119/65/disk.0”
I tried connection by ssh and scp between nebula and kvm and it has no problems
Please share your image and system datastore templates
Tks @feldsam for your help, now i can create vm on kvm, the problem was the mount point, they were diferent that the frontend Nebula, but now i configured the HA Hook for VM on it, but i received this error :
onehem.log
“Mon Nov 29 15:55:02 2021 [I]: Executing hook 4 for HOST/ERROR/
Mon Nov 29 16:00:03 2021 [E]: Failure executing hook 4 for HOST/ERROR/”
host_error.log
“[2021-11-29 15:55:03 +0000][HOST 50][I] Hook launched
[2021-11-29 15:55:03 +0000][HOST 50][I] hostname: kvmtst
[2021-11-29 15:55:03 +0000][HOST 50][I] Wait 5 cycles.
[2021-11-29 15:55:03 +0000][HOST 50][I] Sleeping 300 seconds.
[2021-11-29 16:00:03 +0000][HOST 50][I] Fencing enabled
[2021-11-29 16:00:03 +0000][HOST 50][E] Fence host not configured, please edit ft/fence_host.sh
[2021-11-29 16:00:03 +0000][HOST 50][E]
[2021-11-29 16:00:03 +0000][HOST 50][E] Fencing error
[2021-11-29 16:00:03 +0000][HOST 50][E] Exiting due to previous error”.
This is a safeguard against running the script on hosts without fencing configured.
Having shared storage, you must guarantee that there are no running VMs on the failed node. To achieve this, you must have an interface that effectively resolves this. Usually, it is something like host power-off or reset via IPMI.
The interface that disables the host should be integrated into the /var/lib/one/remotes/hooks/ft/fence_host.sh
. I prefer to use this file as a template/reference/ for creating a different file and reconfigure the hook to use it.
I hope this helps.
Best Regards,
Anton Todorov