Add custom sh formatting. Add new command
This commit is contained in:
parent
e0297d8f2e
commit
af28123c9f
@ -9,22 +9,44 @@ visible: true
|
|||||||
|
|
||||||
Show running VMs
|
Show running VMs
|
||||||
|
|
||||||
|
[shroot]
|
||||||
|
|
||||||
```sh
|
```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
|
Poweroff all VMs currently running
|
||||||
|
|
||||||
|
[shroot]
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
xe vm-shutdown --multiple power-state=running
|
xe vm-shutdown --multiple power-state=running
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[/shroot]
|
||||||
|
|
||||||
Start VM
|
Start VM
|
||||||
|
|
||||||
|
[shroot]
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
xe vm-start uuid={VM UUID}
|
xe vm-start uuid={VM UUID}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[/shroot]
|
||||||
|
|
||||||
## Host reboot procedure
|
## 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.
|
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user