I tried using Waydroid on Linux Mint (Edge) only to have it not work and realized that it requires Wayland, and Mint uses X11. So I used VirtualBox to install Fedora 40 Gnome which does use Wayland.

I installed Waydroid as per the instructions and am having seemingly the same issue as on Mint. After downloading “Vanilla” Android and clicking “Done” everything exits out. So I launch the Waydroid application but nothing ever happens.

I then try to manually start Waydroid in terminal but always get “ERROR: WayDroid container service is already running”. Then I skip to the second step “waydroid session start” but receive “OSError: container failed to start”.

Am I doing something wrong? Is it simply because the VM is causing the issues? Or does WayDroid not work well on Fedora? Thanks

  • db2@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 year ago

    I have waydroid working great in the latest Mint. You need Weston so Waydroid has a Wayland to connect to.

    e: or use the experimental Wayland in 21.3 but it’s not ready for daily driving

    • db2@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Here’s the script I use to start and stop Waydroid:

      #!/bin/bash
      PID=$(pgrep "weston")
      if [ "$?" -eq "0" ]; then
          waydroid session stop
          kill $PID
          exit
      fi
      weston --width=1920 --height=1080 --socket=wayland-1 &>/dev/null &
      sleep 2
      WAYLAND_DISPLAY=wayland-1 XDG_SESSION_TYPE=wayland waydroid show-full-ui
      

      Change the resolution to whatever you need it to be. Run it once to start, again to stop. It just lives on my desktop.

  • wildbus8979@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 year ago

    If you’re going to run waydroid in a VM, why not just run Android in a VM?

    Also why. The. Hell. Are. People. Still. Using. Virtualbox? What is this? 2005? You’re already running a kernel with built in world tier type 1 virtualization.

    • GenderNeutralBro@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      1 year ago

      Is there an easy way to run Android in a VM?

      It’s been a long time since I looked, but I never had great success. The only AMD64 builds I could find were ancient. Getting apps installed was difficult. And my understanding (correct me if I’m wrong) is that Waydroid delivers apps in windows without a whole Android UI around them.

      The best option I found was using the Android Studio simulator.

    • MonkderDritte@feddit.de
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Also why. The. Hell. Are. People. Still. Using. Virtualbox?

      Couldn’t get any Qemu-manager to work (and no time to master running it with scripts) and Vmware can use KVM as hypervisor. Virtualbox not?

      • wildbus8979@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        1 year ago

        No, VirtualBox is a Type 2 hypervisor.

        I’m not sure what qemu-manager is, but virt-manager works out of the box on Debian at least. There are no scripts needed, it’s a UI.