[Xen] Quelques commandes en vrac .. Article original Publié le : 11 novembre 2019 Mise a jour le : – Lister les vms
1 |
# xe vm-list |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
uuid ( RO) : 78f4f7e8-169c-c25b-a035-6684a6f64c91 name-label ( RW): vm01.domaine.tld power-state ( RO): running uuid ( RO) : 3b10a2ed-66eb-7981-7fab-4d0e20c11979 name-label ( RW): vm02.domaine.tld power-state ( RO): running uuid ( RO) : 91824cf2-9a11-9095-c3de-b4cef21c539d name-label ( RW): vm03.domaine.tld power-state ( RO): halted uuid ( RO) : b6cf8dca-3840-7564-9852-5a71f8cd6ed1 name-label ( RW): vm04.domaine.tld power-state ( RO): halted uuid ( RO) : 08e391ef-1ce1-4541-be8c-706ec3985721 name-label ( RW): Control domain on host: socle-xen.domaine.tld power-state ( RO): running |
Demarrer une vm
1 |
# xe vm-start vm=vm01.domaine.tld <span style="text-decoration: underline;"><strong>ou</strong></span> xe vm-start uuid=78f4f7e8-169c-c25b-a035-6684a6f64c91 |
Stopper une vm
1 2 |
# xe vm-reset-powerstate name-label=vm01.domaine.tld force=true # xe vm-stop name-label=vm01.domaine.tld <span style="text-decoration: underline;"><strong>ou</strong></span> xe vm-shutdown name-label=vm01.domaine.tld <span style="text-decoration: underline;"><strong>ou</strong></span> xe vm-shutdown uuid=78f4f7e8-169c-c25b-a035-6684a6f64c91 force=true |
Redémarrer une vm
1 |
# xe vm-reboot name-label=vm01.domaine.tld |
Relancer les outils
1 |
# xe-toolstack-restart |
Trouver l’ID d’une vm et la […]