CANNOT_EVACUATE_HOST VM_REQUIRES_SR
-
I seem to be missing something, and Google is telling me there aren't any great matches. After scrolling through a few pages of results, I agree.
When starting the rolling update or trying to put a host into maintenance mode, I get these errors.
I can migrate VMs manually, so not quite sure what I'm missing or how to begin to troubleshoot this.
Thanks.
-
Do you have HA enabled?
-
Hi,
You need a shared SR (and a default one set).
-
The rolling pool upgrade only works when you're using shared storage sadly.
We're also using local storage (for disk io performance reasons) and when performing updates it still takes like an entire day for us to do so (about 15 hosts with ~200VMs).
It is possible to script it though with xo-cli, i.e. what we do now is get a list of all VMs on a host, iterate over it and for each vm we runxo-cli vm.migrate
with a predetermined targetHost and to the default SR on that host.It's not fully unattended but with a few variables (what host to evacuate and where to evacuate to) at least we can empty each host automatically and just check it a few hours later once it is empty to reboot.
We'll probably improve the script later to reboot the host as well and once it is back online migrate all VMs back. Then after that we can just do that for every host in the pool to have our own rolling-pool-upgrade script.
Would still prefer to have it through the interface, but we contacted support a few weeks ago and they said there were no plans to support this (rolling pool upgrades with local SR) anytime soon.
-
Doing that automatically is possible, but prone to errors (migrating with the disk is VERY complicated because you have to check the destination SRs and "compute" the free space for all migrations, which is very hard). BTW, XAPI got indeed the
host.evacuate
method for live migration, that's what XO calls.I think if there's enough traction to do it, we could, but I would consider it relatively risky for your running VMs.
-
The deeper I go, the more I learn. Thanks for the straight forward answers!
When I'm done with my migration from Hyper-V, we'll have just 4 hosts, so doing it all manually isn't a huge issue.
Is this something that XOSAN would resolve?
-
More or less yeah, but you are adding more moving pieces.