wiki-grav/pages/02.linux/xcp-ng/xe-cli/default.en.md

39 lines
706 B
Markdown
Raw Normal View History

---
2022-12-01 08:51:34 +01:00
title: "xe CLI"
visible: true
---
[toc]
2022-12-01 08:51:34 +01:00
## VM Operations
2022-12-01 08:51:34 +01:00
Show running VMs
2022-12-01 08:51:34 +01:00
`# xe vm-list --multiple power-state=running`
Poweroff all VMs currently running
2022-12-01 08:51:34 +01:00
`# xe vm-shutdown --multiple power-state=running`
Start VM
`# xe vm-start uuid=<vm uuid>`
## Snapshot management
2022-12-01 08:51:34 +01:00
_TODO_
## VM Limits
Check current limits
`# 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
`# xe vm-param-set uuid=<vm uuid> <parameter>=<value>`
2022-12-01 08:52:45 +01:00
![TODO Memory limits](https://support.citrix.com/article/CTX219771/increase-ram-for-xenserver-vms-through-command-line-interface)