Connecting a virtual machine (VM) to Wi-Fi is a challenge faced by both novice and experienced users. Unlike a physical PC, where the adapter is connected directly, in a VM, the network operates through virtualization layers, which often causes confusion. The main problem is: The virtual machine does not see the host's Wi-Fi adapter. as a separate device, but uses it indirectly through the network settings in the hypervisor.
In this article we will look at how to properly set up a wireless connection in VirtualBox, VMware Workstation And Hyper-V, including rare cases where VM is required Direct access to the host's Wi-Fi adapter for tasks such as network monitoring or security testingWe'll also look at common errors (such as no internet connection after setup) and how to fix them without reinstalling the system.
Why a virtual machine can't see Wi-Fi: key reasons
Before setting up, it's important to understand how networking works in a VM. In 90% of cases, the problem lies in one of three factors:
- 🔌 Network mode in hypervisor chosen incorrectly (for example,
Host-Onlyinstead ofNATorBridged). - 🖥️ Virtual network adapter drivers are not installed in the guest OS (especially relevant for Linux).
- 📡 The host's Wi-Fi adapter is disabled. or blocked by antivirus/firewall.
Most hypervisors use it by default. NAT — a mode in which the VM "accesses" the Internet via the host's IP address. This is convenient for security, but is not suitable if you need the VM to be visible on the local network as a separate device (for example, for configuring a router). In such cases, you need Bridged (bridge mode).
⚠️ Attention: If you're using a corporate laptop, your Wi-Fi adapter may be blocked by domain policies. Check this in Device Manager host - If the adapter is displayed with an exclamation mark, contact your IT service.
Method 1: Setting up Wi-Fi via NAT (for Internet access)
Mode NAT — the simplest and most secure option for most tasks (surfing, updates, development). The VM accesses the internet via the host's IP but remains invisible to other devices on the network.
Instructions for VirtualBox:
- Shut down the virtual machine.
- Open
Settings → Network. - In the field
Connection typeselectNAT. - In the section
AdditionallyinstallAdapter type—PCnet-FAST III(for Linux) orIntel PRO/1000 MT(for Windows). - Start the VM and check the connection (for example, with the command
ping 8.8.8.8in the terminal).
For VMware Workstation the steps are similar, but in the network settings you need to select NAT: Used to share the host's IP address.
Select NAT mode in the VM network settings | Make sure Wi-Fi is enabled on the host | Check the network adapter drivers in the guest OS | Ping to 8.8.8.8 or google.com -->
Method 2: Bridged mode for accessing the local network
If you need the VM to be visible on the local network as a separate device (for example, to configure a router or connect to network printers), use Bridged (bridged mode). In this case, the VM receives its own IP address from the router.
Step-by-step setup in VirtualBox:
- Turn off the VM and open
Settings → Network. - Select
Connection type: Network bridge (Bridged). - In the field
NamePlease specify your Wi-Fi adapter (for example,Intel(R) Wi-Fi 6 AX200). - Start the VM and check the IP address (in Windows -
ipconfig, in Linux -ifconfigorip a).
IN VMware Bridge mode is configured via Bridged: Connected directly to the physical networkAfter applying the settings, the VM should receive an IP from the DHCP router (for example, 192.168.1.x).
| Hypervisor | NAT mode | Bridge | Host-Only |
|---|---|---|---|
| VirtualBox | ✅ Internet access ❌ Not visible on the local network |
✅ Visible on the local network ✅ Your own IP from your router |
✅ Host-only communication ❌ No internet access |
| VMware | ✅ Safe Mode ❌ Limited functionality |
✅ Full network access ⚠️ Requires administrator rights |
✅ Isolated network ❌ No external connection |
| Hyper-V | ✅ By default ❌ More difficult to set up |
✅ Through External Virtual Switch⚠️ May conflict with VPN |
✅ Private Virtual Switch❌ For internal communication only |
⚠️ Attention: In bridge mode, some antiviruses (for example, Kaspersky or ESET) may block VM network activity, considering it suspicious. Add the VM's IP address to the firewall exceptions.
VirtualBox|VMware Workstation|Hyper-V|Parallels Desktop|Other-->
Method 3: Direct access to a Wi-Fi adapter (USB passthrough)
In rare cases it is required that the VM has direct access to the Wi-Fi adapter — for example, for:
- 🔍 Network security testing (like Kali Linux).
- 📡 Settings for specialized protocols (e.g.
802.11acin monitor mode). - 🖥️ Working with devices that require low-level access (like ESP32 or Raspberry Pi).
For this, technology is used USB-passthrough, which "transmits" a USB device (in this case, a Wi-Fi adapter) directly to the VM. Instructions for VirtualBox:
- Connect the Wi-Fi adapter to the host (if it is an external adapter, for example, TP-Link TL-WN722N).
- In the VM settings, go to
USB → Add New USB Filter. - Select your adapter from the list (e.g.
Realtek RTL8188EU). - Start the VM and install the drivers for the adapter in the guest OS.
IN VMware a similar function is called USB Compatibility and is configured in VM → Removable Devices.
What to do if the adapter is not detected in the VM?
If the Wi-Fi adapter does not appear in the VM's list of USB devices, check:
1. Is it connected to the host (in Device Manager Windows or lsusb in Linux).
2. Is it blocked by an antivirus or group policy (relevant for corporate PCs).
3. Does your version of the hypervisor support USB 3.0 (for adapters like ASUS USB-AC68>).
If the adapter is still not visible, try connecting it via PCI-passthrough (requires IOMMU support in host BIOS).
Troubleshooting common Wi-Fi connection errors in VMs
Even after proper setup, problems may still arise. Here are the most common ones and how to fix them:
| Error | Cause | Solution |
|---|---|---|
No internet access (NAT) |
DNS is not configured or blocked by a firewall | Ping 8.8.8.8If there is a ping, but websites don't open, enter the DNS manually (8.8.8.8, 1.1.1.1). |
Unable to obtain IP (Bridged) |
The router's DHCP server is not assigning an address. | Assign a static IP manually (eg. 192.168.1.100 with a mask 255.255.255.0). |
The adapter is not recognized. (USB-passthrough) |
Drivers are missing in the guest OS | Download the driver for your OS from the adapter manufacturer's website (for example, for Realtek RTL8812AU). |
Limited connection (Windows) |
IP conflict or incorrect network settings | Run in CMD:
Then reboot the VM. |
If the problem persists, check the hypervisor logs. VirtualBox they are in %USERPROFILE%\.VirtualBox\Machines\<VM_Name>\Logs. IN VMware - V C:\ProgramData\VMware\VMware Workstation\vmware.log.
Wi-Fi setup in Hyper-V
Hyper-V (the built-in Windows hypervisor) has its own nuances when working with Wi-Fi. The main difficulty is the lack of direct support for wireless adapters in External Virtual SwitchThis can be solved in two ways:
- Creating a Wi-Fi-based virtual switch:
New-VMSwitch -SwitchName "WiFiSwitch" -SwitchType External -NetAdapterName "Wi-Fi"Then connect the VM to this switch in the network settings.
- Using NAT via PowerShell:
New-NetIPAddress -IPAddress 192.168.100.1 -PrefixLength 24 -InterfaceAlias "vEthernet (WiFiSwitch)"New-NetNAT -Name "VMSwitchNAT" -InternalIPInterfaceAddressPrefix 192.168.100.0/24This will allow the VM to access the Internet through the host, even if the Wi-Fi adapter does not support it.
Bridged.
IN Hyper-V can also be used Default Switch — it automatically creates a NAT network, but with limited functionality (for example, it is impossible to configure port forwarding).
⚠️ Attention: In Windows 11 Hyper-V may conflict with Windows Sandbox or WSL2If after setting up Wi-Fi in the VM the Internet on the host is lost, disable these functions in Turn Windows features on or off.
Security: Risks of Connecting a VM to Wi-Fi
Connecting a VM to a wireless network carries several risks that are often ignored:
- 🛡️ Data Leak: If a VM is infected with a virus, it can spread to the host or other devices on the network (especially in bridged mode).
- 🔍 Traffic interception: On public Wi-Fi networks, VM traffic can be intercepted (for example, if you are testing vulnerabilities in Kali Linux).
- 🔄 IP Conflicts: Manually setting up a static IP may cause conflicts with other devices on the network.
Safety recommendations:
- Use
NATFor most tasks, this isolates the VM from the local network. - Enable the firewall in the guest OS (e.g.
ufwin Linux orWindows Defender). - To test networks, use isolated environments (e.g.
Host-Only+ second adapter inNAT).
FAQ: Frequently asked questions about Wi-Fi in virtual machines
Is it possible to connect a VM to Wi-Fi without accessing the host settings?
No. A virtual machine always depends on the network settings of the hypervisor, which in turn uses the host adapters. If you don't have administrator rights on the host, you won't be able to change the network mode (for example, from NAT on Bridged). In this case, the only thing left to do is ask the administrator to configure the network or use cloud VMs (for example, AWS or Google Cloud).
Why doesn't the VM receive an IP from the router in bridged mode?
This is a typical problem if:
- The router is configured to issue IP only to certain MAC addresses (check
DHCP Reservationin the router settings). - The VM is using an incompatible adapter type (try
Intel PRO/1000 MT Desktopinstead ofPCnet-FAST III). - DHCP is disabled on the router (assign IP manually).
Also check if the antivirus software on the host is blocking the VM's network activity.
How to connect a VM to Wi-Fi on a Mac (Parallels Desktop)?
IN Parallels Desktop the setup is simpler:
- Open
VM Settings → Hardware → Network. - Select
Sharedfor NAT orBridgeto access the local network. - If you need direct access to the Wi-Fi adapter, connect the VM to
USB huband add the adapter to the list of devices.
Parallels automatically configures drivers, so connection problems occur less frequently than in VirtualBox or VMware.
Can I use a VM as a Wi-Fi hotspot?
Technically yes, but it requires:
- Bridge mode (
Bridged) orUSB-passthroughfor Wi-Fi adapter. - Guest OS settings as a router (for example, via
hostapdin Linux orInternet Connection Sharingin Windows). - Support of the regime
AP (Access Point)your Wi-Fi adapter (not all adapters can do this).
It is easier to use a separate device for this (router or Raspberry Pi).
How to speed up Wi-Fi in a virtual machine?
Speed is limited by several factors:
- Virtual adapter type:
VirtioorIntel PRO/1000work faster thanPCnet-FAST III. - Network mode: IN
NATThe speed may drop by 10-15% due to address translation. - Host load: If the host is loaded at 100%, the VM will slow down. Check in
Task Manager.
For maximum speed:
- Use
Bridgedinstead ofNAT. - Disable unnecessary services in the guest OS (eg.
Windows Update). - If possible, connect the host to the network via Ethernet (Wi-Fi itself adds latency).