Blame
| 293e53 | Cédric | 2025-12-23 17:50:39 | 1 | #### Démarrer une vm : |
| 2 | ```shell |
|||
| 3 | xe vm-start uuid=34defbc5-8bc3-9c8e-5ccc-c04554b32a82 |
|||
| 4 | xe vm-start vm=VM-Vame |
|||
| 5 | ``` |
|||
| 6 | ||||
| 7 | #### Supprimer une vm : |
|||
| 8 | ```shell |
|||
| 9 | xe vm-destroy uuid=8ba4693f-8fc8-479a-2d70-77063a8d6368 |
|||
| 10 | xe vm-destroy vm=VM-Name |
|||
| 11 | ``` |
|||
| 12 | ||||
| 13 | #### Arrêter une vm (ça peut prendre quelques dizaines de secondes) : |
|||
| 14 | ```shell |
|||
| 15 | xe vm-shutdown uuid=|vm= force=true |
|||
| 16 | xe vm-suspend uuid=|vm= force=true |
|||
| 17 | ``` |
|||
| 18 | ||||
| 19 | #### Modifier les paramètres mémoire d'une VM |
|||
| 20 | ```shell |
|||
| 21 | xe vm-memory-limits-set static-min=4294967296 static-max=4294967296 dynamic-min=4294967296 dynamic-max=4294967296 uuid=f8c93f41-090c-8ec9-fbc7-bad539cde3e8 |
|||
| 22 | xe vm-memory-limits-set vm=linux01 static-min=64GiB dynamic-min=64GiB dynamic-max=64GiB static-max=64GiB |
|||
| 23 | ``` |
|||
| 24 | ||||
| 25 | #### List des vm sur un host : |
|||
| 26 | ```shell |
|||
| 27 | xe vm-list |
|||
| 28 | uuid ( RO) : xxxxxx-8bc3-9c8e-5ccc-xxxxxxx |
|||
| 29 | name-label ( RW): XOA |
|||
| 30 | power-state ( RO): running |
|||
| 31 | ||||
| 32 | ||||
| 33 | uuid ( RO) : xxxxxx-ddab-45a4-9400-xxxxxxx |
|||
| 34 | name-label ( RW): Control domain on host: lancelot |
|||
| 35 | power-state ( RO): running |
|||
| 36 | ||||
| 37 | ||||
| 38 | uuid ( RO) : cf4155fb-6e1e-4374-b8e0-4c0a5d59ecfc |
|||
| 39 | name-label ( RW): Debian Bullseye 11 |
|||
| 40 | power-state ( RO): halted |
|||
| 41 | ``` |
|||
| 42 | ||||
| 43 | #### List d'une VM avec son dom-id : |
|||
| 44 | ```shell |
|||
| 45 | xe vm-list params=dom-id,resident-on name-label=XOA |
|||
| 46 | resident-on ( RO) : xxxxxx-dbe2-44e2-9593-xxxxxxx |
|||
| 47 | dom-id ( RO): 246 |
|||
| 48 | ``` |
|||
| 49 | ||||
| 50 | #### Récupérer le host avec son IP de mgmt : |
|||
| 51 | ```shell |
|||
| 52 | xe pif-list management=true params=IP host-uuid=xxxxxxx-dbe2-44e2-9593-xxxxxxx |
|||
| 53 | IP ( RO) : 172.27.204.54 |
|||
| 54 | ``` |
|||
| 55 | ||||
| 56 | #### Créer un SR local sur XCP-ng : |
|||
| 57 | ```shell |
|||
| 58 | xe sr-create name-label=lancelot-nvme0n1 shared=false device-config:device=/dev/nvme0n1 type=lvm |
|||
| 59 | ac85b62d-70f4-283d-9c66-f81850bffcfa |
|||
| 60 | ``` |
|||
| 61 | ||||
| 62 | #### Bidouilles sur vif et networks : |
|||
| 63 | ```shell |
|||
| 64 | xe vm-vif-list name-label=XOA |
|||
| 65 | uuid ( RO) : xxxxxx-b964-e43d-9aa9-xxxxxx |
|||
| 66 | vm-name-label ( RO): XOA |
|||
| 67 | device ( RO): 0 |
|||
| 68 | MAC ( RO): xx:xx:5b:xx:fa:xx |
|||
| 69 | network-uuid ( RO): xxxxxxx-963a-57de-6c3c-xxxxx |
|||
| 70 | network-name-label ( RO): VLAN204-eth0 |
|||
| 71 | xe vif-param-get param-name=currently-attached uuid=xxxxxx-b964-e43d-9aa9-a6faa1b71ed1 |
|||
| 72 | ``` |
|||
| 73 | ||||
| 74 | #### Récupération de XO-Lite : |
|||
| 75 | ```shell |
|||
| 76 | wget https://lite.xen-orchestra.com/dist/ -O /opt/xensource/www/xolite.html |
|||
| 77 | Ensuite, lancer en https://<host>/xolite.html |
|||
| 78 | ``` |
