Connecting to a VM's network

Context

Hi guys, I've installed Mojave on my laptop (Acer Aspire E15 E5-573G-590R) and I managed to fix a lot of things, but I couldn't get my WiFi adapter to work, I did some research and I found out that it's not compatible with macOS.

At the moment I'm not going to replace the WiFi adapter so I was looking for some workarounds.

I mainly use my Phone's USB Tethering to use internet, and to download big files I use an Ethernet cable.

I found an old USB WiFi adapter, unfortunately, even downloading it's drivers, I can't get it to work on macOS, so I to use it in a virtual machine (with VMWare Fusion) and it worked.

What I'm trying to do

I'm trying to share the Virtual Machine's internet connection to my host os (macOS)

What I've already tried

I've already set up all the routes in the Virtual Machine (Ubuntu Server) to forward the traffic from the USB WiFi adapter to the virtual ethernet and vice-versa.

The virtual ethernet is set to "private network" and it's not a bridge connection.

The virtual network is called "vmnet1" and the network's IP is 192.168.97.0/24.

Both the Guest (VM) (192.168.97.128) and the Host (macOS) (192.168.97.1) are connected to it and can ping each other.

I tried to change the default gateway of the Mac using this commands (I run these commands with sudo):

- route default delete

- route add default 192.168.97.128

Nothing... Safari "Your Mac is not connected to the internet", I can't ping anything other than my host and the ubuntu server vm.

Can someone help me setting up this routes? I have already spent few hours trying to figure out how to do it :(

submitted by /u/RedMantis00
[link] [comments]