Virsh: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 6: Line 6:


* [[Linux_Virtualization_Concepts#libvirt|Linux Virtualization Concepts - libvirt]]
* [[Linux_Virtualization_Concepts#libvirt|Linux Virtualization Concepts - libvirt]]
* [[Linux Virtualization Operations]]
* [[virt-install]]
* [[virt-install]]


Line 39: Line 40:
| || [[Virsh pool-autostart|pool-autostart]] || [[virsh pool-edit|pool-edit]] || [[virsh pool-dumpxml|pool-dumpxml]] || [[virsh pool-destroy|pool-destroy]] || [[virsh pool-delete|pool-delete]] || [[virsh pool-undefine|pool-undefine]]
| || [[Virsh pool-autostart|pool-autostart]] || [[virsh pool-edit|pool-edit]] || [[virsh pool-dumpxml|pool-dumpxml]] || [[virsh pool-destroy|pool-destroy]] || [[virsh pool-delete|pool-delete]] || [[virsh pool-undefine|pool-undefine]]
|-
|-
| '''Storage Volume''' || [[virsh vol-list|vol-list]] || [[virsh vol-info|vol-info]] || [[virsh vol-name|vol-name]] || [[virsh vol-path|vol-path]] || [[virsh vol-key|vol-key]] || [[virsh vol-create-as|vol-create-as]] || [[virsh vol-delete|vol-delete]]
| '''Storage Volume''' || [[virsh vol-list|vol-list]] || [[virsh vol-info|vol-info]] || [[virsh vol-name|vol-name]] || [[virsh vol-path|vol-path]] || [[virsh vol-key|vol-key]] || [[virsh vol-create-as|vol-create-as]] || [[virsh vol-create|vol-create]] || [[virsh vol-clone|vol-clone]]  || [[virsh vol-delete|vol-delete]]
|-
|-
| '''Nework''' || [[virsh net-edit|net-edit]]
| '''Nework''' || [[virsh net-edit|net-edit]]
|-
|-
| '''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]]
|-
|  || [[virsh domstate|domstate]] || [[virsh dominfo|dominfo]] || [[Linux KVM Virtualization Guest Snapshot Using virsh snapshot Functionality|snapshot]] || [[virsh autostart|autostart]]
|-
|-
| '''Guest Device Management''' || [[virsh attach-disk|attach-disk]]
| '''Guest Device Management''' || [[virsh attach-disk|attach-disk]]
|}
|}

Latest revision as of 06:47, 4 December 2020

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-create vol-clone vol-delete
Nework net-edit
Guest VMs list define dumpxml edit start console shutdown undefine
domstate dominfo snapshot autostart
Guest Device Management attach-disk