LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 11-01-2009, 06:14 AM   #1
hrmb
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Rep: Reputation: 0
KVM: no hardware support


Hi
I'm working with KVM on Centos 5.4 and everything is ok. but when I compiled a new kernel ( 2.6.30.9) I've got this error KVM: no hardware support, my processor support virtualization and in bios is enabled.

Some body know how can I solve my problem?????
 
Old 11-01-2009, 09:47 AM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
post cat /proc/cpuinfo and lsmod

the module is probably not loaded, in cpuinfo we should be able to see what type of CPU you have, and decide whether to modprobe kvm_intel or kvm_amd.
 
Old 11-02-2009, 02:50 AM   #3
hrmb
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Original Poster
Rep: Reputation: 0
This is my cat /proc/cpuinfo:

Quote:
cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 2
model name : AMD Phenom(tm) 9650 Quad-Core Processor
stepping : 3
cpu MHz : 1150.000
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid pni monitor cx16 lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs
bogomips : 4609.79
clflush size : 64
power management: ts ttp tm stc 100mhzsteps hwpstate
and this is my lsmod:
Quote:
lsmod
Module Size Used by
ipt_REJECT 2676 0
bridge 39944 0
stp 2232 1 bridge
autofs4 21112 3
hidp 12340 2
rfcomm 29636 0
l2cap 19412 10 hidp,rfcomm
bluetooth 50372 5 hidp,rfcomm,l2cap
lockd 58444 0
sunrpc 164672 2 lockd
iptable_filter 2356 0
ip_tables 9732 1 iptable_filter
ip6t_REJECT 3284 1
xt_tcpudp 2676 6
ip6table_filter 2292 1
ip6_tables 10916 1 ip6table_filter
x_tables 14296 5 ipt_REJECT,ip_tables,ip6t_REJECT,xt_tcpudp,ip6_tables
ib_iser 27200 0
rdma_cm 25076 1 ib_iser
ib_cm 28428 1 rdma_cm
iw_cm 7480 1 rdma_cm
ib_sa 16956 2 rdma_cm,ib_cm
ib_mad 30956 2 ib_cm,ib_sa
ib_core 51956 6 ib_iser,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad
ib_addr 6360 1 rdma_cm
iscsi_tcp 10492 0
libiscsi_tcp 15096 1 iscsi_tcp
libiscsi 33240 3 ib_iser,iscsi_tcp,libiscsi_tcp
cpufreq_ondemand 6664 4
loop 13024 0
dm_multipath 14208 0
video 19080 0
output 2740 1 video
sbs 11068 0
sbshc 5172 1 sbs
battery 10264 0
ac 4120 0
ipv6 215828 26 ip6t_REJECT,ib_addr
lp 8900 0
snd_hda_codec_realtek 183320 1
snd_hda_intel 22632 0
snd_hda_codec 55220 2 snd_hda_codec_realtek,snd_hda_intel
snd_seq_dummy 2552 0
snd_seq_oss 23584 0
snd_seq_midi_event 6420 1 snd_seq_oss
snd_seq 41712 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 6336 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 33568 0
snd_mixer_oss 13332 1 snd_pcm_oss
snd_pcm 62104 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer 17596 2 snd_seq,snd_pcm
snd 49284 10 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd _mixer_oss,snd_pcm,snd_timer
parport_pc 23460 1
soundcore 6496 1 snd
r8169 28312 0
serio_raw 4888 0
parport 31372 2 lp,parport_pc
rtc_cmos 9292 0
button 5348 0
i2c_piix4 9380 0
mii 4756 1 r8169
snd_page_alloc 8124 2 snd_hda_intel,snd_pcm
rtc_core 14608 1 rtc_cmos
i2c_core 21032 1 i2c_piix4
floppy 46436 0
rtc_lib 2708 1 rtc_core
pcspkr 2260 0
dm_snapshot 20604 0
dm_zero 1396 0
dm_mirror 12152 0
dm_region_hash 10004 1 dm_mirror
dm_log 8408 2 dm_mirror,dm_region_hash
dm_mod 48164 11 dm_multipath,dm_snapshot,dm_zero,dm_mirror,dm_log
usb_storage 47904 0
uhci_hcd 18468 0
ohci_hcd 19396 0
ehci_hcd 29536 0

