How to Run Android on Linux Using Virtual Machine

Run Android on Linux Using Virtual Machine

Before we go ahead, let me briefly explain how we are going to run Android on Linux. We are going to use an open-source project called Android-x86 that ports ARM-based Android OS to x86 based systems. Basically, with Android-x86’s ISO image, you can boot Android on any desktop platform, be it Windows or Linux.

Basic Setup

1. First of all, download the ISO image of Android 9 from here. Depending on your computer architecture, choose either a 64-bit or 32-bit ISO image. By the way, currently, Android 9 is the latest OS ported for desktop computers.

Run Android on Linux Using Virtual Machine

2. Once you have downloaded the Android ISO image, go ahead and download VirtualBox. You can find the setup file for all Linux distributions from here. After the download is complete, install VirtualBox on your system.

Run Android on Linux Using Virtual Machine

3. Here, I am running VirtualBox on Ubuntu. Now, click on “New” on the menubar and give a name to your virtual machine. For example, I have entered “Android”. Further, select the Type as “Linux” and choose “Other Linux (64-bit)” under Version. If you have a 32-bit machine then select “Other Linux (32-bit)”. Finally, click on “Next”.

4. On the next window, allot at least 2GB of RAM. If you have extra RAM available, increase it to 4GB for better performance while using Android.

Run Android on Linux Using Virtual Machine

5. Next, select “Create a virtual hard disk now” and click on “Create”.

6. Further, select “VDI” and click on “Next”.

7. Select “Dynamically allocated” and click on “Next”.

8. Here, enter the amount of storage that you want to allot to Android. The default is 8GB, but you can increase the storage to 16GB or more depending on your usage. Finally, click on “Create”.

Run Android on Linux Using Virtual Machine

Configure the Android Virtual Machine on Linux

1. Now that you have created the VM, it’s time to configure a few things so that you get the best performance while running Android on Linux. On the VirtualBox, click on “System“.

Run Android on Linux Using Virtual Machine

2. Move to the “Processor” tab and allot at least 2 CPU cores. You can also increase it to 4 for better gaming performance.

Run Android on Linux Using Virtual Machine

3. Next, switch to the “Acceleration” tab and choose “KVM” from the drop-down menu.

4. Once you have done that, move to the “Display” section and change the “Graphics controller” to “VBoxSVGA“. This is the most important step otherwise you will be stuck on a blank screen. Besides that, increase the Video Memory to at least 64-128MB.

5. Finally, go to “Storage” and select the “Empty” sub-menu. Here, click on the disc icon and select “Choose a disk file”.

Run Android on Linux Using Virtual Machine

6. Now, select the Android ISO image that you downloaded in the first step. You are basically done. Simply, click on the “OK” button.

Run Android on Linux Using Virtual Machine

Boot Android within Linux

1. After the basic setup and configuration, you are now ready to boot Android on Linux. Simply, select “Android” on the left pane and then click on “Start“.

Run Android on Linux Using Virtual Machine

2. Here, move to the “Advanced options“.

Run Android on Linux Using Virtual Machine

3. Now, select “Auto_Installation…” and hit enter.

Run Android on Linux Using Virtual Machine

4. On the next screen, select “Yes” and hit enter.

Run Android on Linux Using Virtual Machine

5. Finally, you will get the option to “Run Android-x86” on your Linux machine. Press enter and Android will starting booting on your Linux machine then and there.

6. You can go through the initial setup screen just like Android smartphones.

Run Android on Linux Using Virtual Machine

7. Finally, there you have it. Android 9 running on Linux with near-native performance. How great is that? Now onwards, you just need to press the “Start” button in VirtualBox and Android will be ready for you.

9. In case, you want to delete Android from Linux then simply right-click on the Android VM that you have created and choose “Remove”.

10. Next, click on “Delete all files”. It will remove the virtual hard drive and all associated files freeing up all the space on your computer. That’s it.

Install Android VM on Linux and Enjoy Android Games and Apps

This image has an empty alt attribute; its file name is image-4-768x768.png

Leave a Reply

Your email address will not be published. Required fields are marked *