Get started
There is a ready made iso image available on android-x86.org. We want the latest, so we choose the Android-x86-4.3-devel image from July 25.Next, we create a Hyper-V standard virtual machine without any OS settings that has the following specifications:
- 1 CPU
- 512MB memory
- 32GB virtual harddisk (a bit large, but who cares)
- Legacy Network Adapter connected to an external virtual switch
- DVD mapped to the downloaded iso image
Installation
We fire up the virtual machine and the following boot screen appears:
We select the Installation option. Next, several questions are asked, mainly about harddisk partitioning. We create a single partition for our entire virtual harddisk and make it bootable. The installation completes quickly afterwards.
First start
When we run Android for the first time, this boot screen appears:
We let the timer run out and continue with the boot process. The root prompt appeares for a short period, after which the the graphical environment shows up:
Since this is the first time, we have to go through the standard Android first time settings such as user accounts, WiFi and so on. Since we have connected to a (virtual) legacy network adapter, we skip the WiFi part. Finally we reach an empty but familiar homescreen:
Deploy and Run dot42 apps
Now it is time to deploy and run a dot42 app on our fresh virtual Android. We use the dot42 Device Center to connect to a networked device. We use Settings - About - Network on the virtual machine to get its IP address and enter that in the dot42 Device Center.
After that the virtual machine is visible in the Device Center and we can develop with it. We take the SpinningCube sample and here is how it looks:
It ran pretty smoothly, atleast a lot better than in the emulator.
Tips and tricks
Here are a couple tips and tricks we found out in the process:- Bamboo tablets do not work as mouse in Android inside Hyper-V, we had to connect a normal mouse instead.
- Pressing Alt-Left or Alt-Right when inside Android-X86 will switch between the graphical UI and the root console.
- One time we had to reset the virtual machine after Android went to sleep. We tried all recommended key combinations, but nothing worked. After that we used the developer setting in Android to prevent sleeping.