From 65339774ce813a47148bd8e8fd14f1fe4d447943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E5=88=80=E7=8B=90=E7=8B=B8?= Date: Mon, 22 Aug 2022 08:23:32 +0000 Subject: [PATCH] =?UTF-8?q?update=208.PVE=E5=BC=80=E5=90=AF=E7=A1=AC?= =?UTF-8?q?=E4=BB=B6=E7=9B=B4=E9=80=9A=E5=8A=9F=E8=83=BD.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 秋刀狐狸 --- 8.PVE开启硬件直通功能.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/8.PVE开启硬件直通功能.md b/8.PVE开启硬件直通功能.md index 11a22a7..c632f40 100644 --- a/8.PVE开启硬件直通功能.md +++ b/8.PVE开启硬件直通功能.md @@ -1,6 +1,6 @@ ## 1.修改系统Grub参数 -参考官方文档 [qm_pci_passthrough](https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_pci_passthrough) 开启 PVE 硬件直通功能。 +参考官方文档 [qm_pci_passthrough](https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_pci_passthrough) 和 [Pci passthrough](https://pve.proxmox.com/wiki/Pci_passthrough#Verify_IOMMU_is_enabled) 开启 PVE 硬件直通功能。 使用 SSH 工具登录到 PVE 服务器,编辑系统 Grub 的配置文件 `/etc/default/grub` : @@ -13,14 +13,14 @@ nano /etc/default/grub ```bash ## Intel 处理器添加参数 -GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on" +GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt" ``` 根据官方文档的说明,AMD 处理器下硬件直通功能将会自动打开,否则需要手动修改 Grub 配置文件: ```bash ## AMD 处理器添加参数 -GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on" +GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on iommu=pt" ``` 修改并保存后,需要更新系统 Grub :