Good option for Pixel owners or phones with MediaTek chips though.
They used to (mid-late 2000s) use an L4 derivative ("REX"?), with the more recent chips (including the 'X' series for PCs) using their homegrown "Gunyah" hypervisor (https://github.com/quic/gunyah-hypervisor)
Disclaimer, my memory on the exact terminology is extremely fuzzy. But pixels with tensor can run it just fine. And it's purely a software thing too, btw.
pKVM requires a) a compatible CPU (most CPUs will do, probably), b) compatible firmware/bootloader software, and c) a compatible Android build
The latter two parts are the most likely reason why not all phones have support for this.
The option to install the subsystem is present on both, but I have not attempted it.
I have loaded it onto a Pixel 6a running Graphene.
1. type some command, hit enter
2. hit up to edit it (because you typoed something)
3. can't backspace because the soft keyboard thinks there's nothing to delete
https://itsfoss.com/news/google-android-linux-terminal-rollo...
Could it be that it's just very flaky on all pixel devices? Or maybe something graphene is doing to harden the OS doesn't play nicely with how it's been implemented?
To be fair, the feature was still labeled as experimental in the dev settings when I enabled it.
https://social-cdn.vivaldi.net/system/media_attachments/file...
Termux is doing a container. The android terminal is doing a virtual machine. That's the difference.
Termux would definitely be the light weight option, but you will be pinned to whatever version of the kernel your device is shipped with (may be a bit old.)
That doesn't matter much for using SSH though.
For running more complex Linux programs or scripts Termux is indeed less comfortable (but it can still work).