在Windows的VirtualBox上运行的Ubuntu上启用kvm [英] Enable kvm on Ubuntu running on VirtualBox on Windows

查看:141
本文介绍了在Windows的VirtualBox上运行的Ubuntu上启用kvm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台装有Intel CPU的Windows机器(在启动菜单上启用了VMX).我正在使用VirtualBox在其上运行Ubuntu Guest.我正在其上运行qemu以使用kvm(-enable-kvm选项)运行另一个Guest OS.

在尝试插入kvm-intel模块时出现以下错误:

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

我已经在来宾操作系统中检查了vmx标志,但我也没有看到

$ grep vmx /proc/cpuinfo
$

反正有没有在来宾Ubuntu操作系统中启用kvm支持,以便我可以在Ubuntu来宾计算机顶部运行启用了kvm的qemu?

解决方案

VMX非功能不是通过了由̶v̶i̶r̶t̶u̶a̶l̶b̶o̶x̶.̶并且看起来VirtualBox的团队本身鸵鸟政策看到,它需要实现随时随地̶s̶o̶o̶n̶.̶ ̶S̶e̶e̶̶t̶h̶e̶̶c̶o̶m̶m̶e̶n̶t̶s̶̶a̶t̶̶h̶t̶t̶p̶s̶:̶/̶/̶w̶w̶w̶w̶.̶v̶i̶r̶t̶u̶a̶l̶b̶o̶x̶/̶̶2̶0̶

T̶h̶i̶s̶̶t̶i̶c̶k̶e̶t̶̶h̶a̶s̶̶b̶e̶e̶n̶̶t̶h̶e̶r̶e̶e̶f̶o̶r̶̶5̶̶y̶e̶a̶r̶s̶̶(̶̶

从6.0版开始,现在支持嵌套虚拟化(当前仅适用于AMD cpus!)

https://blogs.oracle.com/virtualization /oracle-vm-virtualbox-60-now-available

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?

解决方案

T̶h̶e̶ ̶v̶m̶x̶-̶f̶e̶a̶t̶u̶r̶e̶ ̶i̶s̶ ̶n̶o̶t̶ ̶p̶a̶s̶s̶e̶d̶ ̶b̶y̶ ̶v̶i̶r̶t̶u̶a̶l̶b̶o̶x̶.̶ ̶A̶n̶d̶ ̶i̶t̶ ̶s̶e̶e̶m̶s̶ ̶t̶h̶a̶t̶ ̶t̶h̶e̶ ̶V̶i̶r̶t̶u̶a̶l̶B̶o̶x̶ ̶t̶e̶a̶m̶ ̶t̶h̶e̶m̶s̶e̶l̶v̶e̶s̶ ̶d̶o̶n̶'̶t̶ ̶s̶e̶e̶ ̶t̶h̶a̶t̶ ̶i̶t̶ ̶n̶e̶e̶d̶s̶ ̶t̶o̶ ̶b̶e̶ ̶i̶m̶p̶l̶e̶m̶e̶n̶t̶e̶d̶ ̶a̶n̶y̶t̶i̶m̶e̶ ̶s̶o̶o̶n̶.̶ ̶S̶e̶e̶ ̶t̶h̶e̶ ̶c̶o̶m̶m̶e̶n̶t̶s̶ ̶a̶t̶ ̶ ̶h̶t̶t̶p̶s̶:̶/̶/̶w̶w̶w̶.̶v̶i̶r̶t̶u̶a̶l̶b̶o̶x̶.̶o̶r̶g̶/̶t̶i̶c̶k̶e̶t̶/̶4̶0̶3̶2̶ ̶ ̶

T̶h̶i̶s̶ ̶t̶i̶c̶k̶e̶t̶ ̶h̶a̶s̶ ̶b̶e̶e̶n̶ ̶t̶h̶e̶r̶e̶ ̶f̶o̶r̶ ̶5̶ ̶y̶e̶a̶r̶s̶ ̶(̶6̶ ̶y̶e̶a̶r̶s̶ ̶n̶o̶w̶ ̶a̶n̶d̶ ̶c̶o̶u̶n̶t̶i̶n̶g̶.̶.̶)̶.̶

Since version 6.0, nested virtualization is now supported (currently for AMD cpus only!)

https://blogs.oracle.com/virtualization/oracle-vm-virtualbox-60-now-available

这篇关于在Windows的VirtualBox上运行的Ubuntu上启用kvm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