A virtual machine for tablets/smartphone needs kvm

A VIRTUAL MACHINE FOR TABLETS/SMARTPHONE NEEDS KVM

uChaoSys v0.6.5: frankenstein glibc-musl static u-qemu boots in 0.06s and it is capable to self-hosting and self-executing as definitive healthy proof of binary.

Everything in less than 6MB including the PractRand RNG_test, the randomness test static binary.

It runs itself. šŸ˜Ž

It is just a prototype, but ask your team to compile the same version of the KVM module for the kernel. That change will allow a ARM compiled qemu to start a virtual machine with a passthrough access (much faster) in every mobile device without the need of invalidating the boot or rooting the phone. Once a VM like that is running every reasonable compatible OS can run on the phone, including an entire linux distribution. At that point via bluetooth and USB-C that device can transform into a ultra-portable PC or a playbox or a multi-media box.

Best regards, R-

2 Likes

what are popular qemu-on-android projects, limboemu or qemu-within-termux? have you seen any aosp based roms incorporating qemu?

(I don’t see virtualization on Android mentioned here often: there’s been one thread on AVF)

As the author of that one thread, I am still interested in this feature.

When I looked into it several years ago, the best non-root qemu option seemed to be Limbo x86 PC Emulator | F-Droid - Free and Open Source Android App Repository
but that only supported 32-bit operating systems and was very slow due to lack of virtualization support. That app also stopped getting updates somewhere between then and now.

The most success I’ve had fulfilling my dream was with a modified Andronix install script that worked off proot with termux (no root required) and let me use any .iso of choice. But that was not actually a virtual machine and I couldn’t install anything that wasn’t installed during the installation of the .iso. I was using X11 and connected to a display using VNC.
LibreOffice barely worked after various tweaks. It was too much effort to backtrace my steps to reproduce my results when I switched from an old phone to my previous phone, and I haven’t touched it since.

Another feature that virtualization would hopefully enable is the ability to run docker/podman containers, which would be great for things like self-hosting.

Back when I looked into running docker containers on Android, I did find a blog post about someone recompiling their android kernel to enable support for docker through termux, but that was a step too complicated and high-risk for me to try at the time.

It seems like there’s an up-to-date tutorial for this on GitHub, but it still requires a custom kernel and a rooted device.

The above tutorial was apparently (partially) written with Copilot, and I found another one that supposedly allows you to run podman without root, (partially) written with Claude.

Here’s another thread. But it’s definitely a rare topic.

In fact, I’m pretty sure these are the only two, based on a search for ā€œlinux terminalā€ and ā€œvirtualā€ returning no other relevant results.