How to set up smartphones and PCs. Informational portal
  • home
  • In contact with
  • Virtual machine for android windows. Installing Android OS on a VirtualBox virtual machine

Virtual machine for android windows. Installing Android OS on a VirtualBox virtual machine

The reasons for installation can be different, but the main one is software testing. Why clutter your smartphone or tablet unnecessary software? After all permanent installation and uninstalling programs cannot have a positive effect on the smartphone.

And if the computer is primarily a tool for making money, then it should always be in working condition... Moreover, especially on simple smartphones, the memory is very small and such experiments are simply impossible.

Creation and configuration of the operating system:

After installing the program, open it and click on the "Create" button. Choose "OS Type" - Linux, version - Other Linux (32 bit or 64 bit depending on which you downloaded). I downloaded 32 bit system(x86) and enter the name:


We create HDD(leave as default):


Specify the type hard disk(leave as default):


We choose the storage format (we leave it by default):


We indicate the size of the created hard disk (I chose 16 GB, you choose how much you need):


After creation operating system go to the settings in the "Display" tab, make more video memory and enable 3D acceleration. This is for Android to work well (no glitches). You can also look by tabs and increase other settings:


We start the installation

Click “Start” the created virtual operating system. A window for selecting the operating system distribution will open, select the one that was downloaded on the official website and run:


The installer window will open, select the installation on the hard drive (option 4). we want to install the operating system on the hard drive, and not just look at it:



In the window that opens, select “No”:


In the window that opens, we see our created and yet free hard disk. Using the keys, select “New” and press “Enter” (thereby we take our free hard disk and create space on it for our operating system):



In the new window, we leave everything unchanged (since we need all the memory of the created disk) and press “Enter”:


After that, we see the hard disk we have created with a name and type. Next, in the window, select Write to write our operating system to disk:


We are asked "Are you sure or not?" write "yes" and press "Enter":


After creating and recording, exit by clicking on "Quit":


After closing, you will see that a new line has appeared - this is our created and burned disc. Select and press “Enter” to boot:




In the new window, click “Yes” so that the window for selecting the operating system boot appears at boot time:



And the last window also agree (click "Yes"):



After rebooting, a window for selecting the installation of the operating system will open. We need to click on Devices-> Optical Disks and uncheck the box from loading our distribution. To boot the hard drive. After disconnecting, we reboot the machine.


After rebooting, a window for selecting the operating system boot will open. If you also have everything shown, then you have installed Android and all that remains is to configure it. Select the first one and press “Enter”:



Choosing the language for the operating system:




So the long-awaited desktop has loaded and everything works great:


And one more little tweak! Exit the android and go to the settings in the System-> Motherboard tab. Set the cursor manipulator to: PS / 2 mouse and check the additional features(this is for the mouse to work normally on the operating system). Also, in the processor tab, you can add more processors, then the operating system will think faster:


Information about my installed operating system:



(1 estimates, average: 5,00 out of 5)

First of all, you need to download an android image compiled for x86 architecture. Follow the link http://www.android-x86.org/download and download android-x86-4.0-RC2-eeepc.iso or newer.
We create a virtual machine in VirtualBox. You can download VirtualBox here https://www.virtualbox.org/wiki/Downloads

Creating a virtual machine

Creating a virtual machine:

Creating a virtual hard disk:

  • We put a tick next to "boot disk"
  • We put the combobox in the "Create a new hard disk" position
  • Further
  • We put the combobox in the VDI position (VirtualBox Image);
  • Further
  • We put the combobox in the "Dynamic virtual disk" position;
  • Further
  • The location of the virtual hard disk can be left unchanged and the default value
  • Hard disk size - at least 330 MB is required, you can set more
  • Further
  • Create
  • Create

After creating a virtual machine, you need to open its properties. For this we press right click mouse on the car and select the item "Properties".
Then go to the "Display" settings and set the following settings:

  • Check the boxes next to "Enable 3D acceleration" and "Enable 2D video acceleration"

