How to connect a Wi-Fi adapter to VirtualBox with Kali Linux: a complete guide from choosing hardware to setting up a monitor

Usage Kali Linux in a virtual machine VirtualBox — a popular solution for network security testing, but many people face the problem of how to make it work Wi-Fi adapter inside the guest system? Virtual machines don't have direct access to physical network devices by default, and for tasks like Wireshark, Aircrack-ng or Reaver Full control over the adapter is required. This article will help you understand how to properly connect an external or built-in Wi-Fi module to VirtualBox, configure it to work in modes monitor mode And promiscuous mode, and also avoid typical mistakes.

We'll cover the entire process - from choosing a compatible adapter (not all models are supported!) to fine-tuning the drivers in Kali LinuxWe will pay special attention to two key scenarios: using the adapter for passive network scanning (for example, through airodump-ng) and for active attacks (deauthentication, handshake interception). If you previously tried to connect the adapter but received errors like could not access network or device not found, here you will find solutions.

Let us warn you in advance: the process requires work with command line, editing configuration files, and sometimes even compiling drivers. But don't worry—we've broken the instructions down into simple steps with explanations. For your convenience, the article includes checklists, compatibility tables and warning blocks about critical issues. Let's start with the most important thing: choosing the right Wi-Fi adapter.

1. Which Wi-Fi adapter should I choose for VirtualBox and Kali Linux?

Not every Wi-Fi adapter is suitable for working in VirtualBox With Kali LinuxMain selection criteria:

  • 🔌 Monitor Mode support — without it, it's impossible to scan networks or intercept packets. Check the adapter's specifications on the manufacturer's website.
  • 🖥️ Compatibility with USB passthrough in VirtualBox — the virtual machine must "see" the adapter as a physical device. Some cheap chip-based models Realtek may not be determined.
  • 🐧 Availability of drivers for Linux - ideally, if the adapter is supported by the kernel Kali "Out of the box." Otherwise, you'll have to compile the drivers manually.

Best value options (as of 2026):

Adapter model Chipset Monitor Mode Packet Injection Price (approximately)
Alfa AWUS036ACH AR9271 ✅ Yes ✅ Yes 3 500 — 4 200 ₽
TP-Link TL-WN722N v1 AR9271 ✅ Yes ✅ Yes 1 800 — 2 500 ₽
Panda PAU09 (N600) RT5572 ✅ Yes ❌ No 2 200 — 3 000 ₽
Alfa AWUS1900 RTL8814AU ✅ Yes ✅ Yes 5 000 — 6 500 ₽

Important! Avoid chip-based adapters Realtek RTL8188EU/RTL8192EU - they often don't support monitor mode in Linux. Also check the adapter version: for example, TP-Link TL-WN722N v2/v3 works on a different chipset and is not suitable for Kali.

⚠️ Attention: Adapter specifications may change with new revisions. Before purchasing, check the chipset model on the manufacturer's website or in reviews on marketplaces (look for mentions of working with Kali Linux).

2. Configuring VirtualBox to transfer USB devices

