Unable to run anbox on Ubuntu 20.04

Asked by Vitor Py on 2021-02-09

I'm able to install anbox using snap. Checking the computer specs seems OK:

vitor@vitor-Inspiron-5379:~$ anbox check-features
Your computer does meet all requirements to run Anbox

However running it fails:

vitor@vitor-Inspiron-5379:~$ anbox session-manager
[ 2021-02-09 21:30:08] [session_manager.cpp:133@operator()] Failed to start as either binder or ashmem kernel drivers are not loaded

My first guess it would be related to SecureBoot being enabled, but I can't find the modules to sign:

vitor@vitor-Inspiron-5379:~$ find /lib/modules | grep ashmen
vitor@vitor-Inspiron-5379:~$

vitor@vitor-Inspiron-5379:~$ find /snap/anbox/ | grep ko
/snap/anbox/186/etc/apparmor.d/abstractions/ubuntu-konsole
/snap/anbox/186/usr/lib/python3.5/encodings/koi8_r.py
/snap/anbox/186/usr/lib/python3.5/encodings/koi8_t.py
/snap/anbox/186/usr/lib/python3.5/encodings/koi8_u.py
vitor@vitor-Inspiron-5379:~$

I found other people with the same isue:

https://askubuntu.com/questions/1286667/anbox-on-ubuntu-20-04

Running as root does not help:

vitor@vitor-Inspiron-5379:~$ sudo su -
[sudo] password for vitor:
root@vitor-Inspiron-5379:~# anbox session-manager
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
[ 2021-02-09 21:32:31] [session_manager.cpp:133@operator()] Failed to start as either binder or ashmem kernel drivers are not loaded
root@vitor-Inspiron-5379:~#

Those were the instructions I was trying to follow:

https://askubuntu.com/questions/1267823/module-ashmem-doesnt-load-with-secure-boot-on-but-binder-does-load-with-se

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2021-02-10
Last query:
2021-02-10
Last reply:
2021-02-10
Vitor Py (vitorpy) said : #2

Sorry if I'm missing something obvious as I stated installing anbox as a snap does not work for me. Installing thru apt also doesn't.

vitor@vitor-Inspiron-5379:~$ sudo snap install --beta --devmode anbox
anbox (beta) 4-56c25f1 from morphis installed
vitor@vitor-Inspiron-5379:~$ anbox session-manager
[ 2021-02-09 22:39:40] [session_manager.cpp:133@operator()] Failed to start as either binder or ashmem kernel drivers are not loaded
vitor@vitor-Inspiron-5379:~$

I don't see how the links above help me. Sorry.

Bernard Stafford (bernard010) said : #4

https://github.com/anbox/anbox/issues/1610
Having a platform incorporate an incompatible platform Ubuntu with Android, may i suggest a Bug Report.
https://help.ubuntu.com/community/ReportingBugs

Manfred Hampl (m-hampl) said : #5

Your output:

vitor@vitor-Inspiron-5379:~$ find /lib/modules | grep ashmen
vitor@vitor-Inspiron-5379:~$

For diagnostic purposes, what is the output of the commands

uname -a
lsb_release -crid
dpkg -l | grep ' linux-mo'

Vitor Py (vitorpy) said : #7

vitor@vitor-Inspiron-5379:~/secureboot$ find /lib/modules/5.8.0-43-generic/kernel/drivers/ -name "*linux*"
/lib/modules/5.8.0-43-generic/kernel/drivers/android/binder_linux.ko
/lib/modules/5.8.0-43-generic/kernel/drivers/staging/android/ashmem_linux.ko

Yes, I found the module under the staging tree, signed and loaded it.