Then go to the "Network" settings and change the following settings:

  • Connection type - NAT
  • Click on additional
  • Adapter type - PCnet-FAST III (Am79C973)

On this, click OK

Installing android

When you start the virtual machine for the first time, you must specify the disk image from which we will install the android.
Set the image of the downloaded android:

  • In the first menu, click Next
  • In the next menu, you must specify the downloaded android image
  • Further
  • Continue

The virtual machine is booted from the image and if everything went well, the bootloader menu is displayed.
In this menu, we are interested in the item: "Installation - Install Android-x86 to harddisk", select it and press the Enter.

After that, a menu for selecting a section appears on which the android will be installed.
At the moment, we do not have any partitions on the hard disk, so we need to create them.
To do this, select the "Create / Modify partitions" item, then use the up / down arrows to select an unmarked area on the hard disk.
After we have selected it using the left / right arrows, select the item "New", then select "Primary".
After that, you need to indicate the size of the partition to be created using numbers (By default, it offers to create a partition with the size of the entire hard disk, I agree with him). After we have entered the size, press the enter.
Now the created partition must be made bootable. To do this, using the arrows, select the created section, then select the "Bootable" item and press the Enter. After that we will see that this section has a "Boot" flag. Everything is now the main section is created. Now you need to write the markup to your hard disk. To do this, using the arrows, select the "Write" item and press the Enter. After that we are warned against the fact that by applying all the changes we may lose all the information on the hard disk, we are not interested in this, so we type the word "yes" (without quotes) and press enter. After that, as soon as the changes have been applied, select the "Quit" item and press the Enter button.

Now we see a section in our menu that appears. We select it and press enter. Then we choose to format the partition to file system"Ext3" and press enter. Then we are asked to confirm the formatting, we click yes. Then we are asked if you want to install the GRUB bootloader, we click yes. Then we are offered to make the / system directory available for writing and reading, we select yes and press enter. Then the installation starts. As soon as the installation is over, a menu appears with a choice further action... We select "Reboot" and press enter.

After the virtual machine began to reboot, we need to extract the disk image with the android, otherwise the system will boot from it again. To do this, go to the item "Devices" - "Optical drives" - "Remove the disc from the drive". If the system still managed to boot from the disk, it's okay, just restart the virtual machine.

After the system has booted, we need to select the "Turn off mouse integration" item in the "Machine" menu. Then the android asks us what language to use and so on. We go through this series of questions and proceed to the next stage.

Android customization

The next step is to set up your network connection.
To do this, after the android has booted, press Alt + F1 and type.

Released in March 2016 new version Android 7 Nougat not all were able to receive mobile devices... Many old and budget gadgets, whose manufacturers did not consider it necessary to worry about adapting the updated platform for these devices. Market of modern mobile technologies cruel: do you want latest version Android- buy new smartphone or tablet.


Well, or take the risk and install custom firmware. Is it worth the risk, or rather, for the sake of what, in fact, the risk - all this can be found out by establishing Android 7.1 to the virtual machine. Virtual environment will certainly not give the full experience, as if testing was carried out on a real physical gadget. Nevertheless, it will be possible to get an idea of ​​some basic functional innovations. Below we will see how to install Android 7.1 Nougat to the virtual machine.

1. Downloading the distribution

Download installation ISO -image Android 7.1 let's go to the site of a famous project Android-x86.Org... On this project, enthusiasts are completely free to spread different kinds assemblies Android adapted to work on physical PCs and laptops. This is roughly what you need for virtual machines. Download links ISO -images are laid out directly on home page project. At the time of this writing, the freshest build is custom firmware CyanogenMod 14.1... But our goal is to research a clean platform, so we will download the latest stable build. Android 7.1.

2. Creating a virtual machine

We launch. On the home page hypervisor, we click to start the operation to create a new virtual machine. We choose common type configuration.

We indicate the path to the loaded in previous paragraph ISO -image.

