Copy commands to reboot from xcp-ng documentation

This commit is contained in:
exu 2023-07-30 11:37:57 +02:00
parent 75fe43dbf4
commit 9fe9a3afbf

View File

@ -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