18 Replies
considered
ujust setup-virtualization
?
must also be enabled in biosyeah it is enabled in the bios
lemme try that
oh
well that is so convenient
thank you
yw
ok when i finish everything i will tell you
just to make sure
ok so now how do i pass the gpu to the virtual machine?
@HikariKnight
i am getting this error
did you actually check if the iommu group is good for passthough?
did you bind the gpu to the vfio driver?
do you even have 2 gpus (asking this since some people cant read)
i have 2 gpus
one 3060 the other 1650
i wanna passthrough the 1650
well i dont know how to do the first two, so tell me please
i didnt think it will be this complicated
a
youre literally attempting something that is very complicated (we just simplified the first half)
oh
dang
GitHub
GitHub - HikariKnight/ls-iommu: A tool to list devices in iommu gro...
A tool to list devices in iommu groups, useful for setting up VFIO - HikariKnight/ls-iommu
well i am sorry because i didint think it will be this complicated 🙏
run this in the terminal and
ls-iommu -grk
it will show you your gpus and what iommu groups they are in
you want the gpu (and its associated audio device and other associated devices) to be in a group for themselves or in their own individual groups
and the ujust also told you how to bind the gpu to the vfio driver (which reserves it for the VM, meaning the linux host cant use it)
any other config we do not support (although youre free to set it up as we have enabled the correct modules when you enabled the vfio drivers and such)
thats the gist of it @sheesh and your motherboard might have something in the bios mentioning ACS which would attempt to make the iommu groups better for passthrough.
other than that if the gpus are not isolated we cant help youi heard about this ACS thing i will try to search for it in my motherboard
there are 2 types
we only support the motherboard option
the kernel patch we do not support as it is a very hacky workaround and prone to breaking with how fast we update the kernel
aight
Dam i dont think i have it
doesnt matter
not all motherboards need it
i know of only asrock providing the ACS patch in firmware
this is how you want the gpu group to be (see my group 16, it only contains stuff relevant to my gpu)
also i have my
ls-iommu
binary in $HOME/.local/bin
hence why i can use it without the path to the binary file
and if you need the ids for the kernel then ls-iommu -i groupnum --id
it will list out the ids and you need to add them to the vfio_pci.ids=
karg as comma separated (the ujust told you to do this if you havent already)