I know that the kvm module not loaded and my processor support virtualization, but I've got the "kvm: no hardware support" error before the booting Centos and in the first page. please help me.

Best Regards
 
Old 11-02-2009, 04:02 AM   #4
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
well, you need to try and run modprobr kvm_amd

are you sure AMD-V is enabled in the BIOS? If you just enabled it now, you have to not just save the BIOS and restart, you need to do a full powercycle of the server.
 
Old 11-07-2009, 09:35 AM   #5
hrmb
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Unhappy Can't install VM on KVM, help me it's urgent

Hi,
I want to use kvm as VMM for virtualization, my os is Centos 5.4 and everything is fine when I'm using "2.6.18-164.el5". but for my project I need to compile a kernel so I compile 2.6.31.5 kernel and boot it.
and kvm kernel modules are loaded.

Quote:
[root@localhost boot]# lsmod | grep kvm
kvm_amd 28536 0
kvm 143404 1 kvm_amd
I'm using this instructions to install a VM:

Quote:
qemu-img create -f qcow ubuntu.img 10G
qemu-kvm -hda ubuntu.img -cdrom ~/ISO/ubuntu-9.10-desktop-i386.iso -boot d -m 512
But
when I want to install VM on my image file I've got this error

Quote:
Message from syslogd@ at Sat Nov 7 18:48:10 2009 ...
localhost kernel: Oops: 0000 [#1] SMP
Message from syslogd@ at Sat Nov 7 18:48:10 2009 ...
localhost kernel: last sysfs file: /sys/devices/pci0000:00/0000:00:14.4/0000:03:0e.0/local_cpus
Message from syslogd@ at Sat Nov 7 18:48:10 2009 ...
localhost kernel: Process qemu-kvm (pid: 4924, ti=f203c000 task=f6a50400 task.ti=f203c000)
Message from syslogd@ at Sat Nov 7 18:48:10 2009 ...
localhost kernel: Stack:
Message from syslogd@ at Sat Nov 7 18:48:10 2009 ...
localhost kernel: Call Trace:
Message from syslogd@ at Sat Nov 7 18:48:10 2009 ...
localhost kernel: Code: 14 8b 01 d1 e8 39 c2 0f 43 c2 89 01 83 c4 28 5b 5e 5f 5d c3 55 57 56 89 c6 53 bb 08 00 00 00 83 ec 4c 8b 40 40 8b 3d 38 e9 85 c0 <83> 78 70 00 b8 c0 1a 8f c0 0f 44 df 64 8b 0d e4 f9 8e c0 8d 04
Message from syslogd@ at Sat Nov 7 18:48:10 2009 ...
localhost kernel: EIP: [<c04779ce>] balance_dirty_pages_ratelimited_nr+0x17/0x262 SS:ESP 0068:f203cce4
Message from syslogd@ at Sat Nov 7 18:48:10 2009 ...
localhost kernel: CR2: 00000000fcf497f4
Please help me! it's urgent

Last edited by hrmb; 11-07-2009 at 09:37 AM.
 
Old 11-07-2009, 01:43 PM   #6
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
If you want a fresher kernel, why use CentOS? go for Fedora

anyhow, it is possible to debug your issue, or maybe even better - file a BZ for KVM, but why bother when there are distros out there that would just work
 
Old 11-08-2009, 07:17 AM   #7
hrmb
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Original Poster
Rep: Reputation: 0
I don't think so the switch to Fedora can solve my problem, because the base of centos and fedora are same
 
Old 11-08-2009, 06:09 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

I've merged your two threads in this instance.
 
Old 11-09-2009, 03:51 AM   #9
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by hrmb View Post
I don't think so the switch to Fedora can solve my problem, because the base of centos and fedora are same
who told you they are the same?
 
Old 11-09-2009, 07:25 AM   #10
hrmb
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Hi
thanks for your replies
I want to make some changes to linux kernel for my M.S project. my problem is with kernel not Centos or Fedora. working with fedora does not solve my problem.

please help me!
 
Old 11-09-2009, 09:05 AM   #11
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Thing is, since you're using a customer kernel, there's no promise your kernel will work with the default kvm module. If you are doing things from scratch, you better compile kvm from scratch as well
 
Old 11-09-2009, 09:29 AM   #12
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by dyasny View Post
Thing is, since you're using a customer kernel, there's no promise your kernel will work with the default kvm module. If you are doing things from scratch, you better compile kvm from scratch as well
You definetlly should compile the kvm module again. But this is broken with kernel 2.6.31-5 (at least it was on sunday evening). If you find any good walkthrough that gets you to build kvm module on kernel 2.6.31-5 please let me now (I'm tired of searching. I just wait till they update either the kernel or kvm)
 
Old 11-10-2009, 04:04 AM   #13
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
I was a bit to fast with calling kvm in 2.6.31-5 broken. Just the way I did it it was broken cause I did not had the proper understanding of the packages one can download on the sourceforge packe of kvm.
The KVM module can be compiled right into the kernel and no extra packages is needed (beside qemu, but I'm talking compiling a new kernel). Just take the old config of your kernel (either from /boot/vmlinu.2.6.x-config or from /proc/config) and jump down to the last one above "Load Configuration" where it says "Virtualization". There you have all the glory of kvm right inside kernel

Cheers Zhjim
 
Old 11-10-2009, 07:29 PM   #14
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Just for the cause. I got my undetaking done. Just sharing also it my not help out.


Plan was to get pci pass through to work but the guidelines should be the same to just get a self compiled kernel to have kvm working. (this is on nearly fresh debian lenny with some minor apt-get things like qemu and tasksel installed Desktop)

1.) download kernel (stable version 2.6.31.6)
2.) untar
3.) cd to kernel dir
4.) get config from os (cp /boot/config-2.6.26-2-amd64 ./config)
5.) make menuconfig and "Load configuration" config
6.) Enable all sorts of virtualistation (will fill this out tomorrow)
7.) "Save configuration" as .config
8.) exit configuration
9.) make
10.) make modules_install && make install
11.) update-grup (might need to mkinitramfs *tomorrow*)
12.) restart
13.) the all acknowledged get something to drink && eat ( better suited while waiting for kernel to compile. see 9)
14.) get qemu-kvm from sourceforge (http://sourceforge.net/projects/kvm/...ar.gz/download)
15.) untar and compile qemu-kvm (tar -xzf; cd ...; ./configure && make && make install
16.) /usr/local/bin/qemu-system-x86_64 -m 512 -hda ....

This should get you going. I'll see if I can get some decent tutorial up during the week.
Hope this gets this thread going to build the kernel and install qemu-kvm ...

Good night
Zhjim
 
Old 11-11-2009, 07:53 PM   #15
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Lad, your cpuinfo has to have the flag vmx. If it does not have vmx then your CPU is not VT-compatible and it will not provide hardware virtualization. Usually the very expensive CPU's have this such as the Xeon or the newest AMDs 64bit. If you only have the vme flag then that will not be good enough; you need to have vmx in order to have hardware virtualization.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Red Hat Challenges Ubuntu With KVM Support LXer Syndicated Linux News 0 09-09-2009 07:00 PM
LXer: Linux: KVM Adds Support For SMP Guests LXer Syndicated Linux News 0 07-19-2007 01:17 AM
LXer: Linux: Improved KVM Performance, Vista Support LXer Syndicated Linux News 0 05-06-2007 01:46 PM
USB and KVM support teligence Linux - Enterprise 1 05-21-2005 10:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration