From af28123c9f704bdc977b2b91fe7ebc45e90ce56a Mon Sep 17 00:00:00 2001 From: exu Date: Sat, 20 Jul 2024 11:24:36 +0200 Subject: [PATCH] Add custom sh formatting. Add new command --- pages/02.linux/xcp-ng/xe-cli/default.en.md | 24 +++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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 df17b75..3b1bd6e 100644 --- a/pages/02.linux/xcp-ng/xe-cli/default.en.md +++ b/pages/02.linux/xcp-ng/xe-cli/default.en.md @@ -9,22 +9,44 @@ visible: true Show running VMs +[shroot] + ```sh -xe vm-list --multiple power-state=running +xe vm-list power-state=running ``` +[/shroot] + +Show only the names of running VMs + +[shroot] + +```sh +xe vm-list power-state=running | grep "name-label" +``` + +[/shroot] + Poweroff all VMs currently running +[shroot] + ```sh xe vm-shutdown --multiple power-state=running ``` +[/shroot] + Start VM +[shroot] + ```sh xe vm-start uuid={VM UUID} ``` +[/shroot] + ## Host reboot procedure 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.