2022-06-28 13:10:56 +02:00
|
|
|
---
|
2022-12-01 08:51:34 +01:00
|
|
|
title: "xe CLI"
|
2022-11-19 15:25:20 +01:00
|
|
|
visible: true
|
2022-06-28 13:10:56 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
[toc]
|
2022-12-01 08:51:34 +01:00
|
|
|
|
2022-06-28 13:13:36 +02:00
|
|
|
## VM Operations
|
2022-12-01 08:51:34 +01:00
|
|
|
|
2023-02-19 16:01:08 +01:00
|
|
|
Show running VMs
|
2022-06-28 13:10:56 +02:00
|
|
|
|
2023-02-19 16:01:08 +01:00
|
|
|
```sh
|
|
|
|
xe vm-list --multiple power-state=running
|
|
|
|
```
|
|
|
|
|
|
|
|
Poweroff all VMs currently running
|
|
|
|
|
|
|
|
```sh
|
|
|
|
xe vm-shutdown --multiple power-state=running
|
|
|
|
```
|
|
|
|
|
|
|
|
Start VM
|
|
|
|
|
|
|
|
```sh
|
|
|
|
xe vm-start uuid={VM UUID}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Host reboot procedure
|
2022-12-01 08:51:34 +01:00
|
|
|
|
2023-02-19 16:01:08 +01:00
|
|
|
> [XCP-ng documentation](https://docs.xcp-ng.org/guides/host-reboot/)
|
2022-06-28 13:13:36 +02:00
|
|
|
|
|
|
|
## Snapshot management
|
2022-12-01 08:51:34 +01:00
|
|
|
|
|
|
|
_TODO_
|
|
|
|
|
|
|
|
## VM Limits
|
|
|
|
|
2023-02-19 16:01:08 +01:00
|
|
|
Check current limits
|
|
|
|
|
|
|
|
```sh
|
|
|
|
xe vm-param-get uuid={VM UUID} param-name={PARAMETER}
|
|
|
|
```
|
2022-12-01 08:51:34 +01:00
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
|
|
|
```
|
|
|
|
VCPUs-max: Maximum number of CPU cores
|
|
|
|
VCPUs-at-startup: Number of CPU cores initially assigned
|
|
|
|
```
|
|
|
|
|
2023-02-19 16:01:08 +01:00
|
|
|
Set Limits
|
|
|
|
|
|
|
|
```sh
|
|
|
|
xe vm-param-set uuid={VM UUID} {PARAMETER}={VALUE}
|
|
|
|
```
|
2022-12-01 08:52:45 +01:00
|
|
|
|
2023-02-19 16:01:08 +01:00
|
|
|
[TODO Memory limits](https://support.citrix.com/article/CTX219771/increase-ram-for-xenserver-vms-through-command-line-interface)
|