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.