Mithat Konar 2014-10-19
Android VM Manager is a desktop application designed to make launching Android-x86 Virtual Machines and connecting them to the Android Debug Bridge convenient.
It supports VirtualBox VMs and Android-x86 4.4-r1 (KitKat-x86). It has been tested on Linux. Mac OS is untested; Windows support may follow.
Android VM Manager is developed with Qt widgets and is licensed under the GPLv3.
###Configuration
Start Android VM Manager and go to Edit > Preferences.... If you added the platform-tools
directory to your PATH
during installation of the Android SDK (or ADT), then check "ADB is on PATH" and you're done. If not, then use the "Browse" button to tell Android VM Manager where the adb
executable is. (As of this writing, it's in <Android-SDK-directory>/platform-tools
.)
In the "VM name" text field of Android VM Manager's main interface, enter the name of the virtual machine you want to use as it appears in Virtual Box.
Two methods for configuring the IP address of the VM are described below: NAT with port forwarding and Host only. If the VM's documentation doesn't tell you what you should be, try NAT with port forwarding.
- Open VirtualBox and configure the VM's settings as follows:
- In the "Network" tab, set "Attached to" to "NAT".
- Click the "Advanced" arrow to expose the options.
- Set "Adapter Type" to "PCnet-Fast III (Am79C973)." (This might vary according to the specific VM, but it has been tested with Android-x86.)
- Click the "Port Forwarding" button and add a forwarding rule:
- Name: ADB forwarding rule
- Protocol: TCP
- Host IP: (leave blank)
- Host Port: 5555
- Guest IP: (leave blank)
- Guest Port: 5555
- In Android VM Manager's main interface, enter 127.0.0.1 in the "VM IP address" text field.
- Open VirtualBox and configure the VM's settings as follows:
- Under the "Network" tab, set "Attached to" to "Host-only Adapter".
- Consult the VM's documentation regarding the best way to learn the IP address it is using. If all else fails, you might get something useful from Android VM Manager's File > VM info... command. If your VM has a terminal in it, you might try the
netcfg
command in it.
Start the virtual machine with Machine > Start VM.
Connect the virtual machine to the Android Debug Bridge with ADB > Connect VM.
Once the VM is running and connected, you should be able to run applications in the virtual machine from your development environment.
To be sure that it will launch in the VM rather than in the SDK's emulator, you might want to configure your development environment to prompt you for where to run your application on every run. In the Eclipse-based ADT, this is done via selecting Run > Run configurations..., clicking the "Target" tab, and selecting "Always prompt to pick device."