20 ms·
Android 13 virtualization lets Pixel 6 run Windows 11, Linux distributions
- userland_tech 5y agoYou can run Linux distros on non-rooted phones with UserLAnd. It is still receiving updates on the Play store. It uses proot intead of virtualization. I hope this new feature ends up being more accessible to people, but until then, I will try to make UserLAnd useful for everyone (I am the developer of UserLAnd).
- f6v 5y ago> What that means is that it is now possible to run virtually any operating system including Windows 11, Linux distributions such as Ubuntu or Arch Linux Arm on the Google Tensor-powered phone, and do so at near-native speed. Native as in Windows on ARM native? I held Surface Pro X in a shop and man was it disappointing.
- qalmakka 5y agoWell, obviously it has to be AArch64 Windows, running x86_64 OSes on ARM requires emulation which has always been possible. KVM simply allows the Linux kernel to act as an hypervisor.
- xvector 5y agoThis is actually amazing!
- sneak 5y agoI'm looking forward to the future we have envisioned for a long time, where you carry your main computer around with you and simply drop it into a standardized i/o dock when you sit at a desk and it runs the big high res displays and accepts keyboard/mouse input, and you use it like a phone the rest of the time. (Basically, a phone that is also a laptop replacement - I know there are dockable phones now that can run a monitor and kb/mouse, but they're not really "laptop replacement" level.) I could even imagine such a system having two different CPUs (or, more likely, different cpu performance cores in a single package) that power up/down based on wired power availability, basically just automatically getting many times faster when connected to power and not having to conserve juice on battery. Storage and memory are already fairly low power these days, and tiny. Mobile (i.e. handheld) GPUs are now powerful/efficient enough to run high-res handheld displays with all day battery life, which while probably not 4k gaming level, are more than enough to run a multimonitor desktop setup when not gaming, especially if you make the quite safe assumption that they'll have wall power to crank up the GPU whenever asked to run external displays. I'm really excited about mobile computing over the next ten years. The Nintendo Switch and M1 iPad Pro are little glimpses into this future. I look forward to replacing the dozen computers in my lab with a single handheld device that can simultaneously virtualize many of them and conveniently multiplex several big displays between them, and come with me in my pocket when I leave.
- gigatexal 5y agoIsn’t this the Samsung Dex experience?
- dainiusse 5y agoProbably yes, but we haven't had a decent product like that. Now if it can decently run a linux distro (with external display, etc) I might ditch my iPhone....
- izacus 5y agoWhat's not decent about Samsung DeX?
- heavyset_go 5y agoIt's also what Ubuntu Touch aimed to do. Not sure if that's a use case that UBports still tackles, though.
- diffeomorphism 5y agoWe already had that, e.g. maru OS, ubuntu touch, Linux on Dex, whatever windows called their version, ... . It pretty much flopped. So it is "the future" in the same way 3D TVs were: Much hype and then kinda neat, but not great.
- wolpoli 5y agoIn a perfect world, it would work great. A world where hotels and workplaces have available phone docking stations that allow the travelling business people to plug their phones in, and their phones boot up an OS where we could have access to the full power of our personal computers on the provided monitors/keyboard/mouse. The world doesn't exist. And it's not that much more expensive for the workplace to add the computer, and it's much more convenient to just carry our own ultraportable laptops so that we could work at coffee shops and on the planes. But perhaps there is an use case out for parents with multiple kids who don't want to use low-powered or hand-me-down computers...
- hulitu 5y agoYou could run linux before. With qemu. It was a crappy experience. Even writing on a touchscreen is bad and when the window is tiny and you barely see the letters is even worse. Of course you can hook a wireless keyboard and mouse but then better go to the PC which has even a bigger screen. I really don't see what this brings. Is google so lost that the only "innovation" they can bring in android is descovering that the linux kernel has support for virtualization ?
- monocasa 5y agoIt seems like they're taking Android in a Qubes-like direction. https://blog.esper.io/android-dessert-bites-5-virtualization-in-android-13-351789/ https://blog.esper.io/android-dessert-bites-5-virtualization...
- mateuszf 5y agoYes, please. I'd love to separate Facebook, Google, Amazon, etc. apps into separate domains. As I'm doing with web apps via Firefox containers.
- GekkePrutser 5y agoI don't think Google is doing this to give you more privacy. They have every incentive to do the exact opposite. Ps Firefox containers are great indeed and I use them for the same reasons. But I doubt this is the intended usecase for this. I don't see Google investing a ton of money to build something that will hurt their bottom line.
- mateuszf 5y agoYou're probably right, but the fact that underlying technology will be present may be used by someone to implement it. Like in the case of the Shelter app. https://play.google.com/store/apps/details?id=net.typeblog.shelter&hl=en_US&gl=US https://play.google.com/store/apps/details?id=net.typeblog.s...
- 5y ago
- gbil 5y ago> they’re used for things like enhancing the security of the kernel (or at least trying to) and running miscellaneous code (such as third-party code for DRM, cryptography, and other closed-source binaries) outside of the Android OS long shot here, does this make it more possible for production releases to be closer to AOSP and then run the rest on the hypervisor ? Also the future of project tremble, meaning better upgrade paths for all devices (outside of manufacturer will which is still the main issue) ?
- MrYellowP 5y ago> But why did Google enable virtualization in Android? They had no idea it was for locking things down. Sure, it allows running VMs, but that doesn't change anything about it. "I'll force A on you, but you'll get B so don't be mad." ... but this only really applies on the surface. Locking things down is the road forward in the industry anyway. That's why the Desktop OS war is long over, too. Everything will, eventually, run on everything. We're being sold digital lockdowns as features which supposedly provide us with more freedom. In the end we'll have downloadable programs we'll rent to use, which run in a cut-for-the-purpose container, without any ability to tinker, hack, or modify. Rent or die. Don't want any of this? Fine, but you're locked out of the eco-system. Have fun enjoying what's left for you to do/use. I wish more people knew what's coming. I don't know why they don't. I'm sure the information is out there, but apparently nobody is talking about it, thus nobody knows about it. My guess is simply that it wouldn't actually be particularly popular if people actually understood that they're just being misled. For those rolling their eyes, considering that nowadays it's the norm to sell safety/security as beneficial, because of reasons based on fear. Benjamin Franklin would probably be really angry about how normalized it has become to give up liberties for some false sense of security. The unintentionally worst people are the ones who think this is all a great idea. Because security. Fact of the matter is, though, that if people had to actually know and understand what they're using and doing, we'd not be in the mess we are today. What I mean by that is that the world apparently has this deep issue with fear of pretty much everything and humanity tries hard to make the fears less worse instead of getting rid of them by using education and getting rid of the fearmongers. This reminds me of my friend. He insists on having his AV and cookie blocker running. He thinks that's super important. Every new site he manually blocks everything. This same guy also insists on continuously installing all kinds of stuff, and after just two months his new notebook took 20 seconds to boot. When he got it, it were two. The worst part about this is that he's so brainwashed into believing that he really needs this, despite me being living evidence that he doesn't, that there is actually no way of educating him. The fear machine has dug too hard into him and, unless they stop, there's actually no way of getting rid of it. Not gonna lie, I actually think this is amazing. On one hand he's extremely cautious about security, which is not unreasonable per se, on the other hand he installs all kinds of shit because he's an idiot who doesn't actually know what he's doing. He's just doing what he's being told to do. Amazing.
- kdrag0n 5y agoI've also uploaded videos of Windows 11 in action: Booting, logging in, simple usage: https://twitter.com/kdrag0n/status/1493088558676017152 https://twitter.com/kdrag0n/status/1493088558676017152 Playing Doom (via x86 emulation): https://twitter.com/kdrag0n/status/1493089098944237568 https://twitter.com/kdrag0n/status/1493089098944237568 And Linux: Booting various distros: https://twitter.com/kdrag0n/status/1492832966640222210 https://twitter.com/kdrag0n/status/1492832966640222210 Compiling Linux 5.17-rc3 allnoconfig for arm64, on Arch: https://twitter.com/kdrag0n/status/1492833078410047488 https://twitter.com/kdrag0n/status/1492833078410047488
- ignoramous 5y agoThanks. Have you written up a long-form post on how you went about doing this? I am also excited to see what booting multiple OSes means for the ecosystem around phh's (treble) builds, too.
- kdrag0n 5y agoPossibly, I might write a post and/or release tools to do it in the future.
- VVVExobyte 5y agoDude, this is awesome! Huge kudos to you!
- ourmandave 5y agoDoes Doom have it's own ISO Committee yet? Because I swear Does It Run Doom? is becoming a requirement checkbox for any new project.
- exikyut 5y agoBe careful. Down this path lies "the ISO is asking us to formally specify the mechanics of DOOM" and then the only resulting end game of that is "we got DOOM running on the ISO committee!" Naturally I agree with you though. (Because we need DOOM running on more platforms~) And I'd suggest Bad Apple also needs similar treatment.
- cosmaioan 5y agoMany of the comments are from the point of view treating the phone as a desktop to use directly with is not very nice experience. I want to treat the "old" phone as a server: 8 cores , 6 GB Ram, UPS, plenty of storage(expandable), Low power consumption , small form factor, redundant network 4/5G+Wifi, has built in screen and "keyboard" for time when you need to do debugging. Does others experience with this kind of setup? What services are you running ?
- throw8932894 5y agoI use phone as a wifi hotspot and file server with Termux (sshd, ftpd). Works pretty well.
- MayeulC 5y agoPostmarketOS gets you pretty close to this: boot alpine Linux, with more or less everything working. Even if the screen and/or GPU acceleration do not work on that phone, that would be plenty to replace a Raspberrypi. I've been thinking about this quite seriously, and for now I see a few pain points: - Some phones (looking at my daily driver, a Galaxy S4) do seem to allow disconnecting the battery from the charging circuit, which could lead to issues in the long run - Ideally, you'd want to connect a USB hub over USB OTG (wired Ethernet, USB storage, real keyboard). I have yet to try charging the phone at the same time, although I think some cables enable this.
- pishpash 5y agoI/O is too bottlenecked to "serve" anything serious. It's the problem with most SoC including Raspberry Pi.
- allisdust 5y agoMay be it will finally let Linux distros have a teeny tiny foothold on mobile ? May be the stuff that is difficult today - interfacing with the hardware can be delegated to the native OS and guest OS can focus on providing more features.
- hdjjhhvvhga 5y agoLast time I checked, the only meaningful feature of Windows 11 when compared to Windows 10 was advertised as the ability to run Android apps at some point in the future. Well, it looks like Microsoft got behind again.
- udbhavs 5y agoThey have a chance to get ahead if they add full blown Windows in docked mode for their new surface phones since they're running android anyway. Yes, DeX and co exist but no one wants to use them because for the mass majority Desktop = Mac or Windows and not full screen android with a taskbar slapped on it. Having a proper desktop with the same documents and files from your phone with a single USB C connection could finally lower the friction enough for docking phones to become a mainstream thing. Combine that with natively passing through the actual android apps from the device into the VM, you can potentially get a no-compromise experience. But who knows, maybe I'm the only one who gets too excited about tinkering with weird setups like this and it's not actually ergonomic for everyday use
- bsd44 5y agoSo a VM inside a VM inside a physical container. Sounds great.
- xpuente 5y agoThis opens the opportunity to run virtualized iOS inside Android?
- ugjka 5y agoI hope this saves Termux
- pjmlp 5y agoThe only thing that would save termux would be to provide a UNIX like experience on top of Java APIs, trying to pretend NDK is Linux won't save them.
- yjftsjthsd-h 5y agoIt's unlikely to save it, per se; it might, hopefully, obsolete Termux for most uses (why recompiled debs when you can just install Debian?), but won't help with Android API surface that Google keeps breaking (if they didn't give a native app raw filesystem access or let it run in the background, will they let a VM do so?).
- userland_tech 5y agoUserLAnd already allows you to just install Debian and other distros on non-rooted devices. Note: I am developer of UserLAnd.
- avidphantasm 5y agoApple needs to open up is newish virtualization framework on iPadOS. The M1 iPad Pros with Magic Keyboard are great, but basically useless for development work. I want to use mine as a separate, stripped down environment to learn new technologies in. The only way I have found is to use it as an SSH terminal.
- DaiPlusPlus 5y ago> The M1 iPad Pros with Magic Keyboard are great, but basically useless for development work. I think that's the point. There's a nontrivial % of Mac Mini / MacBook / iMac sales entirely because of the need to have Mac to publish anything, even PhoneGap/Cordova projects and Safari Extensions to the Apple App Store.
- kalleboo 5y agoI don't think apple is too afraid of cannibalizing the Mac with iPad. The iPad Pros are on par price-wise with the Mac after you get keyboard cases etc, and on iOS they also get a huge cut of every app sold since you have to get them from the app store. They'd probably be thrilled if Macs were replaced with iPad. The can always jack up the price later. They wouldn't have spent years neglecting the downfall of the Mac if they cared so much about that revenue.
- avidphantasm 5y agoI already have a MBP for that. I want something with no/less windows and less distractions so that I can learn in a stripped down environment. Also, an iPad Pro+Magic Keyboard costs as much or more than many/most MacBook Airs.
- hughrr 5y agoI'm not sure why you'd want to use it as a development device when there is a not much heavier MacBook Air available with the same brain in it. I actually ran from September 2021 to January 2022 with just my iPad Pro as a computer for all personal tasks, which include programming, and decided that I was artificially limiting what I was doing for the sake of a minimalist ideal. iOS is just not the right tool for the job. Each Apple device has a very nice overlapping niche and a lot of consistency between them but some devices are intentionally not designed to do some tasks. iOS is fine for non power user tasks and simple automation but nothing more. For 80% of what I do that is fine so I usually go to the iPad first always. But if I want to sit down and do full on keyboard based productivity it's the MBP every time. The iPad Pro has a very special place in my heart though. It's the most reliable and efficient machine and with the Apple Pencil it's a game changer. I love to take it with me when I go out for a weekend and will sit in a hotel, do spreadsheet, organise tasks, do some drawing, watch some streams, casual messaging and emails and even video and photo editing. But not programming!
- TheMode 5y agoWould this allow me to plug an Android phone into a monitor and have it boot windows/linux like DeX? (so keeping android on the phone, but the desktop on the external display) This would be a pretty strong argument for me to move away from iOS.
- fsflover 5y agoThis one allows that: https://puri.sm/products/librem-5 https://puri.sm/products/librem-5.
- TheMode 5y agoIs it really usable as a phone? Seems like it would be a step back for any modern ios/android device user.
- fsflover 5y agoDepends on your use case. Yes, it's a step back in convenience (yet) but many steps forward in privacy and security.
- TheMode 5y agoI'll have to wait for those to get flagship specs before considering it. Though honestly I'd probably prefer an android/ios device able to run a different operating system on the external display in all cases.
- eptcyka 5y agoNow I wonder, if this is also possible on Pixel 5's SoC too.
- tomjonesey 5y ago
- zoom6628 5y agoSo cool! A serious replacement for termux which is awesome. Being able to run a full vm, if can have a personalised “desktop” will make using a mobile phone and tablet vastly more productive for everything. Hope this comes to more than just the Pixel line.
- kyaghmour 5y agoOne of the primary uses-cases for VMs in Android seems to be a desire to replace the Trusted Execution Environments (TEEs) permitted by things like TrustZone. There have been several presentations about this by Google: - LPC 2020: https://www.youtube.com/watch?v=54q6RzS9BpQ&t=10862s https://www.youtube.com/watch?v=54q6RzS9BpQ&t=10862s and https://lpc.events/event/7/contributions/780/ https://lpc.events/event/7/contributions/780/ - KVM Forum 2020: https://mirrors.edge.kernel.org/pub/linux/kernel/people/will/slides/kvmforum-2020-edited.pdf https://mirrors.edge.kernel.org/pub/linux/kernel/people/will... From the KVM Forum presentation: "We need a way to de-privilege third party code and provide a portable environment in which to isolate services from each other and also from the rest of Android." From the LPC presentation: "What do we need? We need a hypervisor that is: 1. open source 2. easy to ship and update 3. supports guest memory protection 4. trustworthy KVM as part of GKI is a very good fit with the right extensions."
- raxxorrax 5y agoI think development of mobile OS heads into a completely wrong direction. The "curation" effect of proprietary stores is only good for censorship and mobile OS have the most aggressive applications that border on malware. At least you don't have the browser toolbar classical systems were infected with? For productivity I don't want iron curtains between my applications or between application and system. Hell, it would actually be nice to be able to directly interface the hardware without all the loops. We have a deeply flawed security model for mobile OS that relies on dogma that won't lead to additional safety. As safety issue is data exfiltration and by that standard a mobile devices are vastly more dangerous than the average work station. Comes with the nature of the device to a significant degree, but I think mobile OS have ridden of a cliff somewhere. And now they want to push apps into a VM? Why not just buy a device per app at this point...
- himinlomax 5y agoWalled gardens have many problems, but one of the reason they exist is that they offer some security benefits. Virtualization allows for stronger containment of apps and make walled gardens less necessary.
- grishka 5y agoIs this specific to Pixel 6, or will this be available on all Pixel phones? And an aside: since Apple's SoCs are now much better understood thanks to the M1 and Asahi Linux project, how long until someone manages to virtualize iOS on an Android device? (though I'd rather have Android running on an iPhone tbh)
- bhouston 5y agoDoes it offer accelerated 2D and 3D graphics?
- tmikaeld 5y agoI'd assume that it doesn't, while passthrough exist on KVM, it still requires the actual drivers to be installed on the emulated OS and mobile handset drivers are usually proprietary blobs. The APIs could be translated to a generic driver that works on the OSs though, something like https://virgil3d.github.io/ https://virgil3d.github.io/
- kdrag0n 5y agoNo. It should be possible to get gfxstream or virgl working with Linux guests, but I'm not aware of any way to provide acceleration for Windows guests.
- CyberShadow 5y agoSince Android uses the Linux kernel, if you have full access to the device, you can already generally sideload a distribution of your choice onto the filesystem. The Linux userspace can run and coexist alongside the Android userspace. Though some applications may require kernel features which are not enabled in typical Android kernels, GPL forces manufacturers to release the kernel source code, which makes it fairly easy to enable more features and use that kernel. The advantage of this approach over running Linux in a sandbox / VM is that you can administer your Android device from the Linux side, which means that you can use your existing backup strategy or other automation tools. With a USB/bluetooth keyboard, it can also work as a small PC in your pocket.
- m-p-3 5y ago> GPL forces manufacturers to release the kernel source code I wish that was true in the real world, looking at you Onyx. https://news.ycombinator.com/item?id=23735962 https://news.ycombinator.com/item?id=23735962
- CyberShadow 5y agoI found it to be true in most cases, and when it is not... well, we can vote with our wallet. Case in point: I had never heard about Onyx. Coincidence or causation?
- deleted 5y ago[deleted]
- neatze 5y agoBy any chance, do happen to know HowTo's for configuring phone to run Android and Linux side by side ?
- CyberShadow 5y agoHave a look at Linux Deploy, it is essentially an installation wizard and launcher. I no longer use it, and instead use Magisk startup scripts to start the Linux userspace, but it remains useful as an installer.
- fartcannon 5y agoCool, I guess, but I don't want Google or Microsoft to the layer between me and my computers hardware. This will just continue the e-waste problem as bad actors would still control the hardware. I wonder if this is because the Linux phones are really starting to shape up?
- WaxProlix 5y agoA few things I didn't see an answer to in my skim of the article - is this hardware or bios locked, or will there be the ability to get this functionality on eg older phones - what are the performance characteristics here, I wonder? I'm keen because we produce a ton of e-waste in the form of mostly useful cell phones, and it'd be cool to turn them into useful devices again. This might help enable that.
- judge2020 5y ago> Currently, no Android devices on the market ship with the Virtualization module — not even Google’s own Pixel 6 — but this is set to change with the upcoming Android 13 release. In fact, Google is currently testing its new virtualization tools on the Pixel 6; if you build AOSP with the target aosp_oriole_pkvm, you’ll find that com.android.virt will be automatically inherited. I don’t know if Google will enable pKVM on the Pixel 6 series with the Android 13 update, but there is evidence that Google plans for Android 13 to include the first release of the pKVM hypervisor and virtual machine framework. Original blog: https://blog.esper.io/android-dessert-bites-5-virtualization-in-android-13-351789/ https://blog.esper.io/android-dessert-bites-5-virtualization...
- kdrag0n 5y agoThere's very little chance of enabling KVM on Qualcomm devices: https://news.ycombinator.com/item?id=30322404 https://news.ycombinator.com/item?id=30322404. Theoretically, it's always been possible on other SoCs, but now it basically works out-of-the-box on the Pixel 6. This and the videos below it should give you an idea of the performance: https://twitter.com/kdrag0n/status/1493082399520919552 https://twitter.com/kdrag0n/status/1493082399520919552
- teleforce 5y agoJust yesterday I was wondering what's the point of the new Galaxy S8 Ultra Tablet with its glorious 14.6" display and 16GB RAM. Now with the new Android 13 you can potentially install any Linux distro VM, then it will be the most lightweight if not the best Linux desktop with the supplied keyboard + cover.
- toastal 5y agoI can virtualized other operating systems but I can't have root access and a banking app. The world we live in....
- Iolaum 5y agoThis effect has been talked about 10 years ago: https://boingboing.net/2012/01/10/lockdown.html https://boingboing.net/2012/01/10/lockdown.html
- overflyer 5y agoSo now we can run Windows 11 on Android that then can run Android that then runs Windows 11 which runs Android that can run Windows 11 where we install WSL2 in which we utilize wine/proton to play the newest AAA titles....