Smart Reboot blocked in XO, and no Rolling Pool Update
-
When I would like to smart reboot my host using XO button Advanced > Smart Reboot it tells me:
Smart Reboot failed because ... VMs have their Suspend operation blocked. Would you like to force?At first I thought this is because some VMs had enabled "Protect from accidental shutdown". So I disabled this for all VMs. However, even after a forced smart reboot, and after restarting all VMs I still do get the same message when I initiate a Smart Reboot.
What could be the root cause of this and how can I fix it?
I think is issue is what keeps me from doing a "Rolling Pool Update".
-
I don't think "Protect from accidental shutdown" is what you are hitting here.

If any VM on that host has a host-bound device attached (PCI passthrough, vGPU, or an SR-IOV VIF), XAPI refuses to suspend it withVM_HAS_PCI_ATTACHED, and Smart Reboot stops there.xe host-get-vms-which-prevent-evacuation uuid=<host-uuid>should name them.
For the Rolling Pool Update half, XO 6.7.0 (released 30 July) added ashutdownPinnedVmsoption that shuts those VMs down and starts them again afterwards instead of aborting the run, so upgrading might get you past it.
I could easily be wrong about which of the two you are actually hitting, though, so I would start with that command and see what comes back.
-
P poddingue marked this topic as a question
-
@djingo Hi !
Does all your VMs have guest tools ?
-
@AtaxyaNetwork yes, guest tools installed
-
@poddingue the response is "VM_REQUIRES_SR". The VMs are storing their vdisk on a local NVME. This is crucial for this hypervisor as I do not want it to depend on network storage. Can I work around this error in such a scenario, i.e. is a Rolling Pool Update possible under these circumstances?
Does the Smart Reboot require evacuating the VMs? Technically it shouldn't as in XO there will be a warning that can be manually overridden. WHy do I get the warning in case of a Smart Reboot?
-
Then, my earlier suggestion about upgrading was wrong, sorry, better to say so before you spend an evening on it.

I went and read the RPU code (it's about time!):
shutdownPinnedVmsonly handlesVM_HAS_PCI_ATTACHED,VM_HAS_VGPUandVM_HAS_SRIOV_VIF, and when anything else turns up, it hands back toXAPI's CANNOT_EVACUATE_HOSTon purpose.
VM_REQUIRES_SRis not in that list, so an upgrade will not move you past it.
On the Rolling Pool Update side, the docs say all VM disks have to be on shared storage (https://docs.xcp-ng.org/management/updates), and the host reboot guide defines an agile VM as one not tied to local storage or local devices (https://docs.xcp-ng.org/guides/host-reboot).
With everything on local NVMe, that reads to me like RPU is closed to you by design rather than by bug.
The route the docs give for your case is the manual one: disable the host, shut the VMs down or migrate them, then reboot.The Smart Reboot message looks like a separate problem. In XO's smartReboot a VM counts as suspend blocked in two different cases, either when
blocked_operations.suspendis set, or when XAPI itself refusesVM.assert_operation_validfor suspend. The message only describes the first, which might be why clearing the protection changed nothing. These two will show which one you are in:xe vm-list is-control-domain=false params=name-label,blocked-operations xe vm-list is-control-domain=false power-state=running params=name-label,allowed-operationsIf suspend is missing from allowed-operations, then XAPI is refusing it rather than a flag you set. I ran both on 8.3, so I know they print something per VM.
I have not tested any of this on a two-host pool, though, so theVM_REQUIRES_SRpart is my reading of the code rather than something I reproduced.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register Login