Getting host/hypervisor system configuration/capabilities using ‘virsh’ commands..

There are couple of ‘virsh’ commands which can be used to get some basic information about the hypervisor which are in use/connected..

I will directly show the command output to get that information..

 

[root@humbles-lap ~]#virsh nodeinfo
CPU model: x86_64
CPU(s): 4
CPU frequency: 1599 MHz
CPU socket(s): 1
Core(s) per socket: 2
Thread(s) per core: 2
NUMA cell(s): 1
Memory size: 3909832 kB

[root@humbles-lap ~]#virsh capabilities



205846c1-4bd7-dd11-8400-54424964b92e

x86_64
Nehalem
Intel















tcp















selinux
0


hvm

32
/usr/bin/qemu
pc-0.13
pc
fedora-13
pc-0.12
pc-0.11
pc-0.10
isapc





/usr/bin/qemu-kvm
pc-0.13
pc
fedora-13
pc-0.12
pc-0.11
pc-0.10
isapc








hvm

64
/usr/bin/qemu-system-x86_64
pc-0.13
pc
fedora-13
pc-0.12
pc-0.11
pc-0.10
isapc





/usr/bin/qemu-kvm
pc-0.13
pc
fedora-13
pc-0.12
pc-0.11
pc-0.10
isapc








hvm

32
/usr/bin/qemu-system-arm
integratorcp
syborg
musicpal
mainstone
n800
n810
cheetah
sx1
sx1-v1
tosa
akita
spitz
borzoi
terrier
connex
verdex
lm3s811evb
lm3s6965evb
realview-eb
realview-eb-mpcore
realview-pb-a8
realview-pbx-a9
versatilepb
versatileab




hvm

32
/usr/bin/qemu-system-mips
malta
mipssim
magnum
pica61
mips




hvm

32
/usr/bin/qemu-system-mipsel
malta
mipssim
magnum
pica61
mips




hvm

32
/usr/bin/qemu-system-sparc
SS-5
SS-10
SS-600MP
SS-20
Voyager
LX
SS-4
SPARCClassic
SPARCbook
SS-1000
SS-2000
SS-2




hvm

32
/usr/bin/qemu-system-ppc
g3beige
mpc8544ds
bamboo
bamboo-0.13
bamboo-0.12
ref405ep
taihu
mac99
prep



The above commands can be used get the mentioned information..

 

virsh capabilties got mainly 2 sections.. 1. Host and 2. Guest part as highlighted above.

 

Recently the libvirt API behind this has been improved a lot for fetching above information..