Virsh: Difference between revisions
From Leo's Notes
This page was last edited on 29 July 2021, at 23:06.
Created page with "== Cheat sheet == {| class="wikitable" !Command !description |- |<code>virsh nodeinfo</code> |shows node info |- |<code>virsh list [--all]</code> |shows all VMs |- |<code><now..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
== Cheat sheet == | ==Cheat sheet== | ||
{| class="wikitable" | {| class="wikitable" | ||
!Command | !Command | ||
| Line 21: | Line 21: | ||
|<code>virsh console vm [--force]</code> | |<code>virsh console vm [--force]</code> | ||
|connect a console to a VM | |connect a console to a VM | ||
|- | |||
|<code>virsh dominfo vm</code> | |||
|Shows a VM's information | |||
|- | |||
|<code>virsh vcpuinfo vm</code> | |||
|Shows a VM's cpu state | |||
|} | |} | ||
Revision as of 23:06, 29 July 2021
Cheat sheet
| Command | description |
|---|---|
virsh nodeinfo
|
shows node info |
virsh list [--all]
|
shows all VMs |
virsh start|shutdown|reboot vm
|
Starts/shutdowns/reboots a VM |
virsh destroy vm
|
Destroys a VM |
virsh suspend|resume vm
|
suspends or resumes a VM |
virsh console vm [--force]
|
connect a console to a VM |
virsh dominfo vm
|
Shows a VM's information |
virsh vcpuinfo vm
|
Shows a VM's cpu state |