Bug 32467 - On mga9, we cannot start waydroid due to various errors
Summary: On mga9, we cannot start waydroid due to various errors
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: IN_ERRATA9,MGA9-64-OK
Keywords: advisory, has_procedure, validated_update
: 32522 (view as bug list)
Depends on: 32496 32687 32797
Blocks:
  Show dependency treegraph
 
Reported: 2023-10-30 22:30 CET by Chris Denice
Modified: 2024-02-27 02:09 CET (History)
11 users (show)

See Also:
Source RPM: libgbinder, python-gbinder, waydroid-1.3.2-1.mga9.src.rpm
CVE:
Status comment: Usage in comment 81, would be nice as Wiki page


Attachments
fix for default config (454 bytes, patch)
2024-02-24 22:05 CET, Giuseppe Ghibò
Details | Diff

Description Chris Denice 2023-10-30 22:30:21 CET
Description of problem:
I do not succeed to make waydroid working in spite of a lot of searching on the internet to understand how to start it

How reproducible:
Oh, a lot, I have already tried many times!

Steps to Reproduce:
Enter:
waydroid session start

and enjoy the errors' show.

I am assigning the bug to myself because I know what to do to fix that.
Comment 1 Chris Denice 2023-10-31 00:20:45 CET Comment hidden (obsolete)

Assignee: eatdirt => qa-bugs

Chris Denice 2023-10-31 10:18:58 CET

CC: (none) => eatdirt

Comment 2 Marja Van Waes 2023-10-31 12:21:55 CET Comment hidden (obsolete)

Keywords: (none) => advisory
CC: (none) => marja11

Comment 3 Thomas Andrews 2023-10-31 13:05:40 CET
Adding the has_procedure flag because of the excellent instructions in comment 1.

Keywords: (none) => has_procedure
CC: (none) => andrewsfarm

Comment 4 Len Lawrence 2023-11-03 00:04:41 CET Comment hidden (obsolete)

CC: (none) => tarazed25

Comment 5 Len Lawrence 2023-11-03 00:13:56 CET Comment hidden (obsolete)
Comment 6 Chris Denice 2023-11-03 08:44:33 CET Comment hidden (obsolete)
Comment 7 Len Lawrence 2023-11-03 11:20:30 CET Comment hidden (obsolete)
Comment 8 Len Lawrence 2023-11-03 11:31:26 CET
Note also that I am still at the pre-update stage, preparing the ground.
Comment 9 Thomas Andrews 2023-11-03 13:33:51 CET
@Len: Try plasma-workspace-wayland. Unknown if that's enough, though.

@Chris: Confirmed that the original package is python-gbinder, but the package you put in updates_testing is python3-gbinder. 

Looks like you changed the name. You'll need to change things to use the original name, or our tools won't update it.
Comment 10 Marja Van Waes 2023-11-03 15:47:35 CET Comment hidden (obsolete)

Keywords: advisory => feedback

Marja Van Waes 2023-11-03 15:48:56 CET

Status comment: (none) => The procedure is in comment 1, but the advisory there will need to be replaced

Comment 11 Chris Denice 2023-11-03 17:56:28 CET Comment hidden (obsolete)
Comment 12 Thomas Andrews 2023-11-03 18:02:40 CET Comment hidden (obsolete)
Comment 13 Chris Denice 2023-11-03 18:06:13 CET Comment hidden (obsolete)
Comment 14 Len Lawrence 2023-11-04 00:06:43 CET Comment hidden (obsolete)
Comment 15 Len Lawrence 2023-11-04 12:03:16 CET Comment hidden (obsolete)
Comment 16 Len Lawrence 2023-11-04 12:55:06 CET
Something else to note, switching from sddm back to lightdm removes the Plasma Wayland entry from the login menu.  gdm does not acknowledge Plasma Wayland either.
Comment 17 Chris Denice 2023-11-04 14:59:25 CET
Thanks Len for your tests. That is weird to have missing kernel-devel packages because dkms should trigger the install of the kernel-devel.

