Sunday, October 28, 2012

Redhat virtualization (KVM)

I am So Proud Today to write this topic , after 14 Hours Of continuous working . I Enabled Virtualization On Redhat , Its was challenging to me ,  I feel for moment its impossible to enable it .

But After finishing KVM installation and see everything is working fine i knew its deserve every moments . I believe in what they say now " Never Give Up " . I posting this article today for the people who wants to learn something new. And if you face any problem you can contact me here, I Wrote this because there's no much information about the package that you should install while you are working on Virtualization But Hope you will find this useful.


you can install the package from Redhat Media , some Package will Generate what called Package Dependency , You will start searching for missing Package on media with same name as appear to you . its waste of time , i will post under this topic the most important package that you need to install to avoid this error. 
Some Other Information you need to know To Check If KVM Support : 

Solution One Using :

/proc/cpuinfo , the output :


The flags to look out for are:
  • vmx — Intel VT-x, basic virtualization
  • svm — AMD SVM, basic virtualization
  • ept — Extended Page Tables, an Intel feature to make emulation of guest page tables faster.
  • vpid — VPID, an Intel feature to make expensive TLB flushes unnecessary when context switching between guests.
  • npt — AMD Nested Page Tables, similar to EPT.
  • tpr_shadow and flexpriority — Intel feature that reduces calls into the hypervisor when accessing the Task Priority Register, which helps when running certain types of SMP guests.
  • vnmi — Intel Virtual NMI feature which helps with certain sorts of interrupt events in guests.
Solution Two :


dmesg | less
 
The two messages to look out for are:

kvm: no hardware support and
kvm: disabled by bios
To load KVM:

Intel
modprobe kvm_intel 
 AMD :
modprobe kvm_amd
 
 


 

Package that you need to install (Sorted) :

 etherboot-zroms-kvm-5.4.4-10.el5.x86_64.rpm
 kmod-kvm-83-105.el5.x86_64.rpm
 celt051-0.5.1.3-0.el5.x86_64.rpm
 log4cpp-1.0-4.el5.x86_64.rpm
 qpixman-0.13.3-4.el5.x86_64.rpm
 qcairo-1.8.7.1-3.el5.x86_64.rpm
 qffmpeg-libs-0.4.9-0.15.20080908.el5.x86_64.rpm
 qspice-libs-0.3.0-39.el5.x86_64.rpm
 kvm-83-105.el5.x86_64.rpm
 cyrus-sasl-md5-2.1.22-5.el5.x86_64.rpm
 iscsi-initiator-utils-6.2.0.871-0.10.el5.x86_64.rpm
 bridge-utils-1.1-2.x86_64.rpm
 kvm-qemu-img-83-105.el5.x86_64.rpm
 gnome-python2-gnomekeyring-2.16.0-3.el5.x86_64.rpm
 gtk-vnc-0.3.8-3.el5.x86_64.rpm
 gtk-vnc-python-0.3.8-3.el5.x86_64.rpm
 xen-libs-3.0.3-94.el5.x86_64.rpm
 xen-devel-3.0.3-94.el5.x86_64.rpm
 libvirt-0.6.3-20.el5.x86_64.rpm
 virt-viewer-0.0.2-3.el5.x86_64.rpm
 libvirt-python-0.6.3-20.el5.x86_64.rpm
 python-virtinst-0.400.3-5.el5.noarch.rpm
 virt-manager-0.6.1-8.el5.x86_64.rpm

Some Other package you need to install for avoiding dependency error : 

xz-lib-***
xz-4.***
If you need to Run  convirt install the below package also (Sorted) :

kernel-xen-2.6.18-164.el5
xen-3.0.3-94.el5
gpg-pubkey-32a349c9-493c185a
socat-1.6.0.1-1.el5.rf
tunctl-1.5-2.el5
python-crypto-2.0.1-13.1.el5.kb.1
python-paramiko-1.7.4-1.el5
convirt-1.1-1.fedora 

 Thank you
Osama Mustafa

No comments:

Post a Comment