Hyper-V can I use wifi for a bridged device for HOST-GUEST communication


jimbo45

Well-known member
Pro User
VIP
Local time
4:01 AM
Posts
6,016
Location
Hafnarfjörður IS
OS
Windows XP,11 Linux Fedora Rawhide pre-release 46
Hi folks

Currently I'm using an ethernet port as a bridged connector (br0) which works properly. But I can't get wifi to work as a bridged connector - at least on a Linux Host -- I'm struggling also on HYPER-V

Can it be done or am I missing something. I don't want NAT as this hoses up Guest / host communication

currently I have this on the host -- the enp0s... lan port is bridged to br0 with an ip address (local) of 192.168.1.122

Screenshot_20240417_094617.png


ping to the guest -- successful

Screenshot_20240417_095212.png


The Guest (Windows 11 machine) confirms the correct IP address and can ping the host

Screenshot_20240417_095549.png


so full two way communication between Guest and HOST is correct.

I'd like to get the same thing also with HYPER-V and if poss just use IPV6 but that's a later thing -- I'm happy to get one thing working properly first. Windows HOST is W11 Pro (standard - not insider) while the guest is Windows 11 Enterprise insider edition DEV branch.

To me any sort of Windows networking just seems like "Black magic". With Linux it just works straight OOTB although the current kernels still aren't quite ready for wifi devices to act as bridging devices.

(I can get round the problem in Windows by disabling the virtual network adapter(s) and using a physical usb wifi or usb wifi->LAN connection in the VM but that seems bonkers when there's a nice fast modern wifi card inside the laptop I want to use).

Cheers
jimbo
 
Last edited:

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 46
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
Not clear what you are trying to do.

Hyper-V shares the Host wifi NIC but looks like an ethernet connection inside the VM. You cannot connect to wifi in VM afaik


If you use an external network switch, the Hyper-V guest is on same subnet as the Host, so no NAT issues.

If you use the default network switch, the VM is behind a Nat Firewall on different subnets VM user can ping Host but Host cannot ping VM.
 

My Computer My Computer

At a glance

Windows 11 Pro + Win11 Canary VM.I9 13th gen i9-13900H 2.60 GHZ16 GB solderedIntegrated Intel Iris XE
OS
Windows 11 Pro + Win11 Canary VM.
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14
CPU
I9 13th gen i9-13900H 2.60 GHZ
Motherboard
Yep, Laptop has one.
Memory
16 GB soldered
Graphics Card(s)
Integrated Intel Iris XE
Sound Card
Realtek built in
Monitor(s) Displays
laptop OLED screen
Screen Resolution
2880x1800 touchscreen
Hard Drives
1 TB NVME SSD (only weakness is only one slot)
PSU
Internal + 65W thunderbolt USB4 charger
Case
Yep, got one
Cooling
Stella Artois (UK pint cans - 568 ml) - extra cost.
Keyboard
Built in UK keybd
Mouse
Bluetooth , wireless dongled, wired
Internet Speed
900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
Browser
Edge
Antivirus
Defender
Other Info
TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)
Not clear what you are trying to do.

Hyper-V shares the Host wifi NIC but looks like an ethernet connection inside the VM. You cannot connect to wifi in VM afaik


If you use an external network switch, the Hyper-V guest is on same subnet as the Host, so no NAT issues.

If you use the default network switch, the VM is behind a Nat Firewall on different subnets VM user can ping Host but Host cannot ping VM.
Thanks

That clears it up.

BTW using a separate wifi device INSIDE the VM works but you need to install the usb wifi adapter driver inside the guest then it acts just as a totally separate machine and ping to host and from host is fine -- but it's pointless using an extra device when not necessary.

The external switch works properly for Windows Guests -- now will try for a Linux guest -- no issues with windows - but I will see whether Linux picks up the NIC virtual driver properly.

the Host is bog standard W11 Pro (non insider edition). I want to try Win11 insider Canary or Dev edition and 2 small Linux distros as Guests.

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 46
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
Thanks

That clears it up.

BTW using a separate wifi device INSIDE the VM works but you need to install the usb wifi adapter driver inside the guest then it acts just as a totally separate machine and ping to host and from host is fine -- but it's pointless using an extra device when not necessary.

The external switch works properly for Windows Guests -- now will try for a Linux guest -- no issues with windows - but I will see whether Linux picks up the NIC virtual driver properly.

the Host is bog standard W11 Pro (non insider edition). I want to try Win11 insider Canary or Dev edition and 2 small Linux distros as Guests.

Cheers
jimbo
Linux guests pick up host NIC in same way.

Main issue with Linux guests is they can only run in basic mode unless they can act as an rdp server. You cannot get sound in basic mode.

Ubunto can but it is a PITA getting sound. Kali Linux is by far the easiest implementation. Search for some of my posts for Kali. However, getting sound and video to sync is a challenge using live streaming which I never solved. It is easier playing mp4s as you can compensate with movie app (vlc can I think).

Canary and Dev work fine but you should use Pro versions so you can use enhanced mode to get sound.
 

My Computer My Computer

At a glance

Windows 11 Pro + Win11 Canary VM.I9 13th gen i9-13900H 2.60 GHZ16 GB solderedIntegrated Intel Iris XE
OS
Windows 11 Pro + Win11 Canary VM.
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14
CPU
I9 13th gen i9-13900H 2.60 GHZ
Motherboard
Yep, Laptop has one.
Memory
16 GB soldered
Graphics Card(s)
Integrated Intel Iris XE
Sound Card
Realtek built in
Monitor(s) Displays
laptop OLED screen
Screen Resolution
2880x1800 touchscreen
Hard Drives
1 TB NVME SSD (only weakness is only one slot)
PSU
Internal + 65W thunderbolt USB4 charger
Case
Yep, got one
Cooling
Stella Artois (UK pint cans - 568 ml) - extra cost.
Keyboard
Built in UK keybd
Mouse
Bluetooth , wireless dongled, wired
Internet Speed
900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
Browser
Edge
Antivirus
Defender
Other Info
TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)
Back
Top Bottom