We give the machine an arbitrary name.

At the stage of configuring the virtual hard disk, nothing really needs to be changed. By default, its optimal size is suggested in 20 GB... Unless you can choose to create a disc in one working file .

The machine has been created, now it is necessary to correct something in its equipment.

In the tab "Memory" set the size RAM for Android-cars 2048 Mb... If on physical computer Total 2 GB of "RAM", we restrict ourselves to the size 1024 MB.

Switch to the tab. Here we activate the acceleration option 3D -graphics. For the screen, choose to use the settings of the site monitors.

Now we can press at the finish window "Ready".

3. Preparing the disk and installing Android

The machine will start with ISO -image. In its menu, you must select the installation of Android on a hard drive.

First, let's prepare the disk. After all, to new car a new virtual disk is connected - without initialization, with unallocated space. To prepare the disk, we are offered a built-in installation process Android console utility for working with disk space. It is controlled by the navigation keys, and the selection is confirmed by pressing Enter. In the window console utility select, press Enter. Then we choose "No", thereby confirming the refusal to initialize the disk as GPT .

Let's get into the console environment for creating partitions on the disk. Here, each choice made is confirmed by pressing Enter.

And you need to choose the following sequentially:

"New";
"Primary";

"Bootable";
"Write".

Now we enter the value on the keyboard "Yes"... And finally, exit the partition creation environment by selecting the item "Quit".

The result of our above actions was a newly formed partition on the disk - sda1... Select it and press Enter.

We format our section in ext4.

Then we select three times "Yes" on, respectively, three requests:

Whether we want to format the partition to the selected file system;
Do we want to install Grub bootloader;
Do we want to make it possible to write data to disk.

We are waiting for everything to be done with the virtual disk. necessary operations and files will be copied to it Android... Then we reboot the machine.

Running Android will be the first item in the boot menu Grub, therefore, if the steps described above were done correctly, the operating system will start itself in the virtual machine window. And it will start at the stage of setting up our personal data. We select the Russian language, click and, following the settings wizard, we go through all the necessary preparatory stages... In particular, we connect at will Google-account.

4. Subtleties of setting up virtual Android

For guest Android in the environment you cannot install guest OS add-ons in the same way as it is provided for guest desktop systems. As for the screen resolution, it will be optimal anyway - 1280x768... You can transfer files using cloud storage... And if you need to implement a shared clipboard, you can resort to software AirDroid... It is a system of communication between mobile and desktop devices, providing for both file transfer and the cloud clipboard. On Wednesday Android you need to install client application AirDroid, and on Windows - client program AirDroid... Or use web-interface of the project in the browser window.

In virtual Android 7.1 we may face the problem of switching keyboard layouts. The English-language layout is present in the operating system by default, and the Russian-language layout is automatically added when the Russian language is selected at the stage initial setup... When testing the operating system in our case, the software option for switching layouts to any did not want to work with the Russian language.

The solution was found in the settings physical keyboard.

We replaced the preinstalled keyboard for the Russian language with one with a mark in brackets "Mac"... Then everything worked successfully.

System hotkeys Android to switch layouts provide for the presence of a hardware button "Search" which is not on the physical computer keyboard... The application will be able to offer a solution to this issue. Russian Keyboard ... By being involved in the keyboard settings, Russian Keyboard will begin to be responsible for typing from the physical keyboard, in particular, it will provide a change of layouts by hot Shift keys+ Backspace.

