Select which VM should be HA

Hi,

Is there a way to select which VM should be HA and migrated to another host in case of a host failure?

We don’t need ALL the vm to be HA, just some.

Thanks!
em

Yes, this is handled by a hook: https://github.com/OpenNebula/one/blob/master/share/hooks/host_error.rb

You can edit it to fit your needs. For instance to accomplish what you say you could add something like

if !vm["TEMPLATE/DO_MIGRATE"]  == "YES"
  next
end

around line 252.

2 Likes