找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 24420|回复: 66

【2020.2.22 更新】【 PVE 6.1.7】解决华擎 J3455-ITX PVE 不能分 IOMMU 组直通的问题

[复制链接]
发表于 2019-4-22 01:35 | 显示全部楼层 |阅读模式
本帖最后由 WeDone 于 2020-3-5 11:30 编辑

5.3.18-2 暂时不要用,不知道是我删除了旧内核,还是其他问题,我现在重启卡在 loading initram...我暂时用得少,没去处理






做好备份,测试好了再投入使用!!!

做好备份,测试好了再投入使用!!!
做好备份,测试好了再投入使用!!!
========================
2020.2.22 内核更新到 5.3.18-2
2019.8.18 内核更新到 5.0.18-3
2019.7.31 更新到 PVE 6.0
赚点B,不好意思


方法参考本帖的旧内容


======================旧内容=======================================
华擎  J3455-ITX 安装 PVE 。板载网卡,PCIe 网卡,SATA 等,被分成一个大 IOMMU 组,直通就整组都划分给虚拟机,按官方方法不能顺利分组。安装 Kernel 就可以分组了。
编译出来有4个文件,我只 安装 pve-kernel-4.15.18-13-pve_4.15.18-37_amd64 ,就能分组了。

注意:没有长时间测试,对下载使用后的后果概不负责,自己做好数据备份。本人小白一个,看我上面的描述就知道我水平了


鉴于有些安装以后还是没分组的,我把大概还需要的流程描述一下:
部分文字直接复制 koolshare 论坛的 @emile239

  • 修改/etc/modules文件, 添加如下内容:
  1. vfio
  2. vfio_iommu_type1
  3. vfio_pci
  4. vfio_virqfd
复制代码
然后执行
  1. update-initramfs -u -k all
复制代码

  • Intel CPU 的
编辑:
/etc/default/grub 文件

  1. GRUB_CMDLINE_LINUX_DEFAULT="quiet"
复制代码
改成
  1. GRUB_CMDLINE_LINUX_DEFAULT="pcie_acs_override=downstream quiet intel_iommu=on"
复制代码
  • AMD CPU 的
编辑:
/etc/default/grub

  1. GRUB_CMDLINE_LINUX_DEFAULT="quiet"
复制代码
改成
  1. GRUB_CMDLINE_LINUX_DEFAULT="pcie_acs_override=downstream quiet amd_iommu=on"
复制代码

然后更新 grub
  1. update-grub
复制代码

官方文档:https://pve.proxmox.com/wiki/Pci_passthrough




补充内容 (2020-3-26 01:51):
以下更新转自 koolshare @xuplus
3.20 更新 pve-kernel-5.3.18-3
3.25 更新 pve-kernel-5.4.27-1

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-4-23 21:29 | 显示全部楼层
。。。默认AMD的叫IOMMU,INTEL的是VT-D吧,好几年没玩这些了,难道市道改名了?

点评

这个不懂,在PVE官方统一都叫 IOMMU  详情 回复 发表于 2019-4-23 21:55
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-4-23 21:55 | 显示全部楼层
wuxeon 发表于 2019-4-23 21:29
。。。默认AMD的叫IOMMU,INTEL的是VT-D吧,好几年没玩这些了,难道市道改名了?

这个不懂,在PVE官方统一都叫 IOMMU
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-5-8 12:40 | 显示全部楼层
谢谢了。试试看。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-5-8 15:36 | 显示全部楼层
dpkg -i 安装了4个包,为何界面上的分组没有变化,你说的官方方法分组能发个链接看看吗?谢谢。

点评

你好,你成功了吗?  详情 回复 发表于 2019-6-1 23:33
然后再按官方的教程操作一遍就可以了  详情 回复 发表于 2019-5-8 17:30
然后再按官方的教程操作一遍就可以了  详情 回复 发表于 2019-5-8 17:30
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-5-8 17:30 | 显示全部楼层
kabala56 发表于 2019-5-8 15:36
dpkg -i 安装了4个包,为何界面上的分组没有变化,你说的官方方法分组能发个链接看看吗?谢谢。

然后再按官方的教程操作一遍就可以了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-5-8 17:30 | 显示全部楼层
本帖最后由 WeDone 于 2019-5-8 17:36 编辑
kabala56 发表于 2019-5-8 15:36
dpkg -i 安装了4个包,为何界面上的分组没有变化,你说的官方方法分组能发个链接看看吗?谢谢。

然后再按官方的教程操作一遍就可以了
  1. IOMMU
  2. The IOMMU has to be activated on the kernel commandline. The easiest way is to enable trough grub. Edit ‘/etc/default/grub’ and add the following to the GRUB_CMDLINE_LINUX_DEFAULT variable:

  3. for Intel CPUs:

  4. intel_iommu=on
  5. for AMD CPUs:

  6. amd_iommu=on
  7. To bring this change in effect, make sure you run:

  8. # update-grub
  9. Kernel Modules
  10. You have to make sure the following modules are loaded. This can be achieved by adding them to ‘/etc/modules’

  11. vfio
  12. vfio_iommu_type1
  13. vfio_pci
  14. vfio_virqfd
  15. After changing anything modules related, you need to refresh your initramfs. On Proxmox VE this can be done by executing:

  16. # update-initramfs -u -k all
  17. Finish Configuration
  18. Finally reboot to bring the changes into effect and check that it is indeed enabled.

  19. # dmesg | grep -e DMAR -e IOMMU -e AMD-Vi
  20. should display that IOMMU, Directed I/O or Interrupt Remapping is enabled, depending on hardware and kernel the exact message can vary.

  21. It is also important that the device(s) you want to pass through are in a separate IOMMU group. This can be checked with:

  22. # find /sys/kernel/iommu_groups/ -type l
复制代码


我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-5-15 17:28 | 显示全部楼层
楼主j3455在pve下可以跑满千兆吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-6-1 11:43 | 显示全部楼层
很好,谢谢了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-6-1 23:33 | 显示全部楼层
kabala56 发表于 2019-5-8 15:36
dpkg -i 安装了4个包,为何界面上的分组没有变化,你说的官方方法分组能发个链接看看吗?谢谢。

你好,你成功了吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-6-1 23:34 | 显示全部楼层
然而并没有成功,郁闷哦。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-6-1 23:35 | 显示全部楼层
有四个设备,都在第5分组。

点评

安装完要更新 grub 和 什么(忘记了,不想再找了),你看官方文档  详情 回复 发表于 2019-6-4 15:20
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-6-1 23:36 | 显示全部楼层
/sys/kernel/iommu_groups/7/devices/0000:00:1f.0
/sys/kernel/iommu_groups/7/devices/0000:00:1f.1
/sys/kernel/iommu_groups/5/devices/0000:03:00.0
/sys/kernel/iommu_groups/5/devices/0000:00:13.2
/sys/kernel/iommu_groups/5/devices/0000:00:13.0
/sys/kernel/iommu_groups/5/devices/0000:01:00.0
/sys/kernel/iommu_groups/5/devices/0000:00:13.3
/sys/kernel/iommu_groups/5/devices/0000:00:13.1
/sys/kernel/iommu_groups/3/devices/0000:00:0f.0
/sys/kernel/iommu_groups/1/devices/0000:00:02.0
/sys/kernel/iommu_groups/6/devices/0000:00:15.0
/sys/kernel/iommu_groups/4/devices/0000:00:12.0
/sys/kernel/iommu_groups/2/devices/0000:00:0e.0
/sys/kernel/iommu_groups/0/devices/0000:00:00.0
root@pve:~#

点评

你什么版本的,我自己编译的,成功了我才发出来分享的  详情 回复 发表于 2019-6-4 15:16
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-6-1 23:53 | 显示全部楼层
装的为什么是amd64呀?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-6-4 15:16 | 显示全部楼层
linleistar 发表于 2019-6-1 23:36
/sys/kernel/iommu_groups/7/devices/0000:00:1f.0
/sys/kernel/iommu_groups/7/devices/0000:00:1f.1
/s ...

你什么版本的,我自己编译的,成功了我才发出来分享的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-18 20:23

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表