Virsh dominfo

From wikieduonline
Jump to navigation Jump to search

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

Advertising: