sickcodes / dock-droid

Docker Android - Run QEMU Android in a Docker! X11 Forwarding! CI/CD for Android!

Home Page:https://hub.docker.com/r/sickcodes/dock-droid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VFIO Support WIP: (VFIO contradiciton in README)

M1cha opened this issue · comments

just a nitpick, but the sample commands in https://github.com/sickcodes/dock-droid/blob/5a3ed6502f8fe384d462669dc83d80e317d81daf/README.md#vfio-passthrough are for virtio/usb forwarding, not vfio forwarding.
vfio forwarding would look like this:

-device vfio-pci,host=04:00.0

Will adjust, thanks for pointing that out.

I keep trying vfio passthru and it keeps never working 😂 laptop lyf, no USB ports after I passthru the group, even using Linux Zen plus acs override 😔 need to get a desktop or a usb graphics card.

the online documentation for that is very bad and mostly outdated(due to kernel and qemu updates). But here's some references that helped me set it up several times:

the general summary:

  • make sure your hardware supports VT-d/AMD-VI and UEFI and linux have it enabled
  • figure out which devices are in the same iommu group
  • detach all drivers from those devices
  • attach vfio-pci to those devices

I ran Linux-Zen

Added boot arg:

pcie_acs_override=downstream,multifunction

Got 27 VFIO groups, usually get 16, can't pass through the NVIDIA, takes over every peripheral, even the touchpad.

Will try again at some stage