Add custom sh formatting. Add new command

This commit is contained in:
exu 2024-07-20 11:24:36 +02:00
parent e0297d8f2e
commit af28123c9f

View File

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