byghis

libvirt 0.9.2 & virsh -c qemu:///system

Sep 4th, 2011
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.02 KB | None | 0 0
  1. edward@pituba:~$ sudo virsh -c qemu:///system
  2. Welcome to virsh, the virtualization interactive terminal.
  3.  
  4. Type: 'help' for help with commands
  5. 'quit' to quit
  6.  
  7. virsh # version
  8. Compiled against library: libvir 0.9.2
  9. Using library: libvir 0.9.2
  10. Using API: QEMU 0.9.2
  11. Running hypervisor: QEMU 0.14.0
  12.  
  13. virsh # help
  14. Grouped commands:
  15.  
  16. Domain Management (help keyword 'domain'):
  17. attach-device attach device from an XML file
  18. attach-disk attach disk device
  19. attach-interface attach network interface
  20. autostart autostart a domain
  21. blkiotune Get or set blkio parameters
  22. console connect to the guest console
  23. cpu-baseline compute baseline CPU
  24. cpu-compare compare host CPU with a CPU described by an XML file
  25. create create a domain from an XML file
  26. define define (but don't start) a domain from an XML file
  27. destroy destroy a domain
  28. detach-device detach device from an XML file
  29. detach-disk detach disk device
  30. detach-interface detach network interface
  31. domid convert a domain name or UUID to domain id
  32. domjobabort abort active domain job
  33. domjobinfo domain job information
  34. domname convert a domain id or UUID to domain name
  35. domuuid convert a domain name or id to domain UUID
  36. domxml-from-native Convert native config to domain XML
  37. domxml-to-native Convert domain XML to native config
  38. dump dump the core of a domain to a file for analysis
  39. dumpxml domain information in XML
  40. edit edit XML configuration for a domain
  41. inject-nmi Inject NMI to the guest
  42. managedsave managed save of a domain state
  43. managedsave-remove Remove managed save of a domain
  44. maxvcpus connection vcpu maximum
  45. memtune Get or set memory parameters
  46. migrate migrate domain to another host
  47. migrate-setmaxdowntime set maximum tolerable downtime
  48. reboot reboot a domain
  49. restore restore a domain from a saved state in a file
  50. resume resume a domain
  51. save save a domain state to a file
  52. schedinfo show/set scheduler parameters
  53. screenshot take a screenshot of a current domain console and store it into a file
  54. setmaxmem change maximum memory limit
  55. setmem change memory allocation
  56. setvcpus change number of virtual CPUs
  57. shutdown gracefully shutdown a domain
  58. start start a (previously defined) inactive domain
  59. suspend suspend a domain
  60. ttyconsole tty console
  61. undefine undefine an inactive domain
  62. update-device update device from an XML file
  63. vcpucount domain vcpu counts
  64. vcpuinfo detailed domain vcpu information
  65. vcpupin control domain vcpu affinity
  66. version show version
  67. vncdisplay vnc display
  68.  
  69. Domain Monitoring (help keyword 'monitor'):
  70. domblkinfo domain block device size information
  71. domblkstat get device block stats for a domain
  72. domifstat get network interface stats for a domain
  73. dominfo domain information
  74. dommemstat get memory statistics for a domain
  75. domstate domain state
  76. list list domains
  77.  
  78. Host and Hypervisor (help keyword 'host'):
  79. capabilities capabilities
  80. connect (re)connect to hypervisor
  81. freecell NUMA free memory
  82. hostname print the hypervisor hostname
  83. nodeinfo node information
  84. qemu-monitor-command Qemu Monitor Command
  85. sysinfo print the hypervisor sysinfo
  86. uri print the hypervisor canonical URI
  87.  
  88. Interface (help keyword 'interface'):
  89. iface-begin create a snapshot of current interfaces settings, which can be later commited (iface-commit) or restored (iface-rollback)
  90. iface-commit commit changes made since iface-begin and free restore point
  91. iface-define define (but don't start) a physical host interface from an XML file
  92. iface-destroy destroy a physical host interface (disable it / "if-down")
  93. iface-dumpxml interface information in XML
  94. iface-edit edit XML configuration for a physical host interface
  95. iface-list list physical host interfaces
  96. iface-mac convert an interface name to interface MAC address
  97. iface-name convert an interface MAC address to interface name
  98. iface-rollback rollback to previous saved configuration created via iface-begin
  99. iface-start start a physical host interface (enable it / "if-up")
  100. iface-undefine undefine a physical host interface (remove it from configuration)
  101.  
  102. Network Filter (help keyword 'filter'):
  103. nwfilter-define define or update a network filter from an XML file
  104. nwfilter-dumpxml network filter information in XML
  105. nwfilter-edit edit XML configuration for a network filter
  106. nwfilter-list list network filters
  107. nwfilter-undefine undefine a network filter
  108.  
  109. Networking (help keyword 'network'):
  110. net-autostart autostart a network
  111. net-create create a network from an XML file
  112. net-define define (but don't start) a network from an XML file
  113. net-destroy destroy a network
  114. net-dumpxml network information in XML
  115. net-edit edit XML configuration for a network
  116. net-info network information
  117. net-list list networks
  118. net-name convert a network UUID to network name
  119. net-start start a (previously defined) inactive network
  120. net-undefine undefine an inactive network
  121. net-uuid convert a network name to network UUID
  122.  
  123. Node Device (help keyword 'nodedev'):
  124. nodedev-create create a device defined by an XML file on the node
  125. nodedev-destroy destroy a device on the node
  126. nodedev-dettach dettach node device from its device driver
  127. nodedev-dumpxml node device details in XML
  128. nodedev-list enumerate devices on this host
  129. nodedev-reattach reattach node device to its device driver
  130. nodedev-reset reset node device
  131.  
  132. Secret (help keyword 'secret'):
  133. secret-define define or modify a secret from an XML file
  134. secret-dumpxml secret attributes in XML
  135. secret-get-value Output a secret value
  136. secret-list list secrets
  137. secret-set-value set a secret value
  138. secret-undefine undefine a secret
  139.  
  140. Snapshot (help keyword 'snapshot'):
  141. snapshot-create Create a snapshot
  142. snapshot-current Get the current snapshot
  143. snapshot-delete Delete a domain snapshot
  144. snapshot-dumpxml Dump XML for a domain snapshot
  145. snapshot-list List snapshots for a domain
  146. snapshot-revert Revert a domain to a snapshot
  147.  
  148. Storage Pool (help keyword 'pool'):
  149. find-storage-pool-sources-as find potential storage pool sources
  150. find-storage-pool-sources discover potential storage pool sources
  151. pool-autostart autostart a pool
  152. pool-build build a pool
  153. pool-create-as create a pool from a set of args
  154. pool-create create a pool from an XML file
  155. pool-define-as define a pool from a set of args
  156. pool-define define (but don't start) a pool from an XML file
  157. pool-delete delete a pool
  158. pool-destroy destroy a pool
  159. pool-dumpxml pool information in XML
  160. pool-edit edit XML configuration for a storage pool
  161. pool-info storage pool information
  162. pool-list list pools
  163. pool-name convert a pool UUID to pool name
  164. pool-refresh refresh a pool
  165. pool-start start a (previously defined) inactive pool
  166. pool-undefine undefine an inactive pool
  167. pool-uuid convert a pool name to pool UUID
  168.  
  169. Storage Volume (help keyword 'volume'):
  170. vol-clone clone a volume.
  171. vol-create-as create a volume from a set of args
  172. vol-create create a vol from an XML file
  173. vol-create-from create a vol, using another volume as input
  174. vol-delete delete a vol
  175. vol-download Download a volume to a file
  176. vol-dumpxml vol information in XML
  177. vol-info storage vol information
  178. vol-key returns the volume key for a given volume name or path
  179. vol-list list vols
  180. vol-name returns the volume name for a given volume key or path
  181. vol-path returns the volume path for a given volume name or key
  182. vol-pool returns the storage pool for a given volume key or path
  183. vol-upload upload a file into a volume
  184. vol-wipe wipe a vol
  185.  
  186. Virsh itself (help keyword 'virsh'):
  187. cd change the current directory
  188. echo echo arguments
  189. exit quit this interactive terminal
  190. help print help
  191. pwd print the current directory
  192. quit quit this interactive terminal
  193.  
  194.  
  195. virsh #
Advertisement
Add Comment
Please, Sign In to add comment