×

PVE | 在PVE中直通设备受限5个PCI的解决方法

hqy hqy 发表于2022-11-12 10:28:46 浏览1102 评论0

抢沙发发表评论

PVE中的每个虚拟机中只能添加5个PCI设备,如果再想添加更多,就会提示如下错误

PVE | 在PVE中直通设备受限5个PCI的解决方法 – Vedio Talk - VLOG、科技、生活、乐分享| 在PVE中直通设备受限5个PCI的解决方法 – Vedio Talk - VLOG、科技、生活、乐分享" class="wp-image-46187" srcset="https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.39.25-1024x502.png 1024w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.39.25-300x147.png 300w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.39.25-768x377.png 768w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.39.25-1536x754.png 1536w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.39.25-2048x1005.png 2048w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.39.25-150x74.png 150w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.39.25-600x294.png 600w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.39.25-60x29.png 60w" sizes="(max-width: 1024px) 100vw, 1024px" style="-webkit-tap-highlight-color: transparent; box-sizing: border-box; border: 0px; max-width: 100%; display: block; margin: 12px auto; height: auto;"/>

一、先查询还需要直通的设备ID

PVE | 在PVE中直通设备受限5个PCI的解决方法 – Vedio Talk - VLOG、科技、生活、乐分享| 在PVE中直通设备受限5个PCI的解决方法 – Vedio Talk - VLOG、科技、生活、乐分享" class="wp-image-46190" srcset="https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.34-1024x606.png 1024w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.34-300x178.png 300w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.34-768x454.png 768w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.34-1536x909.png 1536w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.34-150x89.png 150w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.34-600x355.png 600w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.34-60x36.png 60w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.34.png 1788w" sizes="(max-width: 1024px) 100vw, 1024px" style="-webkit-tap-highlight-color: transparent; box-sizing: border-box; border: 0px; max-width: 100%; display: block; margin: 12px auto; height: auto;"/>
PVE | 在PVE中直通设备受限5个PCI的解决方法 – Vedio Talk - VLOG、科技、生活、乐分享| 在PVE中直通设备受限5个PCI的解决方法 – Vedio Talk - VLOG、科技、生活、乐分享" class="wp-image-46191" srcset="https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.57-1024x407.png 1024w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.57-300x119.png 300w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.57-768x305.png 768w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.57-1536x611.png 1536w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.57-150x60.png 150w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.57-600x239.png 600w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.57-60x24.png 60w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.44.57.png 1906w" sizes="(max-width: 1024px) 100vw, 1024px" style="-webkit-tap-highlight-color: transparent; box-sizing: border-box; border: 0px; max-width: 100%; display: block; margin: 12px auto; height: auto;"/>

我这里演示的直通ID 为0000:00:15.0

二、进入虚拟机配置文件

nano /etc/pve/qemu-server/100.conf   
#代码中的100修改为你的虚拟机ID

PVE | 在PVE中直通设备受限5个PCI的解决方法 – Vedio Talk - VLOG、科技、生活、乐分享| 在PVE中直通设备受限5个PCI的解决方法 – Vedio Talk - VLOG、科技、生活、乐分享" class="wp-image-46189" srcset="https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.42.34-1024x492.png 1024w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.42.34-300x144.png 300w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.42.34-768x369.png 768w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.42.34-1536x738.png 1536w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.42.34-2048x984.png 2048w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.42.34-150x72.png 150w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.42.34-600x288.png 600w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.42.34-60x29.png 60w" sizes="(max-width: 1024px) 100vw, 1024px" style="-webkit-tap-highlight-color: transparent; box-sizing: border-box; border: 0px; max-width: 100%; display: block; margin: 12px auto; height: auto;"/>

手动添加直通代码,我这里演示的添加直通ID为0000:00:15.0,代码如下

hostpci5: 0000:00:15.0
#hostpci后面的5根据你的直通的序号自行修改,0000:00:15.0为你新添加直通的ID

PVE | 在PVE中直通设备受限5个PCI的解决方法 – Vedio Talk - VLOG、科技、生活、乐分享| 在PVE中直通设备受限5个PCI的解决方法 – Vedio Talk - VLOG、科技、生活、乐分享" class="wp-image-46193" srcset="https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.48.05-1-1024x577.png 1024w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.48.05-1-300x169.png 300w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.48.05-1-768x432.png 768w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.48.05-1-1536x865.png 1536w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.48.05-1-2048x1153.png 2048w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.48.05-1-150x84.png 150w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.48.05-1-600x338.png 600w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.48.05-1-60x34.png 60w" sizes="(max-width: 1024px) 100vw, 1024px" style="-webkit-tap-highlight-color: transparent; box-sizing: border-box; border: 0px; max-width: 100%; display: block; margin: 12px auto; height: auto;"/>

最后按CTR+X保存退出,在回到虚拟机,就可以看到之前数量受限的可以添加上了

PVE | 在PVE中直通设备受限5个PCI的解决方法 – Vedio Talk - VLOG、科技、生活、乐分享| 在PVE中直通设备受限5个PCI的解决方法 – Vedio Talk - VLOG、科技、生活、乐分享" class="wp-image-46194" srcset="https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.51.38-1024x655.png 1024w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.51.38-300x192.png 300w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.51.38-768x491.png 768w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.51.38-1536x982.png 1536w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.51.38-150x96.png 150w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.51.38-600x384.png 600w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.51.38-60x38.png 60w, https://vt.wooomooo.com/wp-content/uploads/2021/09/截屏2021-09-15-下午9.51.38.png 1786w" sizes="(max-width: 1024px) 100vw, 1024px" style="-webkit-tap-highlight-color: transparent; box-sizing: border-box; border: 0px; max-width: 100%; display: block; margin: 12px auto; height: auto;"/>


打赏

本文链接:https://www.kinber.cn/post/2910.html| 在PVE中直通设备受限5个PCI的解决方法">https://www.kinber.cn/post/2910.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

 您阅读本篇文章共花了: 

群贤毕至

访客