Virtual machine Virtualbox(Oracle VM VirtualBox) - relatively young software virtualization, which is rapidly gaining popularity due to its quality, cross-platform, free, support for many languages, usability and ease of use. Virtualbox can be easily installed in the environment of most modern operating systems and allows you to programmatically emulate the standard computer equipment, so called virtual machine which can be used in much the same way as a real computer. A virtual machine has its own virtual devices - processor, memory, peripherals, as well as your BIOS. You can install almost any operating system (guest OS) on a virtual machine and use it in parallel with the main one. So, for example, on real computer with Windows, you can install a virtual machine (VM - Virtual Machine) with an operating system Linux family and use both OSes at the same time. You can add virtual machines with Windows, Mac OS X, Android or even MS DOS to them. Virtual machines are completely isolated from each other and from the main system and, for example, random formatting hard disk of one of the VMs, will not be reflected in any way on the others. Nevertheless, it is possible to configure interaction between real and virtual machines over the local network, organize data exchange via the clipboard, removable media, shared folders etc.
An important feature Virtualbox is the ability to create a snapshot of the virtual machine, and, if necessary, at any time, perform a full rollback to this state. There can be several snapshots, for example, the state of the system immediately after installation, the state after installing device drivers, etc. You can roll back the current state of the virtual machine using any of the existing snapshots.
In other words, a virtual machine is very convenient tool to study new operating systems, debug software, conduct experiments without disrupting the operation of the main OS, research viruses, diagnostic and recovery tools, and simply for parallel work multiple operating systems on one computer.

Installing Oracle VM Virtualbox

& nbsp & nbsp The current version of Oracle VM VirtualBox can be downloaded on the project download page, where download links are located installation packages for Windows x86 / x64, Linux, Solaris and OS X.

Installation in Windows environment should be performed under account a user with administrator rights.

During the further installation of VirtualBox, a warning will be displayed:

This means that when you install network drivers VirtualBox, the current network connections and a temporary disconnection from the network will occur. If, for example, in parallel with the plant, data is exchanged with network drive then it will fail. If the network is not working, then a short-term disconnection of the adapters will not have any consequences, and you need to allow the installation to continue by pressing the button Yes... Otherwise, you must first exit with network resources.

After the installation is complete, the main software module VirtualBox user - Oracle VM VirtualBox Manager (Oracle VM VirtualBox manager):

Installing Android on an Oracle VM VirtualBox virtual machine

& nbsp & nbsp All actions to create virtual machines, change their settings, import and export configurations, etc. can be performed using the manager Oracle VM VirtualBox Manager(in Russian-language software - Oracle VM VirtualBox Manager) or using the utility command line VboxManage.exe... The latter has several great opportunities on setting up virtual machines, but more difficult to use.

Installing a guest OS on a virtual machine can be roughly divided into 2 stages:

Creation of the required virtual machine using VirtualBox;

The boot source (media with the Android-x86 distribution) is determined by the settings of the virtual machine. It can be a real or virtual CD / DVD drive, floppy disk, HDD, image boot disk or the local network... By default, the boot order is as follows - Floppy, CD-ROM, Hard Drive, Network. This order can be changed in the settings of the virtual machine.

At the first starting VirtualBox the main program window is displayed with a greeting and an activated button Create to create a new VM:

When creating a new virtual machine, the following parameters are defined:

The name of the virtual machine. A directory with virtual machine files will be created in accordance with it. The default is the directory C: \ Users \ User \ VirtualBox VMs \... If desired, the location of the virtual machine files can be changed.

The type of operating system that will be installed on the virtual machine. For Android OS, you can select Linux... The type and version of the operating system of a virtual machine are not of particular importance and serve only to determine its parameters, such as the amount of RAM, the capacity of the hard disk, etc., offered by the program during the creation of the VM.

OS version. V in this case, you can choose, for example, Oracle (32bit).

After clicking the "Next" button, the program will proceed to the step of allocating the resources of the real machine for the needs of the virtual machine being created. The suggested options for Linux / Oracle (32bit) configuration are 512MB of RAM and 12GB of hard disk space. If necessary, the parameters can be determined based on your own preferences, for example, to increase the amount of RAM allocated to the virtual machine.