For wayland not starting, it is very well possible that wayland does not work on some hardware, I have the same problem with one of my machine having a GTX1080, but it works on my laptop.
Comment 18 Len Lawrence 2023-11-04 15:20:41 CET
So, it would be worth trying one of my other machines.  I'll get back to you.
Comment 19 Len Lawrence 2023-11-04 17:52:16 CET Comment hidden (obsolete)
Comment 20 Len Lawrence 2023-11-04 18:10:13 CET Comment hidden (obsolete)
Comment 21 katnatek 2023-11-04 18:44:13 CET Comment hidden (obsolete)
Comment 22 Chris Denice 2023-11-04 22:45:05 CET Comment hidden (obsolete)
Comment 23 Len Lawrence 2023-11-05 16:28:02 CET Comment hidden (obsolete)
Comment 24 katnatek 2023-11-05 19:09:27 CET Comment hidden (obsolete)
Comment 25 katnatek 2023-11-05 21:51:41 CET Comment hidden (obsolete)
Comment 26 Chris Denice 2023-11-05 22:44:43 CET Comment hidden (obsolete)
Comment 27 katnatek 2023-11-05 23:05:02 CET Comment hidden (obsolete)
Comment 28 katnatek 2023-11-06 00:04:54 CET Comment hidden (obsolete)
Comment 29 david Cossé 2023-11-14 16:55:19 CET
*** Bug 32522 has been marked as a duplicate of this bug. ***

CC: (none) => saveurlinux

Comment 30 david Cossé 2023-11-15 09:17:43 CET Comment hidden (obsolete)
Comment 31 katnatek 2023-11-16 00:05:41 CET Comment hidden (obsolete)
Comment 32 david Cossé 2023-11-16 09:47:39 CET Comment hidden (obsolete)
Comment 33 katnatek 2023-11-16 21:22:11 CET Comment hidden (obsolete)
katnatek 2023-11-16 21:31:49 CET

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=32496

PC LX 2023-12-09 23:32:21 CET

CC: (none) => mageia

Comment 34 katnatek 2024-01-08 00:34:34 CET Comment hidden (obsolete)
Comment 35 katnatek 2024-01-08 03:04:17 CET Comment hidden (obsolete)
katnatek 2024-01-08 03:05:37 CET

Status comment: The procedure is in comment 1, but the advisory there will need to be replaced => The procedure is in comment 1, new advisory and packages in comment#34

Comment 36 katnatek 2024-01-08 03:10:15 CET Comment hidden (obsolete)
Comment 37 katnatek 2024-01-08 03:17:01 CET Comment hidden (obsolete)
Comment 38 katnatek 2024-01-08 04:01:31 CET Comment hidden (obsolete)
Comment 39 Marja Van Waes 2024-01-08 16:17:01 CET Comment hidden (obsolete)

Keywords: (none) => advisory

Comment 40 katnatek 2024-01-08 19:46:05 CET Comment hidden (obsolete)

Depends on: (none) => 32687, 32496
Keywords: feedback => (none)

Comment 41 Guillaume Bedot 2024-01-08 21:55:35 CET Comment hidden (obsolete)

CC: (none) => geex+mageia

Comment 42 katnatek 2024-01-10 19:37:24 CET
We must add a page in the wiki to document the steps to try make waydroid works once this updates become official, perhaps we can import some things from the archlinux wiki like  https://wiki.archlinux.org/title/Waydroid#Software_rendering and https://wiki.archlinux.org/title/Waydroid#Troubleshooting

Remember that need the packages in comment#35 , the packages in https://bugs.mageia.org/show_bug.cgi?id=32687#c8 and the current version of dkms-anbox already in updates https://bugs.mageia.org/show_bug.cgi?id=32496#c16

Preparation installl or start a wayland session, for plasma plasma-workspace-wayland
Add psi=1 to kernel options https://wiki.mageia.org/en/How_to_set_up_kernel_options
Install waydroid
Reboot you system

In a root terminal

systemctl start waydroid-container

waydroid first-launch

A menu appears, pick up one of the images, I have issues with the network in the named "GAPP" (the one named VANILLA is reported as bugged, but I have network on it), (perhaps the images delivered depend on the detected hardware)

