Wednesday, June 26, 2013

How to verify that your Centos is KVM ready ?

1. Verify that the kernel is newer than 2.6.15
[root@NTNX-12AM2K480036-A ~]# uname -r

2.6.32-358.6.2.el6.x86_64

2. Check if your CPU supports Hardware Assisted Virt
egrep "vmx|svm" /proc/cpuinfo  --color=always

flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 popcnt lahf_lm ida arat epb dts tpr_shadow vnmi flexpriority ept vpid

3.[root@NTNX-12AM2K480036-A ~]# lsb_release -a

LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.4 (Final)
Release:        6.4
Codename:       Final

4.  yum info libvirt

Installed Packages
Name        : libvirt
Arch        : x86_64
Version     : 0.10.2
Release     : 18.el6_4.5
Size        : 5.6 M
Repo        : installed
From repo   : /libvirt-0.10.2-18.el6_4.5.x86_64
Summary     : Library providing a simple virtualization API
URL         : http://libvirt.org/
License     : LGPLv2+
Description : Libvirt is a C toolkit to interact with the virtualization capabilities
            : of recent versions of Linux (and other OSes). The main package includes
            : the libvirtd server exporting the virtualization support.


5.
[root@NTNX-12AM2K480036-A ~]# yum info qemu=kvm

Installed Packages
Name        : qemu-kvm
Arch        : x86_64
Epoch       : 2
Version     : 0.12.1.2
Release     : 2.355.0.1.el6.centos.2
Size        : 4.1 M
Repo        : installed
From repo   : updates
Summary     : Userspace component of KVM
URL         : http://www.linux-kvm.org
License     : GPLv2+ and LGPLv2+ and BSD
Description : KVM (for Kernel-based Virtual Machine) is a full virtualization solution
            : for Linux on x86 hardware.
            :
            : Using KVM, one can run multiple virtual machines running unmodified Linux
            : or Windows images. Each virtual machine has private virtualized hardware:
            : a network card, disk, graphics adapter, etc.


6.[root@NTNX-12AM2K480036-A ~]# service libvirtd status

libvirtd (pid  4351) is running...

7. chkconfig --list libvirtd
libvirtd        0:off   1:off   2:off   3:on    4:on    5:on    6:off

8.  lsmod |grep kvm
kvm_intel              53484  32
kvm                   316602  1 kvm_intel


