Differences
This shows you the differences between two versions of the page.
linux_wiki:start_and_stop_virtual_machines [2016/03/01 22:52] billdozor [Start And Stop Virtual Machines] |
linux_wiki:start_and_stop_virtual_machines [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Start And Stop Virtual Machines ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | Controlling virtual machines from a KVM host. | ||
- | |||
- | ---- | ||
- | |||
- | ==== CLI Method ==== | ||
- | |||
- | Show running and stopped VMs | ||
- | <code bash> | ||
- | virsh list --all | ||
- | </ | ||
- | |||
- | \\ | ||
- | Show only running VMs | ||
- | <code bash> | ||
- | virsh list | ||
- | </ | ||
- | |||
- | \\ | ||
- | Show Config Info of VM | ||
- | <code bash> | ||
- | virsh dominfo server1 | ||
- | </ | ||
- | |||
- | \\ | ||
- | Show VM Activity | ||
- | <code bash> | ||
- | virt-top | ||
- | </ | ||
- | |||
- | \\ | ||
- | Reboot VM Named " | ||
- | <code bash> | ||
- | virsh reboot server1 | ||
- | </ | ||
- | |||
- | \\ | ||
- | Stop VM Named " | ||
- | <code bash> | ||
- | virsh shutdown server1 | ||
- | </ | ||
- | |||
- | \\ | ||
- | Start VM Named " | ||
- | <code bash> | ||
- | virsh start server1 | ||
- | </ | ||
- | |||
- | \\ | ||
- | Stop VM Immediately ("pull power" | ||
- | <code bash> | ||
- | virsh destroy server1 | ||
- | </ | ||
- | |||
- | \\ | ||
- | Delete VM Named " | ||
- | <code bash> | ||
- | virsh undefine server1 | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ==== GUI Method ==== | ||
- | |||
- | Shutdown | ||
- | * Applications > System Tools > Virtual Machine Manager | ||
- | * Right click VM > Shutdown > Shutdown | ||
- | |||
- | Start | ||
- | * Applications > System Tools > Virtual Machine Manager | ||
- | * Right click VM > Run | ||
- | |||
- | ---- | ||