Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can Waydroid run in a virtual machine? #310

Closed
ghost opened this issue Feb 16, 2022 · 9 comments
Closed

Can Waydroid run in a virtual machine? #310

ghost opened this issue Feb 16, 2022 · 9 comments

Comments

@ghost
Copy link

ghost commented Feb 16, 2022

I haven't found information regarding VM-support in Waydroid, but there's at least a related Github pull request. I don't currently run Ubuntu or any of its derivatives on my main machine and I'm using AMD hardware.

I have installed Waydroid on Ubuntu 21.10 (Impish Indri) and 20.04 (Focal Fossa) in Oracle Virtualbox, but Android apps don't launch and no error messages are printed to the terminal — I'll create a dedicated issue if VMs are within the scope.

@hackel
Copy link

hackel commented Feb 16, 2022

Seeing the same on the latest (14 Feb) release of Waydroid-linux. I installed it in a Virtualbox VM. I've tried running Waydroid under the default "Ubuntu" session, Waydroid on Mutter, and Weston, and on all of them, the Waydroid session appears to run, but Win+Tab does nothing, and I have yet to see an actual Android app. I can see them running in the processlist. I suspect this has to do with the graphics subsystem inside the VM not emulating Intel. I haven't figured out how to switch to software rendering yet.

hackel@waydroid-virtualbox:~$ waydroid session start
[10:21:10] Failed to start Clipboard manager service, check logs
[gbinder] Service manager /dev/anbox-binder has appeared
[10:21:47] Android with user 0 is ready

And in waydroid log I see:

lxc-start: waydroid: utils.c: safe_mount: 1198 No such file or directory - Failed to mount "/dev/video1" onto "/usr/lib/x86_64-linux-gnu/lxc/dev/video1"
lxc-start: waydroid: utils.c: safe_mount: 1198 No such file or directory - Failed to mount "/dev/video0" onto "/usr/lib/x86_64-linux-gnu/lxc/dev/video0"

Edit: I followed the instructions here and now it is working.
https://docs.waydro.id/faq/get-waydroid-to-work-through-a-vm

@ghost
Copy link
Author

ghost commented Feb 16, 2022

I followed the instructions here and now it is working.
https://docs.waydro.id/faq/get-waydroid-to-work-through-a-vm

Great — I was able to launch both Newpipe and F-Droid after editing the config file, but with heavy rendering glitches and the apps crashed soon after.

AMD's integrated graphics.

@ikosp
Copy link

ikosp commented Feb 17, 2022

I edited waydroid_base.prop in Vmware player, android started, but immediately the whole system crashed.
The graphics card is nvidia quadro

@calvinweb
Copy link

Why no run android x86 driectly?

@Quackdoc
Copy link
Contributor

Quackdoc commented Apr 15, 2022

it's worth noting that on qemu virgl works with waydroid. 3d acceleration will not work on vmware or virtualbox at this time

@Quackdoc
Copy link
Contributor

I edited waydroid_base.prop in Vmware player, android started, but immediately the whole system crashed. The graphics card is nvidia quadro

using those instructions provided in the faq you will be using software rendering. if you followed those and you are still having issues it is probably worth creating a different issue

@aleasto
Copy link
Member

aleasto commented Nov 19, 2022

Can Waydroid run in a virtual machine?

Yes but you need to disable graphics hw acceleration: https://docs.waydro.id/faq/get-waydroid-to-work-through-a-vm

@aleasto aleasto closed this as completed Nov 19, 2022
@wuyue92tree
Copy link

wuyue92tree commented Feb 10, 2023

Can Waydroid run in a virtual machine?

Yes but you need to disable graphics hw acceleration: https://docs.waydro.id/faq/get-waydroid-to-work-through-a-vm

I did this, but still not work. Any config wrong?
image

@tom-snow
Copy link

tom-snow commented Feb 15, 2023

I did this, but still not work. Any config wrong? image




You should start a wayland socket first. (You can using weston)
If you running on a VPS server you can run weston with rdp backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants