linux – 缺少/ dev / kvm而内核模块kvm.ko和kvm-intel.ko都被加载

uname -a显示:

Linux localhost 2.6.39-gentoo-r3-nsfocus+ #52 SMP PREEMPT Wed Feb 12
15:37:56 CST 2014 i686 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
GenuineIntel GNU/Linux

我已经在BIOS上打开了英特尔VT. / proc / cpuinfo文件内容:

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 nx
rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc
aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3
cx16 xtpr pdcm sse4_1 sse4_2 x2apic popcnt aes xsave avx lahf_lm arat
epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid

当我运行qemu时,输出是:

>./qemu-system-x86_64 -smp 1 -m 1024 -enable-kvm -vnc :1 -usb -usbdevice tablet -hda /opt/nsfocus/sda1/win2008r2.qcow2
Could not access KVM kernel module: No such file or directory
failed to initialize KVM: No such file or directory

我已经尝试将kvm和kvm-intel编译成内核而不是内核模块,结果是一样的.

解决方法:

尝试手动添加:

mknod /dev/kvm c 10 232
上一篇:C++标准模板库(STL)和容器


下一篇:QEMU可以在VMWare或VirtualBox上运行吗?