From 9fe9a3afbfc7482bd43c8371fc552ff97b824547 Mon Sep 17 00:00:00 2001 From: exu Date: Sun, 30 Jul 2023 11:37:57 +0200 Subject: [PATCH] Copy commands to reboot from xcp-ng documentation --- pages/02.linux/xcp-ng/xe-cli/default.en.md | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/pages/02.linux/xcp-ng/xe-cli/default.en.md b/pages/02.linux/xcp-ng/xe-cli/default.en.md index 16103ed..ec565e0 100644 --- a/pages/02.linux/xcp-ng/xe-cli/default.en.md +++ b/pages/02.linux/xcp-ng/xe-cli/default.en.md @@ -27,6 +27,30 @@ xe vm-start uuid={VM UUID} ## Host reboot procedure +1. Disable the host so that no new VM can be started on this host and so that the rest of the pool knows that the host was disabled on purpose. + From command line: + [shroot] + + ```sh + xe host-disable host={hostname} + ``` + + [/shroot] + +2. Migrate the VMs running on the host to other hosts in the pool, or shut them down. + +3. Reboot or shutdown. + Can be done from XO, or from command line + [shroot] + + ```sh + xe host-reboot|host-shutdown host={hostname} + ``` + + [/shroot] + +4. (After a reboot or host startup) Move VMs back to the host if appropriate. There is no need to re-enable the host: it is done automatically when it starts. + > [XCP-ng documentation](https://docs.xcp-ng.org/guides/host-reboot/) ## Snapshot management