1. Intel Graphics SR-IOV 介绍
Intel Graphics SR-IOV 是 Intel 最新的图形虚拟化技术。单根 I/O 虚拟化 (SR-IOV) 通过将设备划分为多个虚拟功能来定义共享物理设备功能的标准方法。每个虚拟函数都直接分配给一个虚拟机,从而为虚拟机实现接近原生的性能。
英特尔显卡 SR-IOV 的主要优点是:
- 一种与虚拟机共享物理 GPU 的标准方法,从而允许在虚拟系统中有效使用 GPU 资源。
- 改进了虚拟机中的视频转码、媒体 AI 分析和虚拟桌面基础架构 (VDI) 工作负载性能。
- 支持多达 4 个独立显示输出和 7 个虚拟化功能(第 12 代 Intel® Core™ 嵌入式处理器)。
- 支持多个来宾作系统。
2. 支持Intel Graphics SR-IOV的硬件
支持Intel vGPU的硬件包括12代以后的CPU的核显,以及Intel的数据中心系列的GPU(Flex系列)。
Id | 产品系列 | 是否支持 |
---|---|---|
1 | Intel® Core™ Ultra Processor (Series 2) processor family (Formerly Known as Arrow Lake) | 支持 |
2 | 14th Gen Intel® Core™ processor family (Formerly Known as Raptor Lake Refresh) | 支持 |
3 | 13th Gen Intel® Core™ processor family (Formerly Known as Raptor Lake) | 支持 |
4 | Intel® Data Center GPU Flex Series discrete graphics family (Formerly Known as Arctic Sound) | 支持 |
5 | 12th Gen Intel® Core™ processor family (Formerly Known as Alder Lake) | 支持 |
与NVIDIA的显卡相比,使用Intel Graphics SR-IOV技术,可以不需要购买独立的显卡。直接使用核显的vGPU功能。可以提供高性价比的解决方案。
3. Proxmox VE 8.3 启用 Intel Graphics SR-IOV
3.1 安装好 Proxmox VE 8.3,确保主机可以联网。
3.2 更新 Porxmox VE 8.3 到最新版本
可以通过如下脚本升级
curl -o- http://vdi.doracloud.cn:9000/software/pveupdate.sh |bash
reboot
3.3 执行启用 sriov01.sh 脚本
curl -o- http://vdi.doracloud.cn:9000/software/sriov01.sh|bash
3.4 执行启用 sriov02.sh 脚本
curl -o- http://vdi.doracloud.cn:9000/software/sriov02.sh|bash
3.5 主机重启后,检查 vGPU 是否启用
root@pve5:~# lspci |grep VGA
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
00:02.1 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
00:02.2 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
00:02.3 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
00:02.4 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
00:02.5 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
00:02.6 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
00:02.7 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
如果出现8个VGA设备,表示Intel 核显的 SR-IOV 启用成功
4. 部署 DoraCloud,启用 Intel 核显vGPU
4.1 一键部署 DoraCloud
cd /var/lib/vz/dump; wget -qO- https://dl.doracloud.cn/dpinstall.pl --referer https://doracloud.cn | perl
4.2 DoraCloud 的桌面池启用 核显 vGPU
4.3 桌面windows 安装核显驱动
windows的vGPU驱动可以直接通过 windows 的在线更新安装,也可以直接去Intel 官网下载核显驱动。
驱动安装后,可以在虚拟机中识别核显。
5. 总结
使用十二代以上的Intel CPU,搭配Proxmox VE 和 DoraCloud,可以创建带有vGPU的桌面,满足办公和轻度设计的需求。支持7个vGPU实例。
比如一个12代i7-12700的主机,搭配64G内存,1.92TB 企业级SSD硬盘。 可以满足7个用户办公的需求。
人均配置为: 4核心、8G内存、240G SSD硬盘。
由于办公场景下,用户对CPU的占用比较小,用户的体验主要取决于单核的主频, 实际用户体验相当于每人拥有一个 i7 的桌面。 由于配置有核显vGPU,可以运行一些平面设计软件,以及一些需要GPU的软件。
除了省钱外,该方案实现和用户数据的集中存储,避免数据的丢失和泄密。 此外 DoraCloud 还可以实现远程接入,实现远程办公。摆脱了传统PC 办公的限制。比较适合初创企业、小团队、工作室。
注:本文的操作过程,也适用于 Proxmox VE 8.4 版本,以及 Intel 14代CPU。