Live data from Hacker News

Run Linux containers on Android, no root required

github.com

51–60 of 96 posts

Re: Run Linux containers on Android, no root required

#51

Earlier quoted context omitted.

I've been using Waydroid with microG on a Librem 5 with PureOS for years. Not extensively as I don't have a lot of reasons to boot Android, but when I do have one it's there. I've seen some guides for installing Play Services in Waydroid, but personally I'm not interested.

The latest Waydroid beta is over three years old. Waydroid is dead and I haven't found an alternative.

The latest stable release of Waydroid is from little over a month ago. The Android image it uses by default is based on Android 13, which is fresh enough to do its job.

Re: Run Linux containers on Android, no root required

#53
post #28

Earlier quoted context omitted.

My understanding is that the integrated linux terminal is not supported on all processors like snapdragon ones and also is not available on all manufactures like Samsung. Therefore this approach covers a much bigger audience.

I think it was only available on Google Pixel until recently. As far as I understand, some Samsung Exynos devices support it (e.g. Z Flip 7, non-US S26 with Exynos), but not Snapdragon devices, which don't seem to support non-protected VMs yet: Error code: java.lang.UnsupportedOperationException: Non-protected VMs are not supported on this device

Can confirm -- seeing the same error on a Samsung Snapdragon device when attempting to use the Linux terminal

Re: Run Linux containers on Android, no root required

#54
The QEMU TCG approach makes sense for isolation, but I'm curious about the traffic routing story. Does each container get its own network namespace, or does all traffic still go through Android's network stack? The latter would mean carrier-level DPI still sees everything the container sends — which matters a lot depending on what you're running.

Re: Run Linux containers on Android, no root required

#56
post #30

Termux and a BT keyboard it's enough. Also, native Emacs under FDroid has recently been improved a lot. With just Emacs you get: - An IRC, Usenet and Mail client. The ONLY libre Usenet client. comp.arch and comp.misc have really engaging discussions. You can score up nice commenters and blacklist every spammer - Gemini and Gopher via ELPA (run Esc-x package-install RET elpher) - A math mini CAS with Esc-x calc RET -…

I tried Emacs, but realised I need NixOS to get the packages I depend on like git to download my config. I can't use stock emacs. There's a trick to get Emacs and termux to share packages, but not for nix-on-droid :/

Re: Run Linux containers on Android, no root required

#59
post #45
post #17

I don't understand what this would be useful for. The Linux terminal app on Android (check Developer settings if you want it) already exists and it uses hardware accelerated virtualization, while this uses QEMU with TCG. The Linux terminal app also supports running a DE (No VNC - as in no VNC, not NoVNC - required!), has full shell, full root, all the features of Podroid, and hell, you could even swap out the termina…

Wow, didn't know this existed, thanks. But 761 Mo download?? That's insanely big for a terminal, what could possibly make this bundle so big?

It's not giving you access to Android shell, but one inside VM. So OS image for VM.
Post reply on HN