wiki-grav/pages/02.linux/xcp-ng/xe-cli/default.en.md
2023-02-19 16:01:08 +01:00

58 lines
827 B
Markdown

---
title: "xe CLI"
visible: true
---
[toc]
## VM Operations
Show running VMs
```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
> [XCP-ng documentation](https://docs.xcp-ng.org/guides/host-reboot/)
## Snapshot management
_TODO_
## VM Limits
Check current limits
```sh
xe vm-param-get uuid={VM UUID} param-name={PARAMETER}
```
Parameters:
```
VCPUs-max: Maximum number of CPU cores
VCPUs-at-startup: Number of CPU cores initially assigned
```
Set Limits
```sh
xe vm-param-set uuid={VM UUID} {PARAMETER}={VALUE}
```
[TODO Memory limits](https://support.citrix.com/article/CTX219771/increase-ram-for-xenserver-vms-through-command-line-interface)