Previous step downloads many things that will be put into /var/lib/waydroid/

Now, we fix more bugs that are not on mageia but upstreams:

a) Edit the file "/var/lib/waydroid/lxc/waydroid/config"

Comment that line (add a # before)
#lxc.apparmor.profile = unconfined

b) As root, restart the container service:

systemctl restart waydroid-container

c) As user, in a terminal start a session

waydroid session start

d) As user, in another terminal, start the show

waydroid show-full-ui


Good luck, works for me (tm).

NB: waydroid does not (yet?) support bluetooth, so long for the traxxas charger
katnatek 2024-01-10 19:37:51 CET

Status comment: The procedure is in comment 1, new advisory and packages in comment#34 => The procedure is in comment 42, new advisory and packages in comment#34

Comment 43 Herman Viaene 2024-01-19 15:47:31 CET
HP Pavillion
Adding psi=1 to kernel options of reFind blocks wifi completely and this laptop is wifi-only, looking for another way.

CC: (none) => herman.viaene

Comment 44 Herman Viaene 2024-01-23 11:17:52 CET
On Lenovo B50
Same problem after  reboot and made sure the changes in the files are there.
In the log I see:

% ln -s /dev/binderfs/anbox-hwbinder /dev/binderfs/anbox-vndbinder /dev/binderfs/binder /dev/binderfs/binder-control /dev/
ln: failed to create symbolic link '/dev/binder': File exists

and then later
lxc-start: waydroid: ../src/lxc/conf.c: run_buffer: 322 Script exited with status 126
lxc-start: waydroid: ../src/lxc/start.c: lxc_end: 985 Failed to run lxc.hook.post-stop for container "waydroid"
Comment 45 katnatek 2024-01-23 17:53:13 CET Comment hidden (obsolete)
Comment 46 Morgan Leijström 2024-01-31 21:43:19 CET
dkms-anbox update request: Bug 32797

Depends on: (none) => 32797
CC: (none) => fri

Comment 47 Otto Leipälä 2024-02-08 20:24:05 CET
This is nightmare never have get it working..
Would be very usefull if getting it working...
Comment 48 Thomas Andrews 2024-02-08 22:23:52 CET
Sending this back to Chris Denice until the dkms-anbox and other issues can be resolved. It just is not ready for QA yet.

Assignee: qa-bugs => eatdirt

Comment 49 Morgan Leijström 2024-02-08 23:37:25 CET
https://wiki.mageia.org/en/Mageia_9_Errata#Various_software

Whiteboard: (none) => IN_ERRATA9

Comment 50 Chris Denice 2024-02-13 00:35:52 CET Comment hidden (obsolete)
Comment 51 katnatek 2024-02-13 02:49:43 CET Comment hidden (obsolete)
katnatek 2024-02-13 03:19:16 CET

Keywords: advisory => (none)

katnatek 2024-02-13 03:20:33 CET

Status comment: The procedure is in comment 42, new advisory and packages in comment#34 => The procedure is in comment 50, packages in comment 50 y 51

Comment 52 Morgan Leijström 2024-02-13 10:44:39 CET
I assume:

§ For kernel 6.6.x, dkms-anbox must be uninstalled
Closed: Bug 32797 - dkms-anbox need updating for kernel 6.6

§ Waydroid is only intended to work for kernel 6.6+ ?

§ Per comment 50, ready for QA

Source RPM: waydroid-1.3.2-1.mga9.src.rpm => libgbinder, python-gbinder, waydroid-1.3.2-1.mga9.src.rpm
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=32797
Assignee: eatdirt => qa-bugs

Comment 53 Chris Denice 2024-02-13 14:05:58 CET
> Waydroid is only intended to work for kernel 6.6+ ?

