Running Android on a PCMarch 13, 2014 at 8:52 pm | Posted in Backup, Computers, Economoney, Games, Hardware, Software, Technology | Leave a comment
Tags: Android on a PC, Ubuntu, Virtual machine, VirtualBox, Windows XP
Say you want to mess around with Android and apps, but you’re a little nervous about experimenting on that rather expensive phone or tablet. One solution is to load Android into a virtual environment where you can play around all you like and nothing is ever broken. All you do is back up your virtual machine (VM) software folder first, then if anything goes sideways you can restore it in about a minute. Developers use this approach all the time.
Oracle’s VirtualBox (VB) is free virtualization software you can install just about any Operating System (os) into (assuming you have a legal license). I’ve been running Windows XP, Ubuntu Linux and Android this way for several years. XP, mainly to support some old software that won’t run in current OS’s, the others to explore and experiment with. No messing with my main computer or setting up a boot loader. The other systems run in a window, so no rebooting required. File sharing is much like sharing over a network.
Fred Langa has written an article with step by step instructions for installing VirtualBox and Android on a PC. Most of the steps are pretty obvious but there are a few options that are not and a couple of gotchas. Note his comments about the captured mouse (for touch-screen behaviour), for example.
For Android, you need VT-x (AMD-V on an AMD processor) enabled in the PC’s BIOS. Most modern processors have it but it may be off by default. I checked a couple of utilities to confirm I had it but it was off anyway. Just reboot into your computers BIOS and turn it on. (instructions vary by maker) If you skip that step, the instructions will tell you Android is not supported, so do take care of that first.
I also noticed that some people who also use Microsoft Virtual Machines (like XP Mode) may find VT-x not working because Hyper-V is hogging it. In that case, it’s on in the BIOS but still unavailable in VB. In Windows 7+, the Hyper-V setting is hidden. Comment 5 on this thread offers the command line for turning it off and on. If you want to get fancier, I noticed this article on Hyper-V Manager. It still requires a reboot though.
If you just want to play an Android game on your PC, you might like Bluestacks. It’s designed for loading apps on a PC. It says it’s free only while in beta though.
Genymotion is an Android virtualization tool to create various OS version and screen size variations to test an app in. That’s for more advanced testing.
The advantage of using a tool like VirtualBox is you can also play around with other OS’s. You can get other images (VMs) here, for example. A popular Linux distro, Ubuntu is here. Install the current VB Extension Pack to support it.
The 13.04 version of Ubuntu is an OVA file. OVA files are preconfigured – just double-click to load into VirtualBox. Far fewer steps than in Fred’s article above. It also comes with LibreOffice and other software pre-installed. Note the password on the download page for your first Ubuntu login. You can go into System Settings (gear top right) and add a new User of your choice once logged in.
Rather than downloading a virtual machine, you can also install an OS directly yourself. Create the container in VB (New button), then install into that. This article reviews installing a distro from Ubuntu directly.
You can install a wide range of other OS’s, including Windows and Mac, in a virtual machine – it’s a great way to test and experiment without messing anything up. Or to run old software that won’t install in a modern OS.
Given the end of Windows XP’s support in April, it will soon no longer be safe for web surfing and other Internet uses but it may still have a role for old software in a virtual machine. Fred reviews installing XP into a virtual machine and the VM backup process here. (article free for subscribers) If you have an old XP install you’re retiring and want to move it to a virtual machine, you can use the free Disk2vhd. This is especially useful if your old computer didn’t come with system install disks. VHD is a Microsoft virtualization format but VirtualBox can use it.
And if you have some concern this is experimental technology or something, it’s been around for years. If you surf the web, you’ll have used a virtual machine. Many large web sites are run in virtual machines so they can, in moments, shift from one physical server to another when under load.