Summary
- Nestbox is an app that allows you to create containers and run virtual machines on your smartphone, but it only works on recent Google Pixel models.
- With Nestbox, you can do more than Termux as it provides kernel access and root in containers, allowing you to run Docker containers and more.
- Nestbox can be used to host web pages, game servers (like Minecraft), and other services on your phone, and you can now access them from outside the container.
If you've ever wanted to become a smartphone power user, then you've probably come across the likes of Termux. It's an Android terminal emulator and Linux environment app, and some people have used it to develop Python scripts and even run Minecraft servers from their smartphones. Now you can take that a step further though with a rooted Pixel 6, a regular Pixel 7, or a regular Pixel 8 thanks to Nestbox by XDA Senior Member kdrag0n, available on his Patreon. There are hopes it'll work on more devices in the future, but for now, it's a Pixel exclusive.
What is Nestbox?
Virtual machines on your phone
Nestbox is an app that allows you to create containers and run real virtual machines on your smartphone, with the catch that it needs to be a recent Google Pixel smartphone to work. This is because Nestbox uses pKVM (protected Kernel-based Virtual Machine), which is available in more recent versions of the Android Common Kernel, including on the Google Pixel 6, Pixel 7, and Pixel 8 series. According to Mishaal Rahman, the reason root is required on the Pixel 6 series is because pKVM isn't enabled out of the box.
The big deal here is that it's essentially a more beefed-up Termux. Termux can already get you most of the way there for most power user use cases, but with virtualization, you'll be able to run the likes of Docker containers on your smartphone. It's a bit over-the-top, in all fairness, but it's something that some people may have use for. You get kernel access and root in containers created by Nestbox, which is more than you get with Termux.
Installing and setting up Nestbox
It's surprisingly easy
If you want to use Nestbox on your Google Pixel, you'll need to subscribe to kdrag0n's Patreon. We used a Google Pixel 7 Pro to install and test it out, though the steps will slightly differ on the Pixel 6 series. Currently, Pixel 6 devices need to grant the app root access, though kdrag0n says this may change in the future. If you want to use it on a Google Pixel 7 or 8 series model, then the steps will be the same.
On the Pixel 7, the most configuration you'll need to do is similar to Shizuku. You connect to your own phone over wireless adb, configure the maximum container size, and then choose your Linux distribution. It'll download, configure, and then execute the virtual machine.
What can you do with Nestbox?
Minecraft from your phone? Yeah, it can even do that
As for things that you can do, it's basically whatever you can think of. It's a Linux container, though I did find that I needed to install a lot of tools before being able to do anything. I needed to use the advanced package tool (apt in Ubuntu) to install wget and curl, for example, since it's a barebones setup out of the box. You can then add whatever you like after that. There is no virtual GPU support, and kdrag0n says that he doesn't plan on supporting it either.
As an idea, you can host a web page or Minecraft server from your phone. While both work currently, you didn't use to be able to actually access them from outside the container. At the time, I confirmed with kdrag0n that there was no port forwarding in place, and that it was impossible to interact with these instances outside the container. That's already changed, and you can access services outside of the container now.
If you want to try out Nestbox, you can get it from kdrag0n's Patreon. There have been a ton of improvements to it to the point that Nestbox is essentially a finished product, allowing you to connect to your container from outside of it and host web pages, game servers, and more. What would you use Nestbox for?
Thanks kdrag0n for sharing Nestbox with us!
