how do i enable iommu?

how do i enable iommu? i am using desktop version
18 Replies
HikariKnight
HikariKnight2mo ago
considered ujust setup-virtualization? must also be enabled in bios
sheesh
sheeshOP2mo ago
yeah it is enabled in the bios lemme try that oh well that is so convenient thank you
HikariKnight
HikariKnight2mo ago
yw
sheesh
sheeshOP2mo ago
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
sheesh
sheeshOP2mo ago
i am getting this error
No description
HikariKnight
HikariKnight2mo ago
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)
No description
sheesh
sheeshOP2mo ago
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
HikariKnight
HikariKnight2mo ago
youre literally attempting something that is very complicated (we just simplified the first half)
sheesh
sheeshOP2mo ago
oh dang
HikariKnight
HikariKnight2mo ago
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
sheesh
sheeshOP2mo ago
well i am sorry because i didint think it will be this complicated 🙏
HikariKnight
HikariKnight2mo ago
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 you
sheesh
sheeshOP2mo ago
i heard about this ACS thing i will try to search for it in my motherboard
HikariKnight
HikariKnight2mo ago
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
sheesh
sheeshOP2mo ago
aight Dam i dont think i have it
HikariKnight
HikariKnight2mo ago
doesnt matter not all motherboards need it i know of only asrock providing the ACS patch in firmware
HikariKnight
HikariKnight2mo ago
this is how you want the gpu group to be (see my group 16, it only contains stuff relevant to my gpu)
No description
HikariKnight
HikariKnight2mo ago
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)
Want results from more Discord servers?
Add your server