Android 4.2 or Jelly Bean, has been out for a while. If you haven’t had a chance to try it out the latest version of Android you can install the OS in VirtualBox. This is a great way to try out Android without having to buy an Android device. Here is how to install Android 4.2 on VirtualBox.
Perquisites to Install Jelly Bean in VirtualBox
Before we install Android Jelly Bean in VirtualBox we first need to get some items.
1. Need to download and install VirtualBox.
2. Need a copy of Android 4.2 ISO.
The Android 4.2 ISO will take some time to download. After you get everything downloaded and installed we are now ready to begin. My install will be Android inside of Mac OS X using VirtualBox. The tutorial will work with Windows 7 and Ubuntu.
Install Android 4.2 on VirtualBox
After getting all the perquisites ready you are now ready to install Android in VirtualBox. Launch VirtualBox and click the New icon. This will create a new virtual machine.
After clicking New the Create Virtual Machine window will open. From here you will want to give your new virtual machine a name. Select the Type as Linux and the Version as Other Linux. When you are all done click Continue button.
Next you will be asked to select the amount of RAM for your virtual machine. Since Android doesn’t require to much, you can use 512 MB. When you are done selecting the virtual machines memory size click the Continue button.
The next step is to create a hard drive for your virtual machine. Select the radio button for “Create a virtual hard drive now” and click the Create button.
The “Create Virtual Hard Drive” options will open. Here we will select the type of hard drive and the size of the hard drive. From the first screen you can keep the default hard drive type of VDI. Click the Continue button when you are done.
The next step is selecting if you want a fixed or dynamic virtual hard drive. Since Android OS and the applications wont really take up to much space you could select dynamic. Unless you want a fixed disk because of limited space.Either way select the choice you believe is most suited for your situation and click the Continue button.
Last step, before we install Android OS, is to select a name and location for your virtual hard drive. And how much space you want for it. I am going to use 8 GB, but you can use however much you need. Click the Create button when you are done.
After setting up the virtual machine, select it and click the Settings button.
The settings for your virtual machine will open. From the setting menu select the Storage tab. Then select the disk in the left hand corner that says Empty. Over in the right pane in the Attributes group, click the tiny disk icon to get a drop down menu. From the drop down menu select “Choose a virtual CD/DVD disk file.
A Finder window will open. Navigate to the location you download the Android 4.2 ISO file. Select the Android ISO and click the Open button.
Make sure the Android ISO is now in the left pane under the Storage Tree. When you are ready click the OK button.
Now that we are all done setting up and virtual machine it is time to install Android Jelly Bean in your virtual machine. Click the Green Arrow icon to launch your Android virtual machine. When the virtual machine loads you might get a prompt about auto capturing the keyboard. You can click OK to dismiss the prompt or check the box next to “Do not show this message again” and then click OK.
After the Android ISO loads you will be taken to the menu below. Use the key pad to scroll down to “Installation – Install Android-X86 to harddisk. Press the Enter key to continue.
You might run across a warning about mouse pointer integration. Just click the OK button to dismiss the prompt. The mouse will not work until we disable mouse integration so for now you will need to use the arrow keys.
The next step to install Android Jelly Bean in VirtualBox is creating a partition for the install. On the Choose Partition screen select Create/Modify partitions. Then press Enter.
You will be taken to the partitioning tool. From here use the arrow keys to select New and press Enter.
Make sure you selected Primary and press Enter.
Since your virtual hard drive has very little space we will use all of it. Press the Enter key to continue.
You will create a new partition called SDA1. After it is crated you will be taken back to the main menu. Make sure you are on Bootable and press Enter. This will make SDA1 a bootable drive.
Making the main partition bootable will only take a few moments. When it is finished, use the arrow keys to select Write. Press Enter when it is selected.
You will be prompted if you want to write the partition table to the disk. Type in YES on the keyboard and press Enter to continue.
After the partition table process is written to SDA1 select Quit from the menu. Press Enter when you are done.
Now that we have the partition created we can install Android. You will be taken back to the Choose Partition menu. From here select the SDA1 partition and press Enter.
The next step is to choose the filesystem for SDA1. Select EXT3 with the arrow keys and press Enter.
You will see a prompt warning you about losing data on SDA1. Select Yes using the arrow keys and press Enter.
The formatting process will take a moment to complete.
Next you will be asked if you want to install the boot loader GRUB. Select Yes from the prompt and press Enter.
After GRUB is installed you will be asked if you want the SYSTEM directory as read-write. You can choose to do this if you are a developer but if you just want to use Android select NO. Make your decision and press Enter to continue.
Android will then install itself on your virtual hard drive.
When Android is finished you have a choice to either run Android or Reboot. Select Run Android and press Enter.
Android will now start its booting process.
After the boot you will be taken to the Welcome screen. Here you will want to run through and setup your profile. This includes entering in your GMAIL account if you want to.
After you are done setting up your Android profile go to Machine menu for VirtualBox. We will need to disable mouse integration so we can use the mouse inside of Android. Select Disable Mouse Integration from the menu.
After disabling the mouse, go back to your Android virtual machine. Click inside and begin using the mouse.
Now you are all setup with Android inside VirtualBox. This tutorial works on Windows 7, Mac OSX and Ubuntu.
- Setup a Virtual Machine in VirtualBox
- Install Ubuntu 12.04 on a Mac using VirtualBox
- Install BackTrack 5 R3 in VirtualBox
- Complete Guide to Install and Run Mac OS X Snow Leopard in OS X Lion
- Install Windows 8 in VirtualBox