9.
[root@NTNX-12AM2K480036-A ~]# virsh sysinfo
<sysinfo type='smbios'>
  <bios>
    <entry name='vendor'>American Megatrends Inc.</entry>
    <entry name='version'>2.1b      </entry>
    <entry name='date'>10/28/2011</entry>
    <entry name='release'>8.16</entry>
  </bios>
  <system>
    <entry name='manufacturer'>Supermicro</entry>
    <entry name='product'>X8DTT-H</entry>
    <entry name='version'>1234567890</entry>
    <entry name='serial'>12AM2K480036</entry>
    <entry name='uuid'>54443858-4E54-2500-9083-00259083FC54</entry>
    <entry name='sku'>1234567890</entry>
    <entry name='family'>Server</entry>
  </system>
  <processor>
    <entry name='socket_destination'>CPU 1</entry>
    <entry name='type'>Central Processor</entry>
    <entry name='family'>Xeon</entry>
    <entry name='manufacturer'>Intel</entry>
    <entry name='signature'>Type 0, Family 6, Model 44, Stepping 2</entry>
    <entry name='version'>Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz</entry>
    <entry name='external_clock'>133 MHz</entry>
    <entry name='max_speed'>2666 MHz</entry>
    <entry name='status'>Populated, Enabled</entry>
    <entry name='serial_number'>To Be Filled By O.E.M.</entry>
    <entry name='part_number'>To Be Filled By O.E.M.</entry>
  </processor>
  <processor>
    <entry name='socket_destination'>CPU 2</entry>
    <entry name='type'>Central Processor</entry>
    <entry name='family'>Xeon</entry>
    <entry name='manufacturer'>Intel</entry>
    <entry name='signature'>Type 0, Family 6, Model 44, Stepping 2</entry>
    <entry name='version'>Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz</entry>
    <entry name='external_clock'>133 MHz</entry>
    <entry name='max_speed'>2666 MHz</entry>
    <entry name='status'>Populated, Enabled</entry>
    <entry name='serial_number'>To Be Filled By O.E.M.</entry>
    <entry name='part_number'>To Be Filled By O.E.M.</entry>
  </processor>
  <memory_device>
    <entry name='size'>8192 MB</entry>
    <entry name='form_factor'>DIMM</entry>
    <entry name='locator'>P1-DIMM1A</entry>
    <entry name='bank_locator'>BANK0</entry>
    <entry name='type'>DDR3</entry>
    <entry name='type_detail'>Other</entry>
    <entry name='speed'>1333 MHz</entry>
    <entry name='manufacturer'>Hyundai</entry>
    <entry name='serial_number'>8BD98C1E</entry>
    <entry name='part_number'>HMT31GR7CFR4A-H9</entry>
  </memory_device>
  <memory_device>
    <entry name='size'>8192 MB</entry>
    <entry name='form_factor'>DIMM</entry>
    <entry name='locator'>P1-DIMM2A</entry>
    <entry name='bank_locator'>BANK2</entry>
    <entry name='type'>DDR3</entry>
    <entry name='type_detail'>Other</entry>
    <entry name='speed'>1333 MHz</entry>
    <entry name='manufacturer'>Hyundai</entry>
    <entry name='serial_number'>3FD13521</entry>
    <entry name='part_number'>HMT31GR7CFR4A-H9</entry>
  </memory_device>
  <memory_device>
    <entry name='size'>8192 MB</entry>
    <entry name='form_factor'>DIMM</entry>
    <entry name='locator'>P1-DIMM3A</entry>
    <entry name='bank_locator'>BANK4</entry>
    <entry name='type'>DDR3</entry>
    <entry name='type_detail'>Other</entry>
    <entry name='speed'>1333 MHz</entry>
    <entry name='manufacturer'>Hyundai</entry>
    <entry name='serial_number'>32D17521</entry>
    <entry name='part_number'>HMT31GR7CFR4A-H9</entry>
  </memory_device>
  <memory_device>
    <entry name='size'>8192 MB</entry>
    <entry name='form_factor'>DIMM</entry>
    <entry name='locator'>P2-DIMM1A</entry>
    <entry name='bank_locator'>BANK6</entry>
    <entry name='type'>DDR3</entry>
    <entry name='type_detail'>Other</entry>
    <entry name='speed'>1333 MHz</entry>
    <entry name='manufacturer'>Hyundai</entry>
    <entry name='serial_number'>2DD13521</entry>
    <entry name='part_number'>HMT31GR7CFR4A-H9</entry>
  </memory_device>
  <memory_device>
    <entry name='size'>8192 MB</entry>
    <entry name='form_factor'>DIMM</entry>
    <entry name='locator'>P2-DIMM2A</entry>
    <entry name='bank_locator'>BANK8</entry>
    <entry name='type'>DDR3</entry>
    <entry name='type_detail'>Other</entry>
    <entry name='speed'>1333 MHz</entry>
    <entry name='manufacturer'>Hyundai</entry>
    <entry name='serial_number'>8CD91C1E</entry>
    <entry name='part_number'>HMT31GR7CFR4A-H9</entry>
  </memory_device>
  <memory_device>
    <entry name='size'>8192 MB</entry>
    <entry name='form_factor'>DIMM</entry>
    <entry name='locator'>P2-DIMM3A</entry>
    <entry name='bank_locator'>BANK10</entry>
    <entry name='type'>DDR3</entry>
    <entry name='type_detail'>Other</entry>
    <entry name='speed'>1333 MHz</entry>
    <entry name='manufacturer'>Hyundai</entry>
    <entry name='serial_number'>38D15521</entry>
    <entry name='part_number'>HMT31GR7CFR4A-H9</entry>
  </memory_device>
</sysinfo>


10.  virsh nodeinfo
CPU model:           x86_64
CPU(s):              24
CPU frequency:       1600 MHz
CPU socket(s):       1
Core(s) per socket:  6
Thread(s) per core:  2
NUMA cell(s):        2
Memory size:         49486468 KiB

1 comment: