LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   KVM (https://www.linuxquestions.org/questions/linux-software-2/kvm-895902/)

paruhang 08-06-2011 07:50 AM

KVM
 
hellow, m using rhel 6.0 64 bits in my machine.
i have problem in kvm. when i run kvm try to create new guest. no hypervisor options were found for this connection so i reinstall rhel 6.0 and try to run kvm same problem, ERROR: NO HYPERVISOR OPTIONS WERE FOUND FOR THIS CONNECTION messages display. but when i press enter key it goes to 2nd stepd out of 5.
i have tired to check for bios settings to enable cpu to support kvm but there is no options.
i have checked to my local machine as follows:

# rpm -qa | grep -i kvm
qemu-kvm-0.12.1.2-2.113.el6.x86_64

# cat /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow constant_tsc up rep_good nonstop_tsc extd_apicid pni cx16 lahf_lm extapic cr8_legacy 3dnowprefetch osvw skinit.
can anybody tell me what is my problem in kvm.

roger_heslop 08-06-2011 12:49 PM

Has KVM worked before on this box? In the BIOS, you'll need to ensure the virtualization option is turned on, you may not have that option as you should have a vmx or svm flag in /proc/cpuinfo, this being the case, it is doubtful that KVM will work. If you do have a system that has virtualization in the CPU hardware, check that all of the below packages that are needed for KVM are installed:

Code:

qemu-kvm
python-virtinst
virt-manager
virt-top
virt-viewer
libvirt
libvirt-client

Also check that the dependent module is loaded:
Code:

modprobe kvm
That should do it for you.

paruhang 08-07-2011 04:25 AM

i have search in add/remove software:

qemu-kvm qemu-kvm-2:0.12.1.2.113.el6(x86_64)
python-virtinst python-virtinst-0.5000.3-7.el6(noarch)
virt-manager virt-manager-0.8.4-8.el6(noarch)
virt-top virt-top-1.0.4-3.1.el6(x86_64)
virt-viewer virt-viewer-0.2.1-2.el6(x86_64)
libvirt libvirt-0.8.1-27.el6(x86_64),libvirt-client-0.8.1-27.el6(x86_64)
libvirt-client libvirt-client-0.8.1.27.el6(x86_64)

modprobe kvm no result found

paruhang 08-07-2011 10:17 AM

but still same problem ERROR: NO HYPERVISOR OPTIONS WERE FOUND FOR THIS CONNECTION.
can anybody help me to troubleshoot this;

roger_heslop 08-07-2011 12:31 PM

Are you running an Intel or AMD processor. If Intel, you must have the vmx flag in /proc/cpuinfo. If AMD, you must have svm. Having not seen either in the flags from the posted
Code:

cat /proc/cpuinfo
it may very well not be likely on this box. Did you see anything in the BIOS regarding hardware based virtualization that can be toggled on and off?

Also, when you say modprobe kvm is not found, are you talking about the module? On a fresh installation of Centos 6 the command had run without any errors after installing all necessary packages, so seeing 'no result found' isn't a good sign.

paruhang 08-08-2011 04:36 AM

i have AMD SEMPRON cup and RHEL 6.0, 64 bits.does lm support KVM or not...?

roger_heslop 08-08-2011 07:55 AM

Unfortunately the AMD Sempron does not support hardware based virtualization. KVM would need to be set up on another system.

paruhang 08-11-2011 05:33 AM

hi,
iam using AMD SEMPRON 64 bits and iam using rhel 6.0 and i installed virtualbox while installing virtual box this error occurs and i download kernel-devel and install, again i reinstall virtualbox same error occurs. can anyone help me!


[root@server Downloads]# rpm -ivh VirtualBox-4.1-4.1.0_73009_rhel6-1.x86_64.rpm
warning: VirtualBox-4.1-4.1.0_73009_rhel6-1.x86_64(2).rpm: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY
Preparing... ########################################### [100%]
1:VirtualBox-4.1 ########################################### [100%]

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMS [FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)


All times are GMT -5. The time now is 10:53 PM.