我正在尝试使用WinSvr_STD_CORE_2016_64Bit_-4_DC_STD_X21-70526风格的 ISO 在 Debian 9 上的 KVM(Virt-Manager)下设置 Windows 2016 服务器。过去,Fedora的 virtio 驱动程序通常可以让 Windows VM 启动并运行。然而,2016 服务器版似乎无法使用任何最新的 Virtio 驱动程序。在挂载的 Virtio ISO 上选择W2k16(或任何其他目录)会导致“找不到设备驱动程序。确保安装介质包含正确的驱动程序,然后单击确定”是否有其他方法可以启动 Windows 2016 VM并在 KVM 下运行?
这就是我使用适当的 virtio 存储驱动程序在 KVM 上安装 Windows 以获得最佳性能的方式。
此示例使用 Server 2019,但对于以前版本的 Windows 回到 2008/Vista,该过程几乎相同。
首先,创建虚拟机。

选择您的 ISO 映像和您的 Windows 版本。

选择在安装前自定义 VM。

选择 Q35 芯片组。它现在是默认值,但旧版本的 virt-manager 默认为 I440FX。

您现在可以使用 SATA 驱动器开始安装,并且没有 virtio 存储驱动程序,但性能会很差。

将磁盘总线更改为 SCSI。

单击添加硬件。选择左侧的控制器。在当前的 virt-manager 版本中,将预先选择 SCSI 和 VirtIO SCSI。在旧版本上,自己选择它们。然后单击完成。

单击添加硬件。将 virtio-win ISO 映像添加为 SATA CDROM。然后单击完成。

现在您可以单击开始安装。Windows 安装开始。
没有显示磁盘。单击加载驱动程序。

单击浏览。

选择 virtio-win ISO 映像并使用箭头将其展开。

选择命名的文件夹

vioscsi
并使用箭头将其展开。选择为您的 Windows 版本命名的文件夹,然后选择命名的文件夹

amd64
(或者x86
如果您正在安装 32 位 Windows)。用于win2k16
Server 2016 和 Server 2019,直到未来的 virtio-win 更新提供win2k19
构建。然后单击确定。Red Hat VirtIO SCSI pass-through 控制器驱动程序出现。点击下一步。

现在出现虚拟磁盘。点击下一步。

Windows 安装开始。等待它完成。

安装完成,Windows 可以使用了。
