我可以 运行 Azure VM 中的 Virtualbox
Can I run a Virtualbox inside a Azure VM
我正在寻找以下是否可行。
- 在 Azure 中创建一个 VM (Windows 10),安装 Virtual Box 并启动一个 VM
在 Virtualbox
- 在 Azure 中创建虚拟机 (Linux),安装 Virtual Box 并
在 Virtualbox 中启动虚拟机
因为当我尝试时,VM 崩溃。我正在失去与 VM 的连接。我在这里尝试了列表中的几个选项 sizes of vms on Microsft page Dv3 是我尝试过的,但是它没有任何区别。我看到某些地方不支持嵌套虚拟化之类的声明,并且还看到这样的声明已经更改并且现在受支持。如果有人能在 2020 年 1 月今天对此发表评论,我将不胜感激
编辑:
日期 2020 年 1 月 31 日:
我启用了 Hyper-V 并执行了 vagrant up,现在看到这个错误
> PS C:\Users\sbolla\bionictest\.vagrant> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'hashicorp/bionic64' version '1.0.282' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2200 (host) (adapter 1)
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "1580af6f-ce61-491c-8a8a-93dbc298cef4", "--type", "headless"]
Stderr: VBoxManage.exe: error: Raw-mode is unavailable courtesy of Hyper-V. (VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
PS C:\Users\sbolla\bionictest\.vagrant>
同意@Falco,您需要为VM 启用虚拟化,不仅创建VM 大小为Dv3 的VM,还需要使用脚本启用它或手动使用PowerShell 命令。查看有关 How to enable nested virtualization in an Azure VM.
的步骤的更多详细信息
是的,您可以 运行 Azure 中的 Virtualbox,它有两个先决条件:
- 主机 VM 的大小应为“v3”
- 根据 MS 文章,嵌套虚拟化仅在 Windows 10 和 Windows Server 2016 上受支持。
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/nested-virtualization
截至 2020 年 7 月 7 日,嵌套虚拟化支持如下:
- VMware - 否
- VirtualBox - 是
- Hyper-V - 是
我已经通过安装 Kali Linux 在 Windows 10 上尝试并测试了它,是的,它在 Hyper-V 和 VirtualBox 上都有效,但我面临的问题是它相当不稳定。我的主机时不时重启,嵌套虚拟机第一次重启后性能很差。目前不知道是只有我一个人遇到这样的问题还是大家都有。
还没有在 Linux 主机上尝试过 VirtualBox。
我正在寻找以下是否可行。
- 在 Azure 中创建一个 VM (Windows 10),安装 Virtual Box 并启动一个 VM 在 Virtualbox
- 在 Azure 中创建虚拟机 (Linux),安装 Virtual Box 并 在 Virtualbox 中启动虚拟机
因为当我尝试时,VM 崩溃。我正在失去与 VM 的连接。我在这里尝试了列表中的几个选项 sizes of vms on Microsft page Dv3 是我尝试过的,但是它没有任何区别。我看到某些地方不支持嵌套虚拟化之类的声明,并且还看到这样的声明已经更改并且现在受支持。如果有人能在 2020 年 1 月今天对此发表评论,我将不胜感激
编辑: 日期 2020 年 1 月 31 日:
我启用了 Hyper-V 并执行了 vagrant up,现在看到这个错误
> PS C:\Users\sbolla\bionictest\.vagrant> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'hashicorp/bionic64' version '1.0.282' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2200 (host) (adapter 1)
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "1580af6f-ce61-491c-8a8a-93dbc298cef4", "--type", "headless"]
Stderr: VBoxManage.exe: error: Raw-mode is unavailable courtesy of Hyper-V. (VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
PS C:\Users\sbolla\bionictest\.vagrant>
同意@Falco,您需要为VM 启用虚拟化,不仅创建VM 大小为Dv3 的VM,还需要使用脚本启用它或手动使用PowerShell 命令。查看有关 How to enable nested virtualization in an Azure VM.
的步骤的更多详细信息是的,您可以 运行 Azure 中的 Virtualbox,它有两个先决条件:
- 主机 VM 的大小应为“v3”
- 根据 MS 文章,嵌套虚拟化仅在 Windows 10 和 Windows Server 2016 上受支持。 https://docs.microsoft.com/en-us/azure/virtual-machines/windows/nested-virtualization
截至 2020 年 7 月 7 日,嵌套虚拟化支持如下:
- VMware - 否
- VirtualBox - 是
- Hyper-V - 是
我已经通过安装 Kali Linux 在 Windows 10 上尝试并测试了它,是的,它在 Hyper-V 和 VirtualBox 上都有效,但我面临的问题是它相当不稳定。我的主机时不时重启,嵌套虚拟机第一次重启后性能很差。目前不知道是只有我一个人遇到这样的问题还是大家都有。
还没有在 Linux 主机上尝试过 VirtualBox。