Difference between revisions of "Virsh dominfo"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 49: Line 49:
  
 
== Activities ==
 
== Activities ==
# Review and understand <code>virsh dominfo</code> output, additionally you can create a documentation for the command.
+
# Review and understand <code>[[virsh dominfo]]</code> output, additionally you can create a documentation for the command.
 
# Use <code>virsh dommemstat</code> to view [[memory]] assigned to your VM or <code>[[virsh dominfo]] VM_MACHINE | grep memory</code>
 
# Use <code>virsh dommemstat</code> to view [[memory]] assigned to your VM or <code>[[virsh dominfo]] VM_MACHINE | grep memory</code>
  

Revision as of 07:07, 11 April 2021

virsh dominfo man page just says[1] "Returns basic information about the domain."


virsh dominfo Example Output:

Search dominfo in code: https://github.com/libvirt/libvirt/search?p=1&q=dominfo&unscoped_q=dominfo

# virsh dominfo MY_VM_MACHINE2
Id:             320
Name:           MY_VM_MACHINE2
UUID:           651f9202-f5e1-4e19-9162-cb238f166855
OS Type:        hvm
State:          running
CPU(s):         2
CPU time:       15797.5s
Max memory:     4194304 KiB
Used memory:    4194304 KiB
Persistent:     yes
Autostart:      enable
Managed save:   no
Security model: apparmor
Security DOI:   0
Security label: libvirt-601f9201-f4e1-4d19-9061-cb238f1668ac (enforcing)
# virsh dominfo MY_VM_MACHINE
id:             13
name:           MY_VM_MACHINE
uuid:           6a4c59a7-ee3t-c781-96e4-288f2862f033
os type:      	linux
state:          blocked
cpu(s):         1
cpu time:     	11.0s
max memory:     1024000 kb
used memory:    1024000 kb


Related commands

Activities

  1. Review and understand virsh dominfo output, additionally you can create a documentation for the command.
  2. Use virsh dommemstat to view memory assigned to your VM or virsh dominfo VM_MACHINE | grep memory

See also

  • http://manpages.ubuntu.com/manpages/xenial/man1/virsh.1.html#domain%20commands
  • <https://libvir-list.redhat.narkive.com/v9HwaBFq/libvirt-patch-virsh-ensure-persistence-and-autostart-are-shown-for-dominfo-and-pool-info
  • Advertising: