How to Install Android on VirtualBox

Welcome to the guide on How to install Android on VirtualBox!

Are you looking to experience the Android operating system on your computer without using a mobile device? This guide will help you achieve that by installing Android on the VirtualBox virtual machine.

By utilizing VirtualBox, you can create a completely independent virtual environment to run Android on your computer. This will allow you to explore the features of this mobile operating system and conduct testing without impacting your real devices.

Let’s get started with the simple steps to install Android on VirtualBox and dive into the world of the Android operating system on your computer!

Prerequisites

  • VirtualBox has been installed on your system
  • Android ISO image
install-android-on-virtualbox

Read more

Step 1 – Download the Android ISO image

You can visit the Android-x86 website https://www.android-x86.org to select the version you wish to install and download the Android-x86 ISO image

install-android-on-hyper-v

Step 2 – Create a new Virtual Machine for Android

On the desktop, Right-click on the Virtualbox icon – select Run as administrator option

install-android-on-virtualbox

On the Oracle VM VirtualBox Manager window, click on the New icon

install-android-on-virtualbox

In the Virtual Machine Name and Operating System window, set a Name and Location for the virtual machine and click Next.

install-android-on-virtualbox

Set RAM greater than or equal to 2 GB and click the Next in the Hardware window.

install-android-on-virtualbox

Set disk size greater than or equal to 20GB and click Next

install-android-on-virtualbox

In the Summary window, click on the Finish button.

install-android-on-virtualbox

Next, select the newly created virtual machine – then choose Settings option

install-android-on-virtualbox

In the Setting window, choose as shown below:

  • Select Storage from left panel – choose Empty – choose Choose a disk file and select Android ISO image you have downloaded in Step 1
install-android-on-virtualbox
install-android-on-virtualbox
  • Select Network from the left panel – select Adapter 1 tab – check to Enable Network Adapter option – Attached to select NAT mode and then click OK
install-android-on-virtualbox

Step 3 – Install Android on VMware Workstation

Now, click Start button to begin installing Android on VirtualBox

install-android-on-virtualbox

On the boot screen, select the Advanced option…from the menu boot and hit Enter

install-android-on-vmware

On the Advanced options screen, select Auto_Installation – Auto Install to specified harddisk option and hit Enter

install-android-on-vmware

In the Auto Installer window, select Yes and hit Enter

install-android-on-vmware

Before rebooting, please remove the Android-x86 ISO file by selecting Devices – select Optical Drivers – select Remove disk from virtual drive

install-android-on-virtualbox

Click Force Unmount button in the popped-up window

install-android-on-virtualbox

Now, select Reboot option – select OK and then hit Enter in the Congratulations! window.

install-android-on-hyper-v

At the boot selection screen, press the up or down arrow key to end the automatic boot process and select the first boot option and then press e to edit the boot commands before booting

install-android-on-vmware

Select the first boot option and press e to edit the boot command for GRUB

 install-android-on-vmware

Press the left arrow key to move the mouse cursor to the left to find quiet and replace it with nomodeset xforcevesa

Before

grub edit> kernel /android-9.0-r2/kernel quiet root=/dev/ram0 androidboot.selinux=permissive SRC=/android-9.0-r2

After

grub edit> kernel /android-9.0-r2/kernel nomodeset xforcevesa root=/dev/ram0 androidboot.selinux=permissive SRC=/android-9.0-r2

 install-android-on-vmware

After done, press Enter to exit

Comeback the boot option screen, Select the first boot option that you have edited and press b to boot.

 install-android-on-vmware

As you see the Android system screen, press Alt+F1 to open the console

install-android-on-vmware

Create a directory to which a virtual disk will be mounted using the command below:

mkdir /mnt/sda

Mount the virtual disk to the created directory:

mount /dev/block/sda1 /mnt/sda

and edit the GRUB bootloader boot menu with the text editor vi:

vi /mnt/sda/grub/menu.lst

install-android-on-vmware

Press i to edit and find quiet and replace it with nomodeset xforcevesa

Before

kernel /android-9.0-r2/kernel quiet root=/dev/ram0 SRC=/android-9.0-r2
initrd /android-9.0-r2/initrd.img

After

kernel /android-9.0-r2/kernel nomodeset xforcevesa root=/dev/ram0 SRC=/android-9.0-r2
initrd /android-9.0-r2/initrd.img

install-android-on-vmware

After done, press Esc then type :wq and hit Enter to write changes to the file and quit

install-android-on-vmware

Comeback the console, and type the command reboot to reboot system

install-android-on-vmware

Step 4 – Setup Android

Now the Android VMware VM is booted and you can see the graphical user interface of Android, select your language and click Start

install-android-on-vmware

In the Connect to Wi-Fi window, click on See all Wi-Fi network option

install-android-on-vmware

and click on the VirtWifi option

install-android-on-vmware

Next, in the Copy apps & data window, click on DON’T COPY button

install-android-on-vmware

In the Google Sign window, click Skip button

install-android-on-vmware

Press Skip button to the next step

install-android-on-vmware

In the Google Services window, click More and then click Accept to the next step

install-android-on-vmware

In the Protect your tablet window, choose Not now option and then click SKIP ANYWAY button

install-android-on-vmware

Finally, choose the interface you want to use.

install-android-on-vmware

Success !!!

install-android-on-vmware

That’s it, you have successfully installed Android on VirtualBox. If you have any further questions or need additional support, please feel free to leave a comment.

Thank you for reading !!!

Video

Leave a Reply

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