Here is an example of allocating 1024 MB of RAM to a virtual machine, instead of the recommended 512 MB. When allocating memory, you need to take into account its real amount and the minimum requirements of the guest OS. In the case of Android-x86 version 4.4 r2, allocating less than 512 MB of memory will lead to very slow performance, especially during the OS installation phase. As a rule, an increase in volume over 1024MB is not required for standard version using this virtual machine. Incorrect memory allocation between real and virtual machines can degrade the performance of both.

Virtual machine hard disk ( virtual hard disk) is a file special format in the file Windows system. Virtual disk can be created either dynamic or fixed. Dynamic disk is created not for the entire volume specified by the setting, but for its part, and increases as necessary during the operation of the virtual machine. For maximum performance of the guest operating system, it is better to choose a fixed virtual hard disk, and to save disk space- dynamic. The minimum hard disk space for Android 4.4 r2 is approximately 1.5GB.

VirtualBox allows multiple different formats virtual disk data:

Most of the parameters that are defined during the creation of a new virtual machine can be changed later, if necessary.

After completing the process of creating a virtual machine, it becomes active button Tune, which allows you to change some of its settings, add or remove virtual devices, change their modes of operation, manage the distribution of resources of the real operating system.

The distribution for the Android guest operating system can be downloaded from the links on the android-x86 download page.

This page contains links for downloading various Android distributions in the form of files of images of the boot disk (iso-file). When installing Android on a virtual machine, you can use both the iso-image file itself and the physical or virtual DVD drive with the medium on which the iso image is written. The easiest way is to use an .iso file connected as a VirtualBox virtual DVD drive.

The virtual machine is launched by pressing a button Run... After starting the VM, a usage message is displayed on the screen Auto-capture keyboard

This means that when the cursor is within the VM window, keyboard input will be performed for the virtual machine. By default, to switch keyboard input between real and virtual machine windows, use right Ctrl. Current state input is displayed in the status bar at the bottom of the virtual machine window.

Green color arrows in means that keyboard input will be performed for the virtual machine, gray - for the real one.

To install the operating system on a virtual machine, you will need to boot from installation disk... In the VirtualBox environment, it is possible to download not only from standard devices(CD / DVD drive, flash drive, network ...) but also using virtual drive created from the boot disk image.

When you start the virtual machine for the first time, when there is no guest operating system installed yet, VirtualBox will prompt you to select a boot device

By default, it is assumed that the download will be done using a physical drive (“Host Drive”). Instead of a physical drive, you can select an image file, for example android-x86-4.4-r2.iso which will be connected as virtual device with an installation CD / DVD.

By pressing the button Continue boot from the virtual drive and the installation of the guest operating system (Android-x86 4.4 r2)

A window with the bootloader menu will appear on the screen:

To check the hardware compatibility with the selected distribution of Android OS, instead of installing the system, you can boot it using the first menu item - “Live CD - Run Android-x86 without installation”. To install the system on a virtual hard disk, use the last menu item - “Installation - install Android-x86 on harddisk”.

On the initial stage you will need to create logical partitions on the virtual hard disk for the installed system:

Select “Create / Modify Partitions”, and the program for working with partitions of the hard disk cfdisk will be launched. The screen displays information about characteristics of hard disk / dev / sda and existing markup that is missing and presented as free space Free space

At the bottom of the screen there are buttons for selecting the program menu items. Moving between items is done with arrow buttons, selection - by pressing Enter. To create a partition, select “New”, then “Primary” and set the size of the partition, and set the sign of the “Bootable” partition to be loaded. As a result, we get the primary partition sda1 of the given size:

To write the prepared partition configuration to the virtual hard disk, press the “Write” button. Answer “yes” to the request for confirmation of the record. After completing the recording, quit the cfdisk program by selecting the “Quit” menu item.

At the next stage, you need to select a partition for installing the system (sda1):

After selecting a partition, you must specify the file system that will be created when formatting it - ext3, and answer “Yes” to the confirmation prompt before starting formatting. After its completion, you will be prompted to install the bootloader grub:

Must be allowed to install grub by choosing “Yes”. Further steps of the installation can be confirmed by pressing “Enter”, until the message about successful completion appears:

