Skip to content

AVF Backend: Any plans for USB passthrough support and network issue fix? #43

@erraja97

Description

@erraja97

Environment

  • Device: Lenovo Tab M11
  • Podroid Version: v1.2.4
  • Backend: AVF (KVM)
  • Guest: Alpine Linux 3.23

Context

I am using the AVF backend successfully on a Lenovo Tab M11.

AVF diagnostics pass successfully:

  • virtualization_framework supported = true
  • MANAGE_VIRTUAL_MACHINE granted = true
  • USE_CUSTOM_VIRTUAL_MACHINE granted = true
  • VM smoke test passes

The VM boots correctly under AVF.

Question

The settings page shows USB Passthrough as unavailable and displays the message:

«Not available on the avf backend: USB passthrough rides QEMU's QMP control socket, which the AVF backend doesn't provide.»

Is USB passthrough fundamentally impossible with the current Android Virtualization Framework APIs, or is this something that could be supported in the future?

AVF networking appears broken on Lenovo Tab M11 (TB330XU, Android 15).

The guest boots successfully and receives virtio block devices:

virtio_blk virtio3: [vda]
virtio_blk virtio4: [vdb]

However, no network device is attached.

Guest diagnostics:

ip link:

  • lo
  • dummy0

ls /sys/class/net:

  • dummy0
  • lo

dmesg contains no virtio_net device and no eth0 interface is created.

Podroid boot log reports:

podroid-network | * Configuring network...

  • no network interface
    podroid-network | * ERROR: podroid-network failed to start

As a result:

  • apk update fails
  • ping 8.8.8.8 returns Network unreachable
  • guest has no connectivity

The issue appears to be that the AVF backend is not exposing a virtual NIC to the guest on this device, while virtio block devices are attached correctly.

Specifically:

  1. Is USB passthrough blocked by AVF itself, or only by the current Podroid implementation?
  2. Would root access make USB passthrough possible under AVF?
  3. Are there any planned workarounds for exposing USB devices to AVF guests?
  4. Is QEMU expected to remain the only backend that can support USB passthrough?
  5. Also there is transient error, network not connecting in AVF mode, any fix?

My primary use case is running Linux guests with near-native AVF performance while accessing USB hardware from inside the VM.

Any clarification on the current limitations and future roadmap would be appreciated.

IMG-20260616-WA0006.jpg

IMG-20260616-WA0007.jpg

IMG-20260616-WA0005.jpg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions