kit-kat-theme

Running Android OS on a computer can ease the work of developers or just gets you more familiar with it. Launching and debugging apps on Android virtual machine could be a good idea but for sure this wouldn’t replace emulators as they are specially made for this.

How to create an Android Virtual Machine using VirtualBox

1. Prepare installation files
Of course we’ll need the Android OS and a Virtual Machine creator.
Download Android 4.4 from Android x86 project
Download & Install VirtualBox from virtualbox.org

2. Create and configure
After installing VirtualBox, run it. Find and click the New button from the left side of the app. In the wizard, configure your virtual machine with the following settings:

  • Name of the Virtual Machine
  • Type: Linux
  • Version: Linux 2.6 / 3.x
  • HDD size: 2-3GB
  • Check Create a Virtual Hard Drive Now

Click Create button, now change the File size to 6GB, check the Hard drive file type as VDI and change the Storage on physical hard drive to Fixed size, click Create.

3. Installing Android OS
Now that we created the Virtual machine, run it and point VirtualBox at the Android ISO file you downloaded in the first step. In the next menu, if you’ll use this Virtual machine only one time just Run it without installation if you plan to use it frequently then you choose to install Android on Hard disk.

We’ll need to create a partition for Android OS, so choose Create/Modify partitions and press Enter

create partitions for android

On the next screen using arrow keys, choose New from the bottom menu then Primary, confirm by pressing Enter key.

Now we need to set the partition as bootable, by selecting Bootable and confirming with Enter key. Then head to Write option and press Enter again, if prompted to confirm writing changes type yes and hit Enter.

That’s all, we just created a new partition. Head to the Quit option and hit Enter.

install android to partition

At the top you’ll see the newly created partition, select it and hit Enter to install Android OS on it. On the next screen, select ext3 file system and select Yes to format the partition.

Choose Yes to install the GRUB bootloader, also choose Yes to install the /system directory as read-write.

When the installation finishes, remove the ISO file from the top menu Devices > CD/DVD Devices > Remove disk from virtual drive and reboot virtual machine.

4. Run Android OS
After rebooting virtual machine, Android should launch as a new phone starts up. If your mouse cursor doesn’t work, click the Machine menu and select Disable Mouse Integration. Click inside the virtual machine and you’ll se the mouse cursor. To release the mouse cursor from the virtual machine, just press the host key displayed at the bottom-right corner.

Go through the setup process, skip the wi-fi setup screen as Android will use your standart internet connection.

fixedbyvonnie-virtualbox-android-4-4-kitkat-setup-screen[1]

That’s all.

Leave a Reply