在 virtualbox 来宾上运行 64Bit Ubuntu [英] Run 64Bit Ubuntu on virtualbox guest

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

问题描述

我有安装了 virtualbox 的 ubuntu 16.04 64Bit 主机.虚拟化已启用,因此我可以成功创建一个 ubuntu 16.04 64Bit 来宾并启动它.现在我想在 guest 上创建一个新的 Ubuntu 64Bit 盒子,但显然我无法做到,因为虚拟化被禁用(即使我在虚拟盒子中启用了 VTx 设置).有什么解决方法吗?如果不是,为什么?

I have ubuntu 16.04 64Bit Host with virtualbox installed. Virtualization has been enabled so I could create an ubuntu 16.04 64Bit guest successfully and start it. Now I would like to create a new Ubuntu 64Bit box on the guest but I am not able to do it apparently because virtualization is disabled (even if I enabled the VTx setting in virtual box). Is there any workaround? If not, why?

推荐答案

我认为这是一个反复出现的问题,但找不到好的帖子.

I believe its a recurring question but cannot find a good post.

我可以在 quora 上找到一个很好的答案 https://www.quora.com/VirtualBox-inside-VirtualBox-Is-that-possible/answer/Senthil-Nathan-19

I can find a good answer on quora https://www.quora.com/VirtualBox-inside-VirtualBox-Is-that-possible/answer/Senthil-Nathan-19

tldr;

您可以嵌套运行 32 位操作系统,但不能运行 64 位

这里是长篇故事

这是一个值得思考的有趣话题/项目,大多数人都想知道为什么这很重要或它服务于什么目的.了解如果这是可能的,为什么如果不是,帮助我们理解虚拟化更好的.对于 VirtualBox 本身来说,运行的答案是是"32 位嵌套来宾和 64 位否".VirtualBox 没有在没有 CPU 扩展的情况下运行 64 位 VM 的代码(AMD-V、IntelVT-x).因此,在主机 VM 上运行的内部 VM 将无法以支持 64 位.父/主机(它是来宾 VM)将没有CPU 扩展功能.据说 VMware 和 Xen 支持软编码 CPU 扩展.然后有以下可能性跨虚拟化技术,例如在内部启动 XenVirtualBox等

This is a fun topic/project to think about and mostly people wonder why this is important or what purpose it serves. Understanding if this is possible and why if not, helps us understand virtualization better. For VirtualBox itself the answer to this is "yes" for running 32-bit nested guests and "no" for 64-bit. VirtualBox does NOT have the code for running 64-bit VMs without CPU Extensions (AMD-V, Intel VT-x). So the inner VM that is running on a host VM will not be able to support 64-bit. The parent/host (which is a guest VM) will not have the CPU extension feature. Supposedly VMware and Xen support soft coding the CPU extensions. And then there are possibilities of crossing virtualization technologies such as starting Xen inside VirtualBox, etc.

Intel Haswell CPU 有一种新的虚拟化技术,称为虚拟机控制结构 (VMCS) 阴影.VMCS 阴影,加速嵌套虚拟化,允许来宾以最少的时间运行影响.一旦全部虚拟化,VMCS 可能会成为主流技术开始实施它.VMCS 允许您运行多个一个 CPU 上的虚拟机管理程序.如果需要创建嵌套VM(或多个 VM),考虑运行基于容器的 VM,例如 Linux容器或 OpenVZ.容器通常应该在另一个容器内运行虚拟机没有任何问题.

The Intel Haswell CPU has a new virtualization technology called Virtual Machine Control Structure (VMCS) Shadowing. VMCS shadowing, accelerates nested virtualization allowing guests to run with minimal impact. VMCS may become mainstream once all virtualization technologies start to implement it. VMCS allows you to run multiple hypervisors on one CPU natively. If there is a need to create nested VMs (or many VMs), consider running container based VMs such as Linux Containers or OpenVZ. Containers should typically run inside another VM without any issues.

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

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