Anyone know if it is possible to create a scheduled task in AHV to migrate a VM to another hosts in an AHV Cluster?
Best answer by Sergei Ivanov
If you don’t put any target host, it will randomly select the target from the available hosts, like this:
acli vm.migrate <vm_name>
Regarding the cron job, it is enough to put it on one of the CVMs and it will execute the command on the time that you specify. Do not make it on every CVM.
BTW, if you do an AOS upgrade, all non-default cron jobs will disappear.