Re:Virtual Machine as a Core Android Primitive
by awoimbee on Tuesday December 05, 2023 @06:44PM
(#38538542)
Will this allow running linux VMs on any Android device ?
Via something like nestbox: https://www.patreon.com/posts/74333551 ?
[ Parent
| on HN ]
Re:Virtual Machine as a Core Android Primitive
by saagarjha on Tuesday December 05, 2023 @08:15PM
(#38539315)
AVF supports this, people have used it to boot Linux and Windows. See for example https://twitter.com/kdrag0n/status/1493089098944237568
Re:Virtual Machine as a Core Android Primitive
by heavyset_go on Tuesday December 05, 2023 @07:24PM
(#38538882)
This is already possible if your phones ship with the KVM kernel module, like on some Pixel devices, but reading the article suggests that KVM will become standard on all Android devices to enable this.
edit: according to this[1], yes, the pKVM functionality that's standard in Android exposes KVM functionality so that you can run VMs on Android.
[1] https://www.xda-developers.com/android-13-dp1-google-pixel-6...
Re:Virtual Machine as a Core Android Primitive
by walteweiss on Wednesday December 06, 2023 @07:47AM
(#38543140)
Which Pixel devices? Is it something new or not-so-new?
Re:Virtual Machine as a Core Android Primitive
by heavyset_go on Wednesday December 06, 2023 @07:37PM
(#38551420)
I couldn't tell you, sorry. Just going off what I've read in some articles like the one I posted.
Re:Virtual Machine as a Core Android Primitive
by angm128 on Wednesday December 06, 2023 @07:58AM
(#38543228)
A full linux environment (with external monitor support) sounds awesome. I hope that enabled KVM becomes standard
Would graphics acceleration work properly?
Re:Virtual Machine as a Core Android Primitive
by anthk on Wednesday December 06, 2023 @09:08AM
(#38544058)
You can already to that with termux, XSDL and some scripts. No virtualization needed.
Re:Virtual Machine as a Core Android Primitive
by heavyset_go on Wednesday December 06, 2023 @07:36PM
(#38551414)
Depends on the kind of acceleration you want. VirGL is available on Linux host/Linux guest setups with recent kernels, not sure if QXL/SPICE will be available or can be added to the userland. Can't imagine a hardware passthrough situation making sense on a phone/tablet, either.
Re:Virtual Machine as a Core Android Primitive
by jsight on Tuesday December 05, 2023 @10:07PM
(#38540078)
It sounds like it will become common eventually. I just wish that there were a more supported pathway to running full VMs like that. These devices are powerful enough to do it pretty well now.
Re:Virtual Machine as a Core Android Primitive
by KRAKRISMOTT on Wednesday December 06, 2023 @02:19AM
(#38541262)
Are the VMs hardware accelerated?
Re:Virtual Machine as a Core Android Primitive
by saagarjha on Wednesday December 06, 2023 @02:46AM
(#38541408)
Yes.
Re:Virtual Machine as a Core Android Primitive
by codethief on Thursday December 07, 2023 @07:32PM
(#38563859)
Straight from the horse's mouth:
> pKVM is built on top of the industry standard Kernel-based Virtual Machine (KVM) in Linux. It means all existing operating systems and workloads that rely on KVM-based virtual machines can work seamlessly on Android devices with pKVM.