At Ravello Systems, our mission is to make the cloud look more like the datacenter. I have written about this many times, including on our advanced technology that makes this possible. In this blog, however, I will talk about something completely different: running the Android operating system in the cloud.
Android of course is Google’s smartphone operating system with a 79% market share. Together with Apple’s iOS, it forms the basis for a multi-billion dollar app economy.
The vast majority of Android devices today run on the ARM processor. When developing applications, developers can test their software by running it on an ARM emulator provided by Google as part of the Android SDK. The emulator is a full system emulator and is based on the QEmu open source project. It emulates an entire ARM-based handset and runs the Android operating system as a virtual machine inside it.
One solution that a lot of development shops and indies have adopted is to develop not on ARM but on an x86 version of Android. In theory, if your computer has the Intel or AMD hardware virtualization features, it is possible to run an Intel version of Android as a virtual machine at near native speed. The idea is that most of development and testing can be done on x86, and only the late stages of QA and acceptance would be done on ARM.
Multiple solutions exist for running Android on x86. A few common ones are:
>>> The Android SDK contains a system image for the Intel Atom processor. The emulator that’s included in the SDK can run the image at near native speed if hardware virtualization features are available. To access the virtualization extensions, the emulator uses KVM on Linux and Intel’s HAXM on Windows and Mac.
>>> The Android-x86 project provides system images recompiled from the Android Open Source release that can be run on VMware, VirtualBox and QEmu/KVM.
These solutions are mostly desktop solutions, and none of these solutions allow you to run Android in the cloud. Running Android in the cloud opens up very interesting use cases especially related to Continuous Integration. Imagine having a test suite that covers a large part of your code base and that can give you results within minutes of a commit. Extremely fast turnarounds like these can be achieved by running your tests on many parallel instances in the cloud – with no up-front costs, you pay only for what you use.
Refer to our post about setting up the Android emulator for updated instructions.
To try it out yourself, you can sign up for a free 2-week evaluation period.
About Ravello Systems
Ravello is the industry’s leading nested virtualization and software-defined networking SaaS. It enables enterprises to create cloud-based development, test, UAT, integration and staging environments by automatically cloning their VMware-based applications in AWS. Ravello is built by the same team that developed the KVM hypervisor in Linux.