终极NTR_群晖无损迁移到飞牛系统,安装KVM虚拟机,创建黑群晖,Openwrt,Win虚拟机,直通网卡,Sata拓展卡,共享核显编解码

飞牛的核显共享给了win(不影响飞牛影视转码) sata控制器给了群晖 网卡给了op

图片[1]-终极NTR_群晖无损迁移到飞牛系统,安装KVM虚拟机,创建黑群晖,Openwrt,Win虚拟机,直通网卡,Sata拓展卡,共享核显编解码-小陈折腾日记
图片[2]-终极NTR_群晖无损迁移到飞牛系统,安装KVM虚拟机,创建黑群晖,Openwrt,Win虚拟机,直通网卡,Sata拓展卡,共享核显编解码-小陈折腾日记

飞牛os下面虚拟的win可以正常使用核显,飞牛影视也能正常转码

黑群晖引导下载:https://rrorg.cn/

apt update

apt -y install qemu-kvm libvirt-daemon  bridge-utils virtinst libvirt-daemon-system

modprobe vhost_net 
lsmod | grep vhost
echo vhost_net | sudo tee -a /etc/modules 

sudo apt -y install vim libguestfs-tools libosinfo-bin  qemu-system virt-manager

apt install cockpit cockpit-machines cockpit-podman

systemctl enable cockpit.socket && sudo systemctl start cockpit.socket

systemctl status cockpit.socket

nano /etc/default/grub
intel_iommu=on
i915.enable_gvt=1 #拆分核显需要

6-10代CPU

nano /etc/modules
vfio
vfio_iommu_type1
vfio_virqfd
vfio_pci
kvmgt #拆分核显需要

update-grub

update-initramfs -u -k all

reboot

dmesg | grep iommu


cat /proc/sys/net/bridge/bridge-nf-call-iptables
echo 0 > /proc/sys/net/bridge/bridge-nf-call-iptables

xc@fnos:/$ ls -lF /sys/devices/pci0000:00/0000:00:02.0/mdev_supported_types
total 0
drwxr-xr-x 3 root root 0 Sep 11 08:19 i915-GVTg_V5_4/
drwxr-xr-x 3 root root 0 Sep 11 08:19 i915-GVTg_V5_8/

cat /sys/devices/pci0000:00/0000:00:02.0/mdev_supported_types/i915-GVTg_V5_4/available_instances
cat /sys/devices/pci0000:00/0000:00:02.0/mdev_supported_types/i915-GVTg_V5_8/available_instances

i915-GVTg_V5_1  # Video memory: <512MB, 2048MB>, resolution: up to 1920x1200
i915-GVTg_V5_2  # Video memory: <256MB, 1024MB>, resolution: up to 1920x1200
i915-GVTg_V5_4  # Video memory: <128MB, 512MB>, resolution: up to 1920x1200
i915-GVTg_V5_8  # Video memory: <64MB, 384MB>, resolution: up to 1024x768

echo 7412d05a-f3db-4eaa-85c0-fd42a28848c1 > /sys/devices/pci0000:00/0000:00:02.0/mdev_supported_types/i915-GVTg_V5_4/create

virsh edit 虚拟机ID

<hostdev mode='subsystem' type='mdev' managed='no' model='vfio-pci' display='off'>
      <source>
        <address uuid="7412d05a-f3db-4eaa-85c0-fd42a28848c1"/>
      </source>
</hostdev>


virsh list
查看虚拟机
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 共3条
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片
    • 头像clx0
    • 头像msp1280
    • 头像太原王炸0