No necessarily, but if you're using kernel < 6.6, you will need to install dkms-anbox and toy with my earliest procedure. Since almost no-one was able to reproduce my working steps, let's say that, yes, waydroid is going to be tested for kernel >=6.6 only :)
Comment 54 Thomas Andrews 2024-02-13 15:24:17 CET
So, while this is being tested as working with kernels 6.6 and above, and we have left dkms-anbox in place for those using kernels below 6.6, what do we do for those who, say, install MGA9 today from the netinstall iso, (which will install only kernel 6.6.14-2) and then decide to try waydroid because it sounds interesting - only to have dkms-anbox make their systems unusable? 

I'm thinking of new users, inexperienced in using Mageia. *I* could get myself out of that predicament with little trouble, but then I'm not exactly an inexperienced Mageia user.
Comment 55 Chris Denice 2024-02-13 15:35:02 CET
Let's start by testing waydroid for kernel 6.6.

The new users won't have dkms-anbox installed because it is not triggered anymore by waydroid installed. And, we could have another work on dkms-anbox to prevent its installation for kernel-6.6, although the bug you're mentioning is likely to be fixed upstream soon.

Let us try to not mix issues now that we have put dkms-anbox out of the current problem!
Comment 56 Morgan Leijström 2024-02-13 15:36:50 CET
Making the dkms-android package to conflict kernel 6.6+ sounds good.
But if really fixed soon for kernel 6.6+ then wait a little...
Comment 57 katnatek 2024-02-13 20:42:05 CET
Tested in Real Hardware Magei 9 x86_64
Before test remove dkms-anbox , current waydroid