You can choose any of the modes, "Run Android-x86" or "Reboot" and as a result, either immediately or after a reboot, you will go to setting up the Android environment. At this stage, the system language is selected:

To navigate, use the "Up" / "Down" arrow keys, confirm the selection - "Right" and "Enter" arrows, or click on the gray triangle on the right.

After selecting the language "Russian", the installation will continue with the display of messages in Russian:

Choice Wi-Fi networks skip, because the easiest way is to use a virtual Ethernet adapter in NAT mode, emulated by VMware. With this option, the virtual machine with the Android operating system will have access to the Internet without any additional settings... If necessary, it will be possible to change the network parameters after the installation of the system is complete.

During the further installation, you must enter the data of the existing Google account or create a new one, enter information about the user, set the date and time, and, if desired, create a comfortable working environment with a preferred set of menu items. As a result, we will get a virtual machine with the Android-x86 operating system installed.

To move between application icons, you can use the arrow keys, to return to the previous level, use the Esc.

After the installation is complete, check the virtual machine settings to ensure Android download With virtual hard disk, and not from a virtual installation DVD... You can disconnect the virtual DVD drive based on the .iso image file and connect the physical DVD drive instead. Or change the boot order through the menu - "Configure - System - Motherboard":

In Android x86 OS environment, it is possible to switch between graphical shell and the user console with the rights root... To go to the console, you can use the keyboard shortcut Alt + F1(CTRL + ALT + F1). After pressing this combination, a blinking cursor will appear on the screen. After pressing “Enter”, you will be prompted to enter commands for root:

[email protected]:/ #

To clear the console screen, use the command clear.

Terminal uses shell sh and BusyBox is a set of UNIX command line utilities used as the main interface in embedded operating systems. For a quick reference, you can use the commands:

busybox –help- display busybox prompt

busybox –list- display a list of busybox functions

busybox ip –help- display a hint on how to use the command ip

Please note that the superuser root has unlimited rights in the system, and before experimenting with it, it is recommended to take a snapshot of the virtual machine in order to be able to restore its working capacity.

To return to the graphical environment, use the combination Alt + F7(CTRL + ALT + F7).

In addition, I note that in order to exclude screen rotation, which is unnecessary in a virtual machine environment, it makes sense to change the orientation settings from "Automatic" to landscape or portrait. In addition, it is advisable to disable the transition of the virtual PC to sleep mode when the user is idle (Settings - Display - Sleep mode).

Jan 29, 2018 22:48

Personal Computer has long ceased to be just a means of obtaining information, a tool for performing complex operations. Installing Android on the Virtual box will allow not only plunge into game world but also to master the popular OS.

First, let's look at the phenomenon of a "virtual machine", or rather, what it is.

Virtual Box - software that emulates popular operating systems. The technology is used for "remote" work with MS Windows, Linux, macOS and other operating systems.

Today we will install Android platforms using the capabilities of the above instrument.

Fastening is a delicate matter

To complete this task, we need a pre-installed virtual machine. Let's look at the set without which to install Android system it will be impossible. We need:

It's important to know!

Before starting the installation activities, check the virtualization settings that are in the BIOS. Otherwise, the virtual machine for Android will not start.

Preliminary activities

For ease of perception, we will give an example of software installation in the form of step-by-step instructions.

Direct mounting

We act according to the previously set narrative scheme. Consider the process of installing the system on a virtual machine for Android emulation:


Android OS setup process

After restarting the PC, we see the welcome window of the new operating system. through easy manipulations, the following is set here: language, account, date and time, username.

The process of installing Android via a virtual machine is a bit tricky. They can be avoided by using profile Windows emulators that provide access to popular software on other platforms.

Instead of a conclusion

Any user with a certain level of training is able to install and configure an emulation program, download setup file required OS, initiate and complete the installation process. Today's article gave illustrative example the accessibility and ease of the performed manipulations.

Top related articles