Dam*_*les 5 hyper-v virtual-machine windows-10 windows-subsystem-for-linux
要在 Windows 2020 年 5 月 10 日更新中使用 Windows Subsystem for Linux 2,文档说我必须打开“虚拟机平台”Windows 功能。它是某种 Hyper-V 吗?它不会导致与其他软件的 Hyper-V 相同的问题吗?
要讨论这个问题,您首先需要了解虚拟化堆栈的不同组件:
称为Windows 管理程序[1]的(裸机)管理程序- 在具有最高权限级别的机器上运行的软件。它控制每个分区获得多少 CPU 时间。
分区 - 权限低于管理程序的操作系统软件。他们运行您的应用程序。它们是 Windows、Linux、Docker 镜像、Android。“主”操作系统,有时也称为“主机”,正式称为父分区。 [2]
控制Windows 管理程序的客户端软件称为Hyper-V 平台[3] - 不要与管理程序本身混淆。平台中的服务向管理程序发送命令以控制它,打开虚拟机、关闭虚拟机、复制、备份等。该平台软件运行在父分区上,父分区具有控制Windows 管理程序的访问权限。
控制Hyper-V 平台的 GUI 软件Hyper-V 管理器。如果您不需要 GUI,也可以使用 Powershell 来控制Hyper-V 平台。
微软公开的允许第三方软件使用Windows Hypervisor的 API,称为Windows Hypervisor Platform [4]。VMWare Workstation 15.5.5+ 和 VirtualBox 6+ 可以使用这个新 API 在Windows Hypervisor上运行 VM 。(他们可以使用自己的管理程序或Windows 管理程序)
Microsoft 在内部为 WSL2 使用的另一个 API,称为Virtual Machine Platform。这是 Microsoft 未记录的。他们唯一提到的是您需要为 WSL2 启用此功能。 [5]
最后,Microsoft 将使用Hyper-V 平台创建、启动、停止、复制 VM 的能力简称为Hyper-V。此功能仅限于 Windows Server 和 Windows Pro、Enterprise、Education[6]。不要将在Windows Hypervisor上运行 VM 的能力与Hyper-V混淆。Windows 10 Home 可以使用在Windows Hypervisor上运行的 WSL2 容器,它还可以通过 VMWare/VirtualBox使用Windows Hypervisor Platform API在Windows Hypervisor上运行 VM 。
在Windows Hypervisor Platform之前,人们通常声称Hyper-V与 VMWare/VirtualBox 使用的第三方管理程序不兼容。这在技术上是将苹果与橙子进行比较。更直接的比较是在Windows 管理程序和不兼容的第三方管理程序之间进行比较。
Is it some sort of Hyper-V? Doesn't it cause the same problems as Hyper-V with other software?
Hyper-V使用Windows Hypervisor,WSL2 也通过Virtual Machine Platform使用Windows Hypervisor,它们是兼容的。VMWare Workstation 15.5.5+ 和 VirtualBox 6+ 也可以通过同样兼容的Windows Hypervisor Platform使用Windows Hypervisor。 [7]
任何不使用Windows 管理程序的第三方管理程序都与 WSL2 或Hyper-V不兼容。
[1] Hyper-V uses the Windows hypervisor- https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/hyper-v-technology-overview#how-hyper-v-works
[2] The Microsoft hypervisor must have at least one parent, or root, partition, running Windows. https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/reference/hyper-v-architecture
[3] Hyper-V has required parts that work together so you can create and run virtual machines. Together, these parts are called the virtualization platform. https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/hyper-v-technology-overview#what-does-hyper-v-consist-of
[4] https://docs.microsoft.com/en-us/virtualization/api/
[5] WSL 2 is available [...] including Windows 10 Home. The newest version of WSL uses Hyper-V architecture to enable its virtualization. This architecture will be available in the 'Virtual Machine Platform' optional component. https://docs.microsoft.com/en-us/windows/wsl/wsl2-faq#does-wsl-2-use-hyper-v-will-it-be-available-on-windows-10 -家
[7] recently both VirtualBox and VMware have released versions that support Hyper-V and WSL2. https://docs.microsoft.com/en-us/windows/wsl/wsl2-faq#will-i-be-able-to-run-wsl-2-and-other-3rd-party-virtualization -tools-such-as-vmware-or-virtualbox
| 归档时间: |
|
| 查看次数: |
3747 次 |
| 最近记录: |