error qemu virtual machine: kvm module not found
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.
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
Hi, I'd tried re-compile the kernel, loading all modules but the only thing I can get is a kernel panic, so I don't know how much to do, and Google isn't help me this time. I look into the menus using the search on menuconfig, but the KVM symbol isn't in Virtualization menu (this is the output the search gives to me). I'll keep thinking about it. But thanks anyway for the reply! Sent from [ProtonMail](https://protonmail.com), Swiss-based encrypted email. -------- Original Message -------- Subject: Re: error qemu virtual machine: kvm module not found Local Time: August 27, 2016 6:50 PM UTC Time: August 27, 2016 4:50 PM From: wyatt@prairieturtle.ca To: dark_neo@protonmail.com crux@lists.crux.nu 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
On Sun, Aug 28, 2016 at 01:33:15PM -0400, dark_neo wrote:
Hi,
I'd tried re-compile the kernel, loading all modules but the only thing I can get is a kernel panic, so I don't know how much to do, and Google isn't help me this time. I look into the menus using the search on menuconfig, but the KVM symbol isn't in Virtualization menu (this is the output the search gives to me).
Depends on: VIRTUALIZATION [=y] && HAVE_KVM [=y] && HIGH_RES_TIMERS [=y] && NET [=y] So you'll need to make sure these are selected. When they are, the KVM options should appear in menuconfig
I'll keep thinking about it.
But thanks anyway for the reply!
-- Fredrik Rinnestam
Well, I realize my mistake: I'm using as kernel config file the provided with crux-3.2 (kernel 4.1.13), and this kernel has not the virtualization enabled (and I don't find it through menus and configuration files), so I tune up the kernel by hand and the kvm module finally has loaded with 4.7.2 kernel (lsmod shows kvm=1) I'm late so I'll make test with qemu tomorrow, but I think it's gonna be well. Thanks you all for your replies. Sent from [ProtonMail](https://protonmail.com), Swiss-based encrypted email. -------- Original Message -------- Subject: Re: error qemu virtual machine: kvm module not found Local Time: August 28, 2016 7:42 PM UTC Time: August 28, 2016 5:42 PM From: fredrik@rinnestam.se To: crux@lists.crux.nu On Sun, Aug 28, 2016 at 01:33:15PM -0400, dark_neo wrote:
Hi,
I'd tried re-compile the kernel, loading all modules but the only thing I can get is a kernel panic, so I don't know how much to do, and Google isn't help me this time. I look into the menus using the search on menuconfig, but the KVM symbol isn't in Virtualization menu (this is the output the search gives to me).
Depends on: VIRTUALIZATION [=y] && HAVE_KVM [=y] && HIGH_RES_TIMERS [=y] && NET [=y] So you'll need to make sure these are selected. When they are, the KVM options should appear in menuconfig
I'll keep thinking about it.
But thanks anyway for the reply!
-- Fredrik Rinnestam _______________________________________________ CRUX mailing list CRUX@lists.crux.nu https://lists.crux.nu/mailman/listinfo/crux
Hi, I test using the --enable-kvm flag in quemu and it's working! Thanks you all! Sent from [ProtonMail](https://protonmail.com), Swiss-based encrypted email. -------- Original Message -------- Subject: Re: error qemu virtual machine: kvm module not found Local Time: August 28, 2016 11:15 PM UTC Time: August 28, 2016 9:15 PM From: dark_neo@protonmail.com To: fredrik@rinnestam.se crux@lists.crux.nu Well, I realize my mistake: I'm using as kernel config file the provided with crux-3.2 (kernel 4.1.13), and this kernel has not the virtualization enabled (and I don't find it through menus and configuration files), so I tune up the kernel by hand and the kvm module finally has loaded with 4.7.2 kernel (lsmod shows kvm=1) I'm late so I'll make test with qemu tomorrow, but I think it's gonna be well. Thanks you all for your replies. Sent from [ProtonMail](https://protonmail.com), Swiss-based encrypted email. -------- Original Message -------- Subject: Re: error qemu virtual machine: kvm module not found Local Time: August 28, 2016 7:42 PM UTC Time: August 28, 2016 5:42 PM From: fredrik@rinnestam.se To: crux@lists.crux.nu On Sun, Aug 28, 2016 at 01:33:15PM -0400, dark_neo wrote:
Hi,
I'd tried re-compile the kernel, loading all modules but the only thing I can get is a kernel panic, so I don't know how much to do, and Google isn't help me this time. I look into the menus using the search on menuconfig, but the KVM symbol isn't in Virtualization menu (this is the output the search gives to me).
Depends on: VIRTUALIZATION [=y] && HAVE_KVM [=y] && HIGH_RES_TIMERS [=y] && NET [=y] So you'll need to make sure these are selected. When they are, the KVM options should appear in menuconfig
I'll keep thinking about it.
But thanks anyway for the reply!
-- Fredrik Rinnestam _______________________________________________ CRUX mailing list CRUX@lists.crux.nu https://lists.crux.nu/mailman/listinfo/crux
participants (3)
-
dark_neo
-
Daryl F
-
Fredrik Rinnestam