foxlet / macOS-Simple-KVM

Tools to set up a quick macOS VM in QEMU, accelerated by KVM.
13.65k stars 1.14k forks source link

Wifi works perfectly on basic.sh, but doesn't work on Virt Manager. #532

Open LordVicky opened 2 years ago

LordVicky commented 2 years ago

My only issue with KVM/QEMU emulation is that I can't bridge my wifi card. Arch wiki says I need AP feature support for it to work which I don't have. But running the basic.sh with Sudo works perfectly and I'm trying to figure out how it works so I can use it on the virt manager.

I also really appreciate the work put into this project, and how convenient it is to setup. I would really appreciate it if someone can help me with this one issue I have.

My laptop is Asus Rog Strix G15 G513QE-HN019, Ryzen 5800H, 3050Ti, rtl8139.

PerryWerneck commented 2 years ago

It's just a comment but... do you really need wifi support on the virtual machine? I'm not sure if virt-manager emulates a wifi network card.

I'm using here just redirecting the 'host' network connection (who is a wifi connection) to virtual machine and it's working fine. Using NAT now but, in the past I 'bound' the VM ethernet card directly to host's wifi card and it has worked.

LordVicky commented 2 years ago

It's just a comment but... do you really need wifi support on the virtual machine? I'm not sure if virt-manager emulates a wifi network card. I'm using here just redirecting the 'host' network connection (who is a wifi connection) to virtual machine and it's working fine. Using NAT now but, in the past I 'bound' the VM ethernet card directly to host's wifi card and it has worked.

Actually no, I don't need native wifi support, I only want to get the bridge working which after much digging hasn't gotten me anywhere. I have wifi connection on my host PC, when I bridge it to a bridge device like Br0 and connect Virt Manager to Br0, it never works.

I know I'm doing something wrong since I can use the script and get internet access, but not on Virt Manager. This isn't an issue with just MacOS but any VM I run, that's why I want to know how the script is bridging the network so I can do the same.

notAperson535 commented 2 years ago

@LordVicky If it's not only happening with macOS, it might be something wrong with virt-manager. The script emulates the wifi card e1000-82545em