Before connecting the adapter to the guest system, you need to configure it correctly VirtualBoxBy default, the virtual machine doesn't have access to the host's USB devices. Here's what you need to do:

  1. Install the extension VirtualBox Extension Pack:
    • Download it from official website (the version must match yours VirtualBox).
    • Open VirtualBox, go to File → Settings → Plugins and add the downloaded file.
  • Set up a USB filter for the adapter:
    • Select your virtual machine with Kali Linux and open Settings → USB.
    • Add a new filter by selecting your Wi-Fi adapter from the list (it must be connected to the host!).
    • Check the box Enable USB 2.0 Controller (EHCI) or USB 3.0 (xHCI).

    Having trouble detecting your device? Check:

    • 🔌 Is the adapter connected to USB 2.0 port (Some adapters do not work via USB 3.0 in VirtualBox).
    • 🔄 Reboot the host system after installation Extension Pack.
    • 🛠️ There should be no exclamation marks next to the adapter in the host's Device Manager.

    Install VirtualBox Extension Pack|Add USB filter for adapter|Enable USB 2.0/3.0 controller|Reboot host system-->

    If the adapter is still not detected, try connecting it after launch virtual machine: in the menu VirtualBox select Devices → USB → [Name of your adapter].

    3. Connecting the adapter to Kali Linux and checking the drivers

    Now that the adapter is connected to the virtual machine, you need to make sure that Kali Linux It recognizes it. Open the terminal and run the following commands:

    lsusb

    This command will show all connected USB devices. Find your adapter in the list (for example, the line with Alfa Network or TP-Link). If it is not there, the problem is at the level VirtualBox (return to the previous section).

    iwconfig

    All network interfaces should be displayed here. Look for the new interface, usually it's wlan0, wlan1 or something like that wlx[MAC address]If it is not there, the driver is not loaded.

    Installing drivers (if the adapter is not detected):

    • 🔧 For chipsets AR9271 (Alfa AWUS036ACH, TP-Link TL-WN722N v1) The driver is usually already in the kernel. Update the system:
      sudo apt update && sudo apt upgrade -y
    • 🔧 For RTL8812AU/RTL8814AU (Alfa AWUS1900) you will need to install the driver manually:
      sudo apt install realtek-rtl88xxau-dkms
    • 🔧 If the adapter is on a chip RT5572 (Panda PAU09), install:
      sudo apt install firmware-realtek

    Critical information: If after installing the drivers the adapter still does not appear in iwconfig, check if the power management system is blocking it. Run:

    sudo rfkill unblock all

    Alfa AWUS036ACH|TP-Link TL-WN722N|Panda PAU09|Other (write in the comments)|Not bought yet-->

    4. Configuring Monitor Mode in Kali Linux

    For most security testing tasks (e.g. scanning networks via airodump-ng) it is necessary to translate the adapter into Monitor ModeHere's how to do it:

    1. Stop services that may interfere:
      sudo systemctl stop NetworkManager
    2. Kill processes using the interface:
      sudo airmon-ng check kill

      This command will complete the work wpa_supplicant, dhclient and other processes that may block the adapter.

    3. Enable Monitor Mode:
      sudo airmon-ng start wlan0

      Replace wlan0 to your interface (you can find it out through iwconfig). After executing the command, a new interface should appear, usually wlan0mon.

    Examination: complete iwconfig and make sure that a flag appears next to the interface Mode:MonitorIf not, the adapter does not support this mode or the driver is not installed correctly.

    Typical errors and solutions:

    • 🚫 SIOCSIFFLAGS: Operation not possible due to RF-kill → Execute sudo rfkill unblock all.
    • 🚫 Device or resource busy → Launch sudo airmon-ng check kill again.
    • 🚫 The adapter is frozen after switching to Monitor Mode → Reconnect it physically and reboot Kali.

    5. Setting up a network bridge (Bridged Networking) for Internet access

    By default, the virtual machine connects to the network via NAT, which prevents the use of a Wi-Fi adapter for internet access. To ensure that Kali Linux can simultaneously work with the adapter And have access to the network, set up network bridge (Bridged Networking):

    1. Shut down the virtual machine.
    2. Open Settings → Network.
    3. Turn on Adapter 1 and select the connection type Bridged Networking.
    4. In the field Name select your primary host network interface (usually eth0 or wlan0).
    5. Start the virtual machine and check the connection:
      ping 8.8.8.8

    Important: If you're using a Wi-Fi adapter as your primary internet connection (for example, on a laptop without Ethernet), the bridge may not work. In this case:

    • 🔄 Connect the host system to the Internet via another interface (Ethernet or a second Wi-Fi adapter).
    • 🌐 Use NAT for internet access and connect the Wi-Fi adapter only for tasks in Kali.
    ⚠️ Attention: When using Bridged Networking Your virtual machine will appear on the local network as a separate device. This can cause IP address conflicts if DHCP servers are enabled on the host and in Kali. Manually assign a static IP in Kali if issues arise.

    6. Solving common problems

    Even after proper setup, errors may still occur. Here are the most common ones and how to resolve them:

    Problem Possible cause Solution
    Could not access network in VirtualBox The USB device is busy with the host or another process. Disconnect the adapter from the host, restart VirtualBox, check USB filters
    The adapter is detected but does not go into Monitor Mode The driver does not support this mode. Please update your driver or install an alternative one (for example, rtl8812au-dkms)
    Operation not permitted at startup airodump-ng Insufficient rights or adapter is blocked Run commands with sudo, do it sudo airmon-ng check kill
    Slow speed or dropped connections USB 3.0 or power issues Connect the adapter to a USB 2.0 port, use an extension cable with external power

    Additional tips:

    • 🔄 If the adapter "disappears" after rebooting Kali, add it to /etc/rc.local for automatic connection.
    • 📡 For better reception, use a USB extender and place the adapter closer to the window.
    • 🔧 If nothing helps, try running Kali Linux with live USB (without VirtualBox) - this will help determine whether the problem is in the adapter or in the virtualization settings.
    What should I do if the adapter works but doesn't pick up any networks?

    If the adapter is detected in the system, but does not see any network (even in the mode managed), the problem may be as follows:

    1. The antenna is not connected - check the physical connection (especially if the adapter is detachable, like the Alfa AWUS036ACH).

    2. Regional restrictions — Some adapters block channels above 14 in Russia. Check with:

    sudo iw reg get

    If the region is incorrect, set the correct one:

    sudo iw reg set RU

    3. Interference from other devices - try changing the channel on your router or use a spectrum analyzer (for example, Wifi Analyzer on Android) to find a free channel.

    7. Testing the connection: simple commands for checking

    Before attempting more complex tasks, make sure the adapter is working properly. Here are some basic commands for testing:

    # Checking available networks (in managed mode)
    

    sudo iwlist wlan0 scanning | grep ESSID

    Switching to Monitor Mode and scanning

    sudo airmon-ng start wlan0

    sudo airodump-ng wlan0mon

    Checking the possibility of packet injection

    sudo aireplay-ng --test wlan0mon

    What should happen:

    • 📡 Team iwlist scanning should display a list of available networks (if the adapter is in mode managed).
    • 👁️ airodump-ng should show a list of access points and clients (in mode monitor).
    • aireplay-ng --test should display a message about a successful injection (for example, Injection is working!).

    If you encounter errors at any stage, return to the previous sections - most likely, the problem is in the drivers or VirtualBox settings.

    FAQ: Frequently asked questions about connecting a Wi-Fi adapter to VirtualBox

    My adapter is detected in VirtualBox, but it doesn't appear in Kali Linux. What should I do?

    Most likely, the problem is with the drivers. Run:

    1. Check the adapter chipset model via lsusb.
    2. Update Kali Linux: sudo apt update && sudo apt upgrade -y.
    3. Install the driver for your chipset (see section 3).
    4. If the adapter is on Realtek RTL88x2bu, try the driver from GitHub:
      sudo apt install dkms git
      

      git clone https://github.com/cilynx/rtl88x2bu.git

      cd rtl88x2bu

      make

      sudo make install

      sudo modprobe 88x2bu

    Is it possible to use a laptop's built-in Wi-Fi instead of an external adapter?

    Technically yes, but with some caveats:

    • ✅ Most built-in adapters (eg. Intel AX200) support Monitor Mode, but may not be able to inject packets.
    • ❌ Many adapters from Broadcom (especially on MacBooks) are not compatible with Kali Linux.
    • ⚠️ In VirtualBox, the built-in adapter will have to be "passed through" PCI-passthrough, which is more complicated than with USB.

    For stable operation, it is better to use an external chip adapter. Atheros or Ralink.

    Why is the adapter back in managed mode after rebooting Kali?

    This is normal behavior - settings Monitor Mode are reset. To automate the process, add the following to startup:

    1. Create a script:
      sudo nano /usr/local/bin/start_monitor.sh

      With contents:

      #!/bin/bash
      

      sudo airmon-ng check kill

      sudo airmon-ng start wlan0

    2. Make it executable:
      sudo chmod +x /usr/local/bin/start_monitor.sh
    3. Add to startup:
      sudo crontab -e

      And add the line:

      @reboot /usr/local/bin/start_monitor.sh
    VirtualBox isn't detecting my Wi-Fi adapter. What should I check?

    The problem may be at the host system or VirtualBox level:

    • 🔌 Make sure the adapter is connected to USB 2.0 port (Some adapters do not work via USB 3.0).
    • 🔄 Reinstall VirtualBox Extension Pack (download the latest version from the official website).
    • 🛠️ There should be no errors (yellow exclamation marks) in the host's device manager.
    • 🖥️ Try connecting the adapter after launch virtual machine (menu Devices → USB).
    • 🔧 If you use Windows host, disable fast boot in power options.
    Can this adapter be used to attack Wi-Fi (eg WPA2)?

    Yes, but taking into account the following:

    • ✅ The adapter must support packet injection (checked through aireplay-ng --test).
    • ⚠️ Attacks on modern networks (WPA3, 802.11w) require specialized equipment and knowledge.
    • ❌ In most countries Unauthorized testing of other people's networks is illegalUse only on your own devices or in a controlled environment (e.g., a lab with permission).

    For training purposes, we recommend creating a test access point on a router with a known password.