Git Product home page Git Product logo

vfio-setup's Introduction

my vfio gpu passthrough setup on a 5900x.

I don't recommend using it as is. read the win10.sh script for reference

this setup has been tested with latency sensitive audio stuff with no issue. I livestream from the vm no problem

assumes you have a win10.img disk image and virtio-win-0.1.185.iso which you can get from https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso .

the script also assumes that your sudo doesn't ask for password

you also need to have vfio-isolate installed. I also have vendor-reset to fix the reset bug on my rx570.

libcgroup is also needed for cpu isolation (which is enabled by default in the script)

you also need to set up a br0 bridge device, example with nmcli using interface enp42s0

nmcli con add type bridge con-name br0 ifname br0 autoconnect yes
nmcli con add type bridge-slave ifname enp42s0 master br0

# use nmcli to set static ip on br0 if needed, as if it was your main connection

nmcli con down "Wired connection 1"
nmcli con up br0
nmcli connection add type tun ifname tap0 con-name mytap mode tap owner `id -u`
nmcli connection mod mytap connection.slave-type bridge connection.master br0

I use barrier to share mouse between linux and windows

to start the vm, you need to cd to the path where the script and the disk image are located and start ./win10.sh

vfio-setup's People

Contributors

francesco149 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.