Enable kvm on Ubuntu running on VirtualBox on Wind

2019-06-16 07:11发布

问题:

I have a Windows machine with an Intel CPU (VMX Enabled on boot menu). I am running Ubuntu Guest on top of it using VirtualBox. I am running qemu on top of it to run another Guest OS, using kvm (the -enable-kvm option).

I get the following error on trying to insert kvm-intel module:

FATAL: Error inserting kvm_intel (/lib/modules/2.6.20-ARCH/kernel/drivers/kvm/kvm-intel.ko): Operation not supported

I have checked for vmx flag in the guest OS and I dont see that either

$ grep vmx /proc/cpuinfo
$

Is there anyway to enable kvm support in the guest Ubuntu operating system so that I can run kvm-enabled qemu on top of the Ubuntu guest machine?

回答1:

The vmx-feature is not passed by virtualbox. And it seems that the VirtualBox team themselves don't see that it needs to be implemented anytime soon. See the comments at

https://www.virtualbox.org/ticket/4032

This ticket has been there for 5 years (6 years now and counting..).