Virsh: Difference between revisions
Jump to navigation
Jump to search
Line 45: | Line 45: | ||
| '''Guest VMs''' || [[virsh list|list]] || [[virsh define|define]] || [[virsh dumpxml|dumpxml]] || [[virsh edit|edit]] || [[virsh start|start]] || [[virsh console|console]] || [[virsh shutdown|shutdown]] || [[virsh undefine|undefine]] | | '''Guest VMs''' || [[virsh list|list]] || [[virsh define|define]] || [[virsh dumpxml|dumpxml]] || [[virsh edit|edit]] || [[virsh start|start]] || [[virsh console|console]] || [[virsh shutdown|shutdown]] || [[virsh undefine|undefine]] | ||
|- | |- | ||
| '''Guest Device Management''' || [[virsh attach-disk]] | | '''Guest Device Management''' || [[virsh attach-disk|attach-disk]] | ||
|} | |} |
Revision as of 20:24, 28 June 2017
External
Internal
Overview
virsh is a command-line tool for managing the KVM hypervisor and guest virtual machines. It is part of the libvirt-client package.
virsh is the primary tool to manage RHEL 7 virtualization.
It can be used to:
- create virtual machines
- configure virtual machines
- pause virtual machines
- list virtual machines
- shut down virtual machines
- manage virtual networks
- manage storage
- load virtual machine disk images
Installation
yum install libvirt-client
Commands
Operation Category | ||||||||
Storage Pool | pool-list | pool-info | pool-create | pool-define-as | pool-build | pool-start | ||
pool-autostart | pool-edit | pool-dumpxml | pool-destroy | pool-delete | pool-undefine | |||
Storage Volume | vol-list | vol-info | vol-name | vol-path | vol-key | vol-create-as | vol-delete | |
Nework | net-edit | |||||||
Guest VMs | list | define | dumpxml | edit | start | console | shutdown | undefine |
Guest Device Management | attach-disk |