飞牛Nas开启Intel核显GVT-g,共享Win虚拟机使用

原文:

https://club.fnnas.com/forum.php?mod=viewthread&tid=13146&highlight=

视频里面忘记说了,如果虚拟机Win显示设备如果不是显示屏2,要在Win显示设置里面切换成: 显示屏2 才是核显的那个屏幕才可以调用核显

###切换ROOT账号
sudo- i
nano /etc/default/grub

intel_iommu=on iommu=pt i915.enable_gvt=1

update-grub
nano /etc/modules

vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
kvmgt
root@xc:~# ls -l /sys/devices/pci0000:00/0000:00:02.0/mdev_supported_types
total 0
drwxr-xr-x 3 root root 0 Sep 16 14:15 i915-GVTg_V5_4
drwxr-xr-x 3 root root 0 Sep 16 14:15 i915-GVTg_V5_8
cd /home

wget http://share.geekxw.top/fnos/gvtg_0002_915_5_8.xml

virsh nodedev-define gvtg_0002_915_5_8.xml

virsh nodedev-autostart mdev_00000000_0000_0000_0000_000000000011_0000_00_02_0

virsh nodedev-start mdev_00000000_0000_0000_0000_000000000011_0000_00_02_0
wget http://share.geekxw.top/fnos/igpu.xml

virsh attach-device jcotacy3 /home/igpu.xml
crontab -e

@reboot virsh nodedev-start mdev_00000000_0000_0000_0000_000000000011_0000_00_02_0
wget http://share.geekxw.top/fnos/fn-gvtg-Passthrough.sh -O /usr/local/bin/fn-gvtg-Passthrough.sh

nano /usr/local/bin/fn-gvtg-Passthrough.sh

chmod +x /usr/local/bin/fn-gvtg-Passthrough.sh
wget  http://share.geekxw.top/fnos/fn-gvtg-Passthrough.service -O /etc/systemd/system/fn-gvtg-Passthrough.service

systemctl daemon-reload
systemctl start fn-gvtg-Passthrough
systemctl enable fn-gvtg-Passthrough
systemctl status fn-gvtg-Passthrough
微信扫一扫打赏
微信打赏二维码
感谢您的支持!让我有持续更新的动力
© 版权声明
THE END
点赞0打赏作者 分享
评论 共3条
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片快捷回复
    • 头像cc0
    • 头像机智小蜗牛1
    • 头像机智小蜗牛0