Kernel modules for Anbox (Android container)

I would like to try Anbox. Please is there a way to install the necessary kernel modules with Silverblue being immutable and all?

cp: cannot create regular file '/lib/udev/rules.d/99-anbox.rules': Read-only file system
cp: cannot create directory '/usr/src/anbox-ashmem-1': Read-only file system
cp: cannot create directory '/usr/src/anbox-binder-1': Read-only file system
3 Likes

One option is to build those modules inside a container and then load them into you kernel. See Building Kernel Modules with Podman — Project Atomic for example. Note that this will need to be redone every time you update the kernel.

As for the udev rule, you should be able to place it in /etc/udev/rules.d/.

See also the work in progress in GitHub - kmods-via-containers/kmods-via-containers.

1 Like