O'Reilly logo

KVM Virtualization Cookbook by Konstantin Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

To collect various resource usage information for a running instance or the hypervisor host, perform the following:

  1. Obtain information on the hypervisor CPU utilization:
root@kvm:~# virsh nodecpustats --percentusage: 0.0%user: 0.0%system: 0.0%idle: 100.0%iowait: 0.0%root@kvm:~#





 

 

  1. Collect information on the hypervisor memory utilization:
root@kvm:~# virsh nodememstatstotal : 131918328 KiBfree : 103633700 KiBbuffers: 195532 KiBcached : 25874840 KiBroot@kvm:~#
  1. Check the state of a KVM instance:
root@kvm:~# virsh domstate kvm1runningroot@kvm:~#
  1. Get a number of assigned virtual CPUs (vCPU) for a KVM instance:
root@kvm:~# virsh vcpucount --current kvm1 --live1root@kvm:~#
  1. Collect detailed information about the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required