我可以在Azure VM内运行Virtualbox

问题描述 投票:0回答:1

我正在寻找是否可以进行以下操作。

  • 在Azure中创建VM(Windows 10),安装Virtual Box并启动VM在Virtualbox中
  • [在Azure(Linux)中创建VM,安装Virtual Box和在Virtualbox中启动VM

因为尝试时,VM 崩溃。而且我失去了与虚拟机的连接。我在这里尝试了几个选项sizes of vms on Microsft page Dv3是我尝试过的,但是并没有什么不同。我看到有些地方不支持嵌套虚拟化之类的语句,并且看到这样的语句已更改且现在受支持。感谢您是否能在2020年1月前对此发表评论

编辑:日期:2020年1月31日:

我启用了Hyper-V并做了一个游民,现在看到此错误

> 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>
azure virtualbox
1个回答
0
投票

同意@Falco,您需要为VM启用虚拟化,不仅需要创建VM大小为Dv3的VM,还需要使用脚本启用它或手动使用PowerShell命令。查看有关How to enable nested virtualization in an Azure VM步骤的更多详细信息。

© www.soinside.com 2019 - 2024. All rights reserved.