make some cleaning as root
rm -rf /var/lib/waydroid
rm -rfv /home/katnatek/waydroid /home/katnatek/.share/waydroid /home/katnatek/.local/share/applications/*aydroid* /home/katnatek/.local/share/waydroid

Reboot on kernel desktop with psi=1
Make sure I have all needed packages in qarepo
Install waydroid
Follow steps in comment#50

In step 6) As *an user*

waydroid show-full-ui

waydroid works
navigation works
install an apk works
sound works

Side note vanilla image fail to install

After close the application, still have to disconnect and reconnect the network from draknetcenter because I lose the internet

For me is as good as was with dkms-anbox in kernel 6.6.14 server or in kernel desktop 6.5
Comment 58 katnatek 2024-02-13 22:14:44 CET
After update packages in bug#32838 still works
Comment 59 Chris Denice 2024-02-14 09:50:22 CET
Thanks Katnatek!
Comment 60 Marja Van Waes 2024-02-14 16:29:08 CET
Advisory updated to the SRPMs from comment 50

Keywords: (none) => advisory

Comment 61 katnatek 2024-02-15 23:13:47 CET Comment hidden (obsolete)
katnatek 2024-02-15 23:14:50 CET

Status comment: The procedure is in comment 50, packages in comment 50 y 51 => The procedure and required packages in comment 61

Comment 62 katnatek 2024-02-15 23:17:11 CET Comment hidden (obsolete)
Comment 63 Morgan Leijström 2024-02-21 10:12:30 CET
Progress in Bug 32797 - dkms-anbox need updating for kernel 6.6

It do seem we need a wiki page for how to use Waydroid.

Status comment: The procedure and required packages in comment 61 => Usage in comment 61, would be nice as Wiki page

Comment 64 katnatek 2024-02-21 19:21:14 CET
@Chris Denice, due the changes in kernel desktop 6.6.17-3 is needed add to waydroid
 spec a binder.conf file (or the name you like) with

binder_linux

And install the file in %{_modulesloaddir}
Comment 65 katnatek 2024-02-23 03:09:12 CET
@Chris Denice, what you think, we push this update now, but you will need to adjust waydroid again when new kernel arrive or you make that adjust before ?
Comment 66 Chris Denice 2024-02-23 08:52:26 CET
Let's wait a bit to test with kernel 6.6.17, I'll redo a full test on my side.
Comment 67 Chris Denice 2024-02-24 16:32:59 CET
waydroid-1.4.2-2.mga9.src.rpm landing on updates_testing, designed to work for kernels 6.6.18!

If this does not work, please report
ls -l /dev/binderfs/*

Thank you.

NB: no need to add anything in modprobe*, everything is triggered by mounting the binderfs by the kernel.
Comment 68 Giuseppe Ghibò 2024-02-24 20:35:48 CET
Maybe the config created /var/lib/waydroid/lxc/waydroid/config can be patched to have by default the "lxc.apparmor.profile = unconfined" commented.

CC: (none) => ghibomgx

Comment 69 Chris Denice 2024-02-24 21:19:21 CET
I don't know how to do that, and it will be sure to fail at some point. Indeed, these guys are created when downloading the image, we do not ship these files, they are from waydroid guys.

To be honest, I really don't care about waydroid, I just wanted to control my stupid traxxas RC charger, and, at the end, waydroid is not even supporting bluetooth.

The good side is that it allowed me to see that it was seriously broken on mga, now it works with minimal effort. If this is really still working for 6.6.18, let's push this update. Anyone with interests can now make it work (the pb with lxc is known upstream, why they don't fix it is out of our light-cone) :)
Comment 70 katnatek 2024-02-24 21:37:43 CET Comment hidden (obsolete)
katnatek 2024-02-24 21:39:53 CET

Status comment: Usage in comment 61, would be nice as Wiki page => Usage in comment 70, would be nice as Wiki page

Comment 71 katnatek 2024-02-24 21:42:44 CET
Test related to this bug Mageia 9 x86_64 Plasma session

uname -a
Linux phoenix 6.6.18-desktop-1.mga9 #1 SMP PREEMPT_DYNAMIC Sat Feb 24 02:17:35 UTC 2024 x86_64 GNU/Linux

rpm -q dkms-anbox
dkms-anbox-0.0.3-6.mga9 (custom build)

Not panics and waydroid works (I not perform cleaning, just test the image I get in previous test)
Comment 72 katnatek 2024-02-24 21:57:13 CET
Test related to this bug Mageia 9 x86_64 Plasma session

uname -a

Linux phoenix 6.6.14-desktop-2.mga9 #1 SMP PREEMPT_DYNAMIC Tue Jan 30 15:48:16 UTC 2024 x86_64 GNU/Linux

LC_ALL=C rpm -q dkms-anbox
package dkms-anbox is not installed

Waydroid works here too, wait to 6.6.18 is not necessary
Comment 73 Giuseppe Ghibò 2024-02-24 22:00:32 CET
Indeed:

kernel-desktop-6.6.18-1.mga9 works regardless of any dkms-anbox
kernel-desktop-6.6.14-1.mga9 works only without dkms-anbox
Comment 74 Giuseppe Ghibò 2024-02-24 22:04:40 CET
(In reply to Chris Denice from comment #69)
> I don't know how to do that, and it will be sure to fail at some point.
> Indeed, these guys are created when downloading the image, we do not ship
> these files, they are from waydroid

OK. Apparently the config is created from profiles not from the downloaded image.  This patch in attach should change the lxc.apparmor.profile line in config.
Comment 75 Giuseppe Ghibò 2024-02-24 22:05:20 CET
Created attachment 14421 [details]
fix for default config
Comment 76 katnatek 2024-02-24 22:20:28 CET
Test related to this bug Mageia 9 x86_64 Plasma session

uname -a
Linux phoenix 6.6.18-desktop-1.mga9 #1 SMP PREEMPT_DYNAMIC Sat Feb 24 02:17:35 UTC 2024 x86_64 GNU/Linux

LC_ALL=C rpm -q dkms-anbox
package dkms-anbox is not installed

Works here, wait to update the advisory in case  Chris Denice want to include the Giuseppe patch in another build of waydroid
Comment 77 Chris Denice 2024-02-24 22:39:10 CET
> fix for default config

Good Job (TM)!!

waydroid-1.4.2-3.mga9 landing in update_testings!!
Comment 78 Marja Van Waes 2024-02-24 23:26:43 CET
(In reply to Chris Denice from comment #77)
> > fix for default config
> 
> Good Job (TM)!!
> 
> waydroid-1.4.2-3.mga9 landing in update_testings!!

The advisory in SVN has been updated accordingly
Comment 79 Giuseppe Ghibò 2024-02-24 23:40:38 CET
BTW, the image I tried that working was vanilla, in fact in /var/lib/waydroid/config there is the entry:

system_ota = https://ota.waydro.id/system/lineage/waydroid_x86_64/VANILLA.json

I used that (as it was the default one) before learning there was another image that could be used: GAPPS (which I guess has just more apps).

Curiosly with AnTuTu 10.2 is gives a score of 610000, which is pretty high for an android emulator (but score 0 for GPU).

Within waydroid also it proposed the update of the images to current, and worked.

I think we can add the upgraded notes of comments #70 to some wiki pages, so other mageia users can try quickly. For Xorg users that do not want to start Xwayland, the simple extra step is to to install package weston, and to run step 3) and step 6) [step 3) is also as user] within a 'weston''s terminal, having started the command 'weston' from command line.
Comment 80 katnatek 2024-02-25 03:46:13 CET Comment hidden (obsolete)
Comment 81 katnatek 2024-02-25 03:47:41 CET
Let's start again from scratch.

You need:

* UNINSTALL dkms-anbox before if you will test on kernel 6.6.14 and, if you are under kernel 6.5 and you test before waydroid.
* kernel desktop version >= 6.6.14 
* waydroid-1.4.2-3.mga9 on core/updates_testing
* lib64gbinder1-1.1.34 on core/updates_testing
* python3-gbinder-1.1.2 on core/updates_testing
* lxc-5.0.3-1.mga9, See https://bugs.mageia.org/show_bug.cgi?id=32687#c10 if ypu have previous version of lxc before

* Plasma (GNOME?) running on wayland or in X11/Xorg session install weston (comment#79)

NB: remove a possible old directory /var/lib/waydroid 

To test, hopefully a bit simpler than before


0) From Giuseppe "A little bit difficult to get the networking: a quick workaround is to disable shorewall" (note from katnatek I already have firewall disabled)

1) Boot a kernel desktop 6.6 with the option "psi=1"

2) Install the waydroid package of updates_testing (1.4.2), check out the correct gbinder packages are also installed
 

3) As root, start the container
systemctl start waydroid-container

4) Install the image (GAPPS) using the menu (run as user):
waydroid first-launch

5) If all works fine, the waydroid window should start automatically !

5.1) If not make some cleaning (see comment#57) repeat step 4 ,test with VANILLA image

5.2) If you lost connection, run MCC -> Network & Internet -> Network center , disconnect and connect the network

This is working for me! Good luck folks :)

---------------
The packages required for this update advisory are:

RPMS:
i586:
libgbinder-devel-1.1.34-1.mga9.i586.rpm
libgbinder1-1.1.34-1.mga9.i586.rpm
python3-gbinder-1.1.2-2.mga9.i586.rpm

x86_64:
lib64gbinder-devel-1.1.34-1.mga9.x86_64.rpm
lib64gbinder1-1.1.34-1.mga9.x86_64.rpm
python3-gbinder-1.1.2-2.mga9.x86_64.rpm

noarch:
waydroid-1.4.2-3.mga9.noarch.rpm


SRPMS:
libgbinder-1.1.34-1.mga9.src.rpm
python-gbinder-1.1.2-2.mga9.src.rpm
waydroid-1.4.2-3.mga9.mga9.src.rpm
katnatek 2024-02-25 03:48:06 CET

Status comment: Usage in comment 70, would be nice as Wiki page => Usage in comment 81, would be nice as Wiki page

Comment 82 katnatek 2024-02-25 03:54:48 CET
Already tested and I modify the steps with the results that I see in the test

Is OK for me Mageia 9 x86_64 Plasma Wayland
katnatek 2024-02-25 04:01:28 CET

Whiteboard: IN_ERRATA9 => IN_ERRATA9,MGA9-64-OK

Comment 83 Chris Denice 2024-02-25 09:11:19 CET
Well done guys!
Comment 84 Thomas Andrews 2024-02-25 17:58:41 CET
Validating, at last...

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 85 Mageia Robot 2024-02-27 02:09:26 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0074.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.