飞牛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
- 最新
- 最热
只看作者