Virsh Commands: Difference between revisions

From Xen
Jump to navigationJump to search
mNo edit summary
No edit summary
Line 35: Line 35:
|list domains
|list domains
|}
|}
|create
create create a domain from an XML file
|create a domain from an XML file
start start a previously created inactive domain
|-
destroy destroy a domain
|start
define define (but do not start) a domain from an XML file
domid convert a domain name or UUID to domain id
|start a previously created inactive domain
|-
domuuid convert a domain name or id to domain UUID
|destroy
dominfo domain information
|destroy a domain
domname convert a domain id or UUID to domain name
|-
domstate domain state
|define
quit quit this interactive terminal
|define (but do not start) a domain from an XML file
reboot reboot a domain
|-
restore restore a domain from a saved state in a file
|domid
resume resume a domain
save save a domain state to a file
|convert a domain name or UUID to domain id
|-
shutdown gracefully shutdown a domain
|domuuid
suspend suspend a domain
|convert a domain name or id to domain UUID
undefine undefine an inactive domain
|-

|dominfo
|domain information
|-
|domname
|convert a domain id or UUID to domain name
|-
|domstate
|domain state
|-
|quit
|quit this interactive terminal
|-
|reboot
|reboot a domain
|-
|restore
|restore a domain from a saved state in a file
|-
|resume
|resume a domain
|-
|save
|save a domain state to a file
|-
|shutdown
|gracefully shutdown a domain
|-
|suspend
|suspend a domain
|-
|undefine
|undefine an inactive domain
|}


[[Category:libvirt]]
[[Category:libvirt]]

Revision as of 20:16, 10 January 2015

The libvirt toolkit is focused primarily on KVM virtual machines, but it is intended to be usable for multiple virtualization technologies, including the Xen Project Hypervisor. As a result, some commands are essential when using Xen Project software, but others do not apply as they are targeted for KVM concepts.

Some of the essential virsh commands for manipulating Xen Project VMs include:

virsh list
virsh dominfo
virsh dumpxml
virsh start
virsh shutdown
virsh destroy
virsh create
Food complements
Orange Apple
Bread Pie
Butter Ice cream
+VIRSH commands:
help print help
list list domains

|create |create a domain from an XML file |- |start |start a previously created inactive domain |- |destroy |destroy a domain |- |define |define (but do not start) a domain from an XML file |- |domid |convert a domain name or UUID to domain id |- |domuuid |convert a domain name or id to domain UUID |- |dominfo |domain information |- |domname |convert a domain id or UUID to domain name |- |domstate |domain state |- |quit |quit this interactive terminal |- |reboot |reboot a domain |- |restore |restore a domain from a saved state in a file |- |resume |resume a domain |- |save |save a domain state to a file |- |shutdown |gracefully shutdown a domain |- |suspend |suspend a domain |- |undefine |undefine an inactive domain |}