Skip to content

About

Step-by-step guide to building a robust, network-isolated Android 9.0 lab environment inside VirtualBox. Pre-configured for seamless network integration, inter-VM testing, and hardware acceleration using VirtWifi and promiscuous modes.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 

Repository files navigation

Android-x86 Virtual Lab Setup Guide πŸ›‘οΈπŸ“±

A comprehensive, step-by-step guide to setting up a fully functional Android-x86 (v9.0) virtual environment inside Oracle VirtualBox. This project is specifically pre-configured to run within a unified isolated NAT Network, allowing seamless inter-VM communication and network penetration testing alongside other environments like Kali Linux.


πŸ“‹ Prerequisites & System Requirements

Before initializing the virtual machine setup, ensure your host system satisfies the following conditions:

  • VirtualBox: Oracle VM VirtualBox installed and operational.
  • Storage: Minimum 10 GB of unallocated disk space.
  • Memory: At least 2 GB (2048 MB) of free RAM allocatable to the VM.
  • Network Context: A Kali Linux VM already running on a custom VirtualBox NAT Network with an assigned static/DHCP configuration (e.g., Target segment: 10.0.0.0/24).

βš™οΈ Step-by-Step Installation & Configuration

Phase 1: Virtual Machine Provisioning

  1. Download the Installation Media: Obtain the official Android-x86 9.0 ISO file. 1

  2. Open VirtualBox and click the New button to initialize the VM creation wizard. Screenshot (29)

  3. Apply the following initial setup parameters:

    • Name: Android9-Lab
    • Folder: Choose your preferred directory (e.g., C:\Users\<username>\Virtual VMs).
    • ISO Image: Click the dropdown βž” Select Other... βž” Browse and select your downloaded Android-x86 ISO.
    • Type: Other
    • Version: Other/Unknown (64-bit)
Screenshot (34)
  1. Click Finish to provision the base container.

Phase 2: Virtual Hardware Optimization

Select the newly created Android9-Lab machine, click Settings, and optimize the core configurations:

πŸ’» System Settings

  • Motherboard:

    • Base Memory: Set to 2048 MB. Screenshot (35)
  • Processor:

    • Processors: Allocate at least 2 CPUs (Scalable depending on your host capability). Screenshot (36)
  • Acceleration:

    • Paravirtualization Interface: Change from Default to KVM (Crucial for Linux-based Android kernel performance).
Screenshot (37)

πŸ–₯️ Display Settings

  • Screen:
    • Video Memory: Minimum 64 MB (128 MB recommended for UI fluid stability).
    • Graphics Controller: Select VBoxVGA or VBoxSVGA (with 3D Acceleration toggled) based on your hardware compatibility.
Screenshot (38)

Click OK to preserve variations. Click Start to run the initial OS installation wizard, keeping defaults via prompt selections. Shut down the machine cleanly upon successful installation.


Phase 3: Advanced Lab Networking Setup

To group this Android deployment under the same physical broadcast domain as your pentesting tools (e.g., Kali Linux), modify the internal adapter properties:

  1. Re-open Settings βž” Navigate to the Network tab.
  2. Configure Adapter 1 exactly as follows:
    • Attached to: NAT Network
    • Name: Select your unified lab network configuration (e.g., NatNetwork).
    • Adapter Type: Intel PRO/1000 MT Desktop (82540EM) (Optimized hardware emulation driver for Android kernel).
    • Promiscuous Mode: Allow All (Permits complete network monitoring/sniffing capabilities within the network segment).
Screenshot (47)

Click OK to seal the virtualization network path.


🌐 Verifying Network Connectivity

  1. Power up the Android9-Lab virtual machine. Screenshot (43)

  2. Inside the Android Graphical User Interface, navigate to: Settings βž” Network & Internet βž” Wi-Fi

  3. Toggle the switch to On and connect to the emulated VirtWifi access point.

Capture
  1. Verification Test: Launch a local terminal application or shell session inside Android and execute the standard ICMP loopback verification:

    ping -c 4 google.com
    Capture

    If packets resolve successfully with minimal latency, your isolated environment has proper outbound internet routing active.


⚠️ Post-Installation Troubleshooting

πŸ’‘ Preventing Screen Sleep / Black Screen Freeze

Android-x86 frequently drops into power-saving sleep modes, causing unresolvable black screens due to VirtualBox driver limitations. To permanently prevent this:

  1. In Android UI, go to Settings βž” Display βž” Advanced βž” Sleep βž” Set to Never.
  2. Go to Settings βž” Security βž” Screen lock βž” Set to None.
  3. Alternative Terminal Fix: Press Alt + F1 to drop into the shell console and run:
    svc power stayon true
    Press Alt + F7 to return safely to the desktop GUI.

βš–οΈ License & Disclaimers

This documentation is explicitly structured for internal lab architecture, defensive auditing, and training environments. Ensure all exploitation operations executed inside this network layout comply strictly with localized authorization and compliance frames.

Author

About

Step-by-step guide to building a robust, network-isolated Android 9.0 lab environment inside VirtualBox. Pre-configured for seamless network integration, inter-VM testing, and hardware acceleration using VirtWifi and promiscuous modes.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors