Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For: https://www.youtube.com/watch?v=Somp8w1oZhY
- My original plan was to run GTX560 for a host and GTX970 inbetween systems since that's what I've been running with for a while with PCI passthrough.
- So my first problem was that I dedicate the GPU to the guest. Fix to this is to rebind it. Doing this manually with something like:
- sudo sh -c 'echo "0000:02:00.0" > /sys/bus/pci/devices/0000:02:00.0/driver/unbind'
- sudo sh -c 'echo "0000:02:00.1" > /sys/bus/pci/devices/0000:02:00.1/driver/unbind'
- sudo sh -c 'echo "0000:02:00.0" > /sys/bus/pci/drivers/nvidia/bind'
- sudo sh -c 'echo "0000:02:00.1" > /sys/bus/pci/drivers/snd_hda_intel/bind'
- And a lot of checking with commands like:
- lspci -nnk -d 10de: <- tells if driver is bound
- lsmod|grep nvidia <- tells if nvidia driver is initialized and if somethings using it (number over 0)
- lsof | grep /dev/nvidia <- tells what is using the driver
- While this does work fine to unbind vfio-pci and even nvidia if you're lucky. There are multiple pitfalls that can cause the device to end up unresponsive and requiring a reboot. Mainly if xorg attaches itself to it or nvidia_modeset gets loaded requiring it to be removed before unbinding (sudo rmmod nvidia_modeset nvidia).
- Around this time I also gave up on the idea of having GTX560 be part of it since it was causing too much of a headache for rebinding. It also was probably just making the system slower with having to have older drivers.
- In the end I end up avoiding manual rebinding with telling xorg to use intel iGPU for the x server:
- sudo nano /etc/X11/xorg.conf
- # Use iGPU for X Server
- Section "Device"
- Identifier "intel"
- Driver "intel"
- BusId "PCI:0:2:0"
- EndSection
- This combined with removing the vfio-pci binding I had from before:
- # sudo nano /etc/modprobe.d/vfio.conf
- # options vfio-pci ids=10de:13c2,10de:0fbb
- # sudo mkinitcpio -p linux-vfio
- I end up with no driver attaching itself to the GTX970 during bootup. Now if I want to run windows in a virtual machine vfio-pci manages to bind it by itself and clear it afterwards, same with running nvidia-xrun for DXVK later on. Only Bumblebee primusrun leaves the card with nvidia driver attached but it is still without nvidia_modeset so all the other options manage to rebind themselves cleanly just fine.
- Now I have a gpu back to the host but there's not much to do with it except maybe NVENC for video encoding.
- So I installed Bumblebee. And even though it is meant for Optimus laptops it works here aswell as a way to run opengl games.
- [Bumblebee]
- https://wiki.archlinux.org/index.php/bumblebee
- sudo nano /etc/pacman.conf
- [multilib]
- Include = /etc/pacman.d/mirrorlist
- sudo pacman -Syyu
- sudo pacman -S bumblebee mesa primus lib32-primus
- sudo pacman -S lib32-virtualgl nvidia-utils lib32-nvidia-utils nvidia-dkms
- sudo pacman -S mesa-vdpau libva-mesa-driver mesa xf86-video-intel
- sudo gpasswd -a jukka bumblebee
- sudo systemctl enable bumblebeed.service
- reboot
- sudo rm /etc/X11/xorg.conf.d/20-nvidia.conf <- sddm refused to start with Bumblebee and old nvidia configs
- bumblebeed -vv
- sudo pacman -S mesa-demos
- optirun glxgears -info
- yay -S unigine-heaven
- vblank_mode=0 primusrun unigine-heaven
- [Steam]
- sudo pacman -S steam steam-native-runtime
- [Lutris]
- sudo pacman -S wine-staging wine-mono wine_gecko
- sudo pacman -S winetricks zenity
- sudo pacman -S lutris
- https://github.com/lutris/lutris/wiki/How-to:-DXVK
- sudo pacman -S vulkan-icd-loader lib32-vulkan-icd-loader
- yay -S vkcube-git
- https://github.com/lutris/lutris/wiki/How-to:-Esync
- ulimit -Hn
- sudo nano /etc/systemd/system.conf
- DefaultLimitNOFILE=1048576
- sudo nano /etc/systemd/user.conf
- DefaultLimitNOFILE=1048576
- [Overwatch]
- https://lutris.net/games/overwatch/
- https://github.com/lutris/lutris/wiki/Game:-Blizzard-App
- yay -S ttf-ms-fonts
- sudo pacman -S lib32-gnutls lib32-libldap lib32-libgpg-error lib32-sqlite
- Steam gameservers unreachable. Was fixed for me when I installed steam on linux aswell.
- Overwatch getting stuck updating was fixed for me by removing C:\ProgramData\Battle.net https://forums.lutris.net/t/solved-cannot-install-game-from-battle-net-client/2770/4
- [Nvidia-xrun]
- https://forum.manjaro.org/t/how-to-use-vulkan-on-bumblebee-a-guide-to-nvidia-xrun/56260
- yay -S nvidia-xrun
- sudo pacman -S openbox obmenu
- nano ~/.nvidia-xinitrc
- openbox-session
- nvidia-xrun
- [Looking glass]
- I already had a working PCI passthrough/Looking glass installation but for those interested:
- PCI passthrough page on archwiki has very in depth guide on passthrough; https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF
- And looking glass' own website is very straightforward aswell: https://looking-glass.hostfission.com/quickstart
- Other might be useful sites:
- https://arseniyshestakov.com/2016/03/31/how-to-pass-gpu-to-vm-and-back-without-x-restart/
- https://linuxconfig.org/improve-your-wine-gaming-on-linux-with-dxvk
- https://www.reddit.com/r/VFIO/comments/5nqr5e/you_can_share_the_use_of_a_2nd_gpu/
Add Comment
Please, Sign In to add comment