jinlife Posted March 17, 2023 Author Share Posted March 17, 2023 (edited) On 3/16/2023 at 7:06 PM, yuhu2001 said: 大佬,6.12出来了 RC测试版,暂时没兴趣弄。等个稳定版再说。 如果你没有IOMMU分组的需求,可以装个原版,然后装个R8152的plugin,也能测试的。 Edited March 17, 2023 by jinlife Quote Link to comment
jinlife Posted March 17, 2023 Author Share Posted March 17, 2023 (edited) 1 hour ago, hoeman said: How do I revert this blacklist? Anyone? I'm asking because I'd like to upgrade to 6.12 rc1 but when I upgrade from my current setup, it doesn't detect the r8125 built-in NIC of my motherboard. 去U盘删掉这个文件,重启就行了。 如果是已有服务器,有数据了,那不建议用什么rc测试版,不稳定,除非你想帮官方做测试,没什么重要数据。 Edited March 17, 2023 by jinlife Quote Link to comment
hoeman Posted March 18, 2023 Share Posted March 18, 2023 21 hours ago, jinlife said: Go to the U disk to delete this file, and restart it. If there is an existing server with data, it is not recommended to use any rc test version, which is unstable, unless you want to help the official test, there is no important data. 你说得对。我不要更新了。转回6.11.5。一切没事。 Quote Link to comment
surge Posted March 30, 2023 Share Posted March 30, 2023 On 8/2/2022 at 5:26 PM, benwwchen said: 先谢谢楼主提供的驱动和这位发现桥接影响速度的老哥,虽然查了一下原因不明,但是关掉之后确实好了。 另外跟各位补充一下,关掉桥接之后虚拟机还是有办法直接桥接到物理网络的,可以通过 macvtap 的方法配置,具体方法如下: 1. 先在 SETTINGS - VM Manager 里把 Default network source: 改为 virbr0,这个是用于虚拟机和宿主机(Unraid)之间通信的网络,因为 macvtap 桥接方式下虚拟机和宿主机不能直接通信 2.在虚拟机编辑界面右上角打开XML VIEW,找到网卡的位置,改成使用两个卡: <interface type='direct'> <mac address='xx:xx:xx:xx:xx:x1'/> <source dev='bond0' mode='vepa'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> </interface> <interface type='bridge'> <mac address='xx:xx:xx:xx:xx:x2'/> <source bridge='virbr0'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> </interface> 其中, 第一个 interface 是用 macvtap 的方式通过 bond0 网卡来跟物理网络连接(如果没有打开 bonding 的话这里 bond0 应该可以对应修改为 eth0 等物理网卡), 第二个 interface 是用默认的 NAT 网络 virbr0 来跟宿主机(Unraid)连接(会有单独的子网),如果只是需要虚拟机和宿主机互联用默认的 virbr0 应该就够了,但也可以参考官方文档[1]和示例配置步骤[3]来定制,配置文件目录在 /etc/libvirt/qemu/networks 里,但是不能直接编辑,要用 virsh 命令来编辑。 不过 Unraid 的表格编辑不支持 direct 这种配置,所以如果在 FORM VIEW 下修改了配置,网卡会被强制改回 bridge,所以每次在表格模式改完别的配置之后要再进 XML VIEW 手动修改网卡的部分。 这样配置物理网络、虚拟机、Unraid两两之间都能跑满速,暂时没发现有什么问题。 English Version: If you need VMs to still connected to physical network after disabling bridging for full speed, you could follow the following steps to connect VMs to the physical network via macvtap [1]: 1. In SETTINGS - VM Manager, change "Default network source:" to virbr0 for connections between VMs and the Unraid host because macvtap doesn't allow communication betweeen VM guests and the host, 2. In the VM's edit page, change to XML VIEW by toggling the switch in the top-right corner of the page. Then edit the network cards section as below: <interface type='direct'> <mac address='xx:xx:xx:xx:xx:x1'/> <source dev='bond0' mode='vepa'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> </interface> <interface type='bridge'> <mac address='xx:xx:xx:xx:xx:x2'/> <source bridge='virbr0'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> </interface> What the above config does is, a. the first interface is connected using macvtap via bond0 to the physical network, so if bonding is disabled, you may need to change "bond0" to physical interfaces like "eth0"; b. the second interface uses the default NAT based virbr0 to connect the Unraid host with an independent subnet. For advanced customizations, you can refer to the libvirt docs[1] and this example guide[3]. Note that the configs are located in /etc/libvirt/qemu/networks but you must use the virsh command to edit them in the command line. Also note that the FORM VIEW of the VM edit page in the Unraid GUI doesn't support "direct" type interface, so you will need to manually edit the network interfaces section every time you change other settings in FORM VIEW. With the above configuration, machines on the physical networks, VMs, and Unraid should be able to all connected to each other at full speed now. 参考资料(References): [1] https://libvirt.org/formatnetwork.html#using-a-macvtap-direct-connection [2] https://notes.wadeism.net/post/kvm-network-setup/ [3] https://fabianlee.org/2019/06/05/kvm-creating-a-guest-vm-on-a-network-in-routed-mode/ 感谢大佬的分享,我的主板为华擎b560m板载主板网卡也是出现同样的问题。后来我将unraid的mtu改为9000可以跑满2.5g,但是发现这样做会有奇奇怪怪的问题,比如vpn没法正常访问unraid。最后改为1500,又会出现跑不满的情况,关闭了桥接确实可以跑满,但想到会影响到虚拟机之类的,作为强迫症患者索性加装了一张226的网卡,目前情况已经完美解决。 Quote Link to comment
jw_ruleless Posted April 2, 2023 Share Posted April 2, 2023 大佬,我有一张dell aw1022网卡,因为小螃蟹驱动太老了,这张网卡没在认证设备里面,具体情况跟这个老哥比较像https://answers.launchpad.net/ubuntu/+source/r8125/+question/705159,我不太知道unraid里要怎么改… Quote Link to comment
xyzeratul Posted April 2, 2023 Share Posted April 2, 2023 我一直在用这个补丁,但不知道是什么原理:我的机器上面主板B460迫击炮自带的8125网卡,单独使用没任何问题,但加了一张i350-T2的网卡,发现没法单独直通给Openwrt用,打了这个补丁后,i350神奇的可以屏蔽后直通。 Quote Link to comment
vergiss Posted June 2, 2023 Share Posted June 2, 2023 r8169 0000:03:00.0 eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx br0: port 1(eth0) entered blocking state br0: port 1(eth0) entered forwarding state r8169 0000:03:00.0 eth0: Link is Down br0: port 1(eth0) entered disabled state 我好像之前打过补丁,但是我不是8169啊,应该得输一下屏蔽命令? Quote Link to comment
jinlife Posted June 20, 2023 Author Share Posted June 20, 2023 (edited) 6.12版本里面文件结构变了很多,目录层次变了之后还不知道驱动补丁能不能用,可能要花点时间弄弄。另外也不用着急,x.0版本一般都不稳定, 后面会有x.1, x.2之类的版本出来。 Edited June 20, 2023 by jinlife Quote Link to comment
jinlife Posted June 24, 2023 Author Share Posted June 24, 2023 (edited) 试了下,由于改动太多,Unraid文件跟Linux原生文件混在一起,打完补丁ZFS不能用了,很多功能丢了。 之前分得比较清楚的情况下比较好弄,现在这种文件混在一起的方式,不好玩了。 暂时不弄了,比较浪费时间。 Edited June 24, 2023 by jinlife Quote Link to comment
tent Posted June 25, 2023 Share Posted June 25, 2023 16 hours ago, jinlife said: 试了下,由于改动太多,Unraid文件跟Linux原生文件混在一起,打完补丁ZFS不能用了,很多功能丢了。 之前分得比较清楚的情况下比较好弄,现在这种文件混在一起的方式,不好玩了。 暂时不弄了,比较浪费时间。 也就是说如果升级6.12,r8125的网卡就驱动不了了,对么? Quote Link to comment
jinlife Posted June 25, 2023 Author Share Posted June 25, 2023 (edited) 7 hours ago, tent said: 也就是说如果升级6.12,r8125的网卡就驱动不了了,对么? r8125 Unraid有个老驱动r8169,可能速度跑不满,用还是能用。这个做插件比较麻烦,原始代码不带r8125专门的驱动。 r8152其实也有个老驱动,不过驱不动r8156,应用市场有插件了,原理就是把那个老驱动文件换个新的。 再就是没有iommu补丁了,多口网卡插到非CPU的PCIE插槽上面无法分组,没办法单独给虚拟机用。 你要没以上需求,升级也能用啊。那个速度跑不满好像也不是每个人都有,说不定你碰不到。 Edited June 25, 2023 by jinlife Quote Link to comment
airlychee Posted June 26, 2023 Share Posted June 26, 2023 On 6/24/2023 at 6:37 PM, jinlife said: 试了下,由于改动太多,Unraid文件跟Linux原生文件混在一起,打完补丁ZFS不能用了,很多功能丢了。 之前分得比较清楚的情况下比较好弄,现在这种文件混在一起的方式,不好玩了。 暂时不弄了,比较浪费时间。 驱动不好打的话,可否单独出一个IOMMU分组补丁?不胜感激! Quote Link to comment
tent Posted June 27, 2023 Share Posted June 27, 2023 (edited) On 6/25/2023 at 6:13 PM, jinlife said: r8125 Unraid有个老驱动r8169,可能速度跑不满,用还是能用。这个做插件比较麻烦,原始代码不带r8125专门的驱动。 r8152其实也有个老驱动,不过驱不动r8156,应用市场有插件了,原理就是把那个老驱动文件换个新的。 再就是没有iommu补丁了,多口网卡插到非CPU的PCIE插槽上面无法分组,没办法单独给虚拟机用。 你要没以上需求,升级也能用啊。那个速度跑不满好像也不是每个人都有,说不定你碰不到。 速度跑不满可以接受,不过之前升级如果不更新这个补丁,网卡就用不了,可能是原来r8169添加了黑名单的问题? Edited June 27, 2023 by tent Quote Link to comment
xyzeratul Posted June 27, 2023 Share Posted June 27, 2023 18 hours ago, tent said: 速度跑不满可以接受,不过之前升级如果不更新这个补丁,网卡就用不了,可能是原来r8169添加了黑名单的问题? 对,把R8169挂黑名单的记得改回来。 Quote Link to comment
jinlife Posted July 1, 2023 Author Share Posted July 1, 2023 On 6/26/2023 at 7:40 PM, airlychee said: 驱动不好打的话,可否单独出一个IOMMU分组补丁?不胜感激! 这个有点难度,如果分不开的话,内核改不了,可能补丁也打不进去。需要研究研究。 Quote Link to comment
jinlife Posted July 1, 2023 Author Share Posted July 1, 2023 (edited) ich777大佬帮忙做了r8125和r8152网卡的Unraid 6.12.2的plugin,已放入应用市场。 Edited July 6, 2023 by jinlife Quote Link to comment
miles2023 Posted July 6, 2023 Share Posted July 6, 2023 安装了插件,重启后,网络配置全部丢失。。。。。。现在不知道咋办了 Quote Link to comment
jinlife Posted July 6, 2023 Author Share Posted July 6, 2023 (edited) 1 hour ago, miles2023 said: 安装了插件,重启后,网络配置全部丢失。。。。。。现在不知道咋办了 之前flash没任何备份吗? 网络配置丢失是什么情况,网口驱动成功了吗?这个只是装了个驱动,应该不会碰网络配置。 Edited July 6, 2023 by jinlife Quote Link to comment
miles2023 Posted July 6, 2023 Share Posted July 6, 2023 找不到eth0的设备了,但是lspci中能看到网卡,flash备份到是可以解决,就是u盘在机器内,很麻烦。 Quote Link to comment
miles2023 Posted July 6, 2023 Share Posted July 6, 2023 是我傻逼了,直接拿个pe系统刷u盘就是了,不必拆机器。 Quote Link to comment
jinlife Posted July 6, 2023 Author Share Posted July 6, 2023 2 hours ago, miles2023 said: 找不到eth0的设备了,但是lspci中能看到网卡,flash备份到是可以解决,就是u盘在机器内,很麻烦。 你可以重启进入GUI模式,看看网卡设置那里什么情况, 另外还可以去vfio直通设备那里看看实际的驱动是什么,可以鼠标悬停在网卡上面。 Quote Link to comment
jinlife Posted July 6, 2023 Author Share Posted July 6, 2023 (edited) 你这不是R8125的2.5G网卡啊,为啥要装这插件呢。。。 现在看来好像Realtek的源代码有点问题,对老芯片的支持似乎不行。 我得去删掉之前从Realtek网页上抄来的芯片支持列表,只留下2.5G的芯片。 Edited July 6, 2023 by jinlife Quote Link to comment
miles2023 Posted July 7, 2023 Share Posted July 7, 2023 18 hours ago, jinlife said: 你这不是R8125的2.5G网卡啊,为啥要装这插件呢。。。 现在看来好像Realtek的源代码有点问题,对老芯片的支持似乎不行。 我得去删掉之前从Realtek网页上抄来的芯片支持列表,只留下2.5G的芯片。 因为macvlan call traces found这个怎么也消除不掉,所以想换一个驱动试试看,结果更糟糕了,事实证明,winpe并不能运行usb creator,用win to go启动了机器,但是重写的时候,似乎把U盘写坏了,重启找不到U盘了。算了,过两天等新主板到了,拆机再搞吧。 Quote Link to comment
JackieWu Posted July 10, 2023 Share Posted July 10, 2023 (edited) On 7/7/2023 at 6:34 PM, miles2023 said: 因为macvlan call traces found这个怎么也消除不掉,所以想换一个驱动试试看,结果更糟糕了,事实证明,winpe并不能运行usb creator,用win to go启动了机器,但是重写的时候,似乎把U盘写坏了,重启找不到U盘了。算了,过两天等新主板到了,拆机再搞吧。 macvlan call traces found 官方有提供解决办法,也可以参考我博客写的内容。 Edited August 27, 2023 by JackieWu 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.