在虚拟机中启用VT-x [英] Enabling the VT-x inside a virtual machine
问题描述
我在Windows上安装的Oracle Virtual Machine中在Ubuntu中工作.
I work in Ubuntu from Oracle Virtual Machine which is installed on top of Windows.
我已经在主机BIOS中激活了VT-x功能.之后,我创建了一个启用了VT-x和EPT的新虚拟机.
I have activated the VT-x feature in the host BIOS. After this I created a new virtual machine with VT-x and EPT enabled.
现在我运行
$ egrep '(vmx|svm)' /proc/cpuinfo
从访客中检查是否启用了vmx功能,并且答案为0,即未启用.
from the guest to check if the vmx feature is enabled and the answer is 0, i.e. not enabled.
如何在访客VM上启用此功能?
How can I enable this feature on the guest VM?
推荐答案
您无法在Virtualbox中启用VT-x.有一张票尚未修复
You can't enable VT-x inside Virtualbox. There's a ticket for it that hasn't been fixed yet
[klaus编辑2018-05-06:]
此功能正在使用一段时间.实施完成并经过测试后,所有用户都可以使用.
This feature is being worked on for a while. Once the implementation is complete and tested it will be available to all users.
尽管可以通过Hyper-V和VMWare ESX或ESXi运行嵌套的VM
It's possible to run nested VMs with Hyper-V and VMWare ESX or ESXi though
- 运行Hyper-具有嵌套虚拟化功能的虚拟机中的V
- 如何在VM上启用VT-X
- 是否可以在VM内部使用VMX CPU指令?
- 如何在虚拟机内部的虚拟机中启用VT-x
- 是否可以在另一个虚拟机中设置虚拟机
- 如何在虚拟机中运行VMWare ESX或ESXi?
- 嵌套的虚拟化-有可能吗?
- Run Hyper-V in a Virtual Machine with Nested Virtualization
- How to enable VT-X on VM
- Is it possible to use VMX CPU instructions inside VM?
- How to enable VT-x inside a Virtual Machine inside a Virtual Machine
- Is it possible to setup a virtual machine inside another virtual machine
- How to run VMWare ESX or ESXi in a virtual machine?
- Nested virtualization - is it possible?
但是它确实需要EPT才能运行.确保您的主机CPU具有EPT支持.如果没有EPT,则只能使用二进制转换运行32位VM
However it does need EPT to run. Make sure your host CPU has EPT support. Without EPT you can only run 32-bit VMs using binary translation
- 运行支持嵌套32位VM的嵌套虚拟化"需要Intel VT-x或AMD-V
- 运行嵌套的64位VM需要Intel EPT或AMD RVI.
https://www.virtuallyghetto.com/2012/08/how-to-enable-nested-esxi-other.html
如果某些虚拟机管理程序发现它在虚拟机内部或某个级别的虚拟机中运行,则拒绝运行.也就是说,可以使用二进制翻译或类似于Bochs的模拟器来运行任意深度嵌套的虚拟机.或qemu
Some hypervisors do refuse to run if it found out that it's running inside a virtual machine or in a virtual machine some levels deep. That said, it's possible to run arbitrarily deep nested virtual machines using binary translation or an emulator like Bochs or qemu
这篇关于在虚拟机中启用VT-x的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!