On Sat, 27 Aug 2016, dark_neo wrote:
Hello,
I'd tried to run a qemu vm using kvm, but I get the message "failed to initialize KVM: no such file or directory". I upgrade the kernel to 4.8.0-rc3 thinking that was a kernel issue (but I don't think it so, really) but nothing. The CPU virtualization is enabled on bios and in the kernel sources, I don't see anything to enable kvm (I think there are enabled by default from some old kernel version onward). I try run `modprobe kvm`, `modprobe kvm_intel`, but nothing. I'd tried review the logs too but I see nothing too.
I attach the /proc/cpuinfo, lsmod and dmesg outputs.
Do anyone knows whats happens? Do I forget something to enable kvm? I don't have this issues on other Linux OS before.
Thanks PD: sorry for my english. It is not my native language.
I am running 4.7.0 kernel with a working qemu/kvm on Intel chipset. My config has these: # grep -i kvm .config CONFIG_HAVE_KVM=y CONFIG_HAVE_KVM_IRQCHIP=y CONFIG_HAVE_KVM_IRQFD=y CONFIG_HAVE_KVM_IRQ_ROUTING=y CONFIG_HAVE_KVM_EVENTFD=y CONFIG_KVM_APIC_ARCHITECTURE=y CONFIG_KVM_MMIO=y CONFIG_KVM_ASYNC_PF=y CONFIG_HAVE_KVM_MSI=y CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y CONFIG_KVM_VFIO=y CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y CONFIG_KVM_COMPAT=y CONFIG_HAVE_KVM_IRQ_BYPASS=y CONFIG_KVM=m CONFIG_KVM_INTEL=m # CONFIG_KVM_AMD is not set CONFIG_KVM_DEVICE_ASSIGNMENT=y If you make menuconfig for the kernel, you can use /CONFIG_HAVE_KVM to search for individual options, they are some times hard to find through the menus. I am surpised that modprobe did not make them show up in the lsmod yet did not give any error message. Check dmesg|tail right after the modprobe and see if there are any errors. That is as much as I know. Maybe if this doesn't help some one else on the list knows what to look for. -Daryl