VirtualBox Oracle Linux 7 no internet connection after host connect to VPN

Li Wei
1 min readJun 14, 2021

I spent several days working on this issue. Just want to share the solution here in case anyone with similar configurations has the same issue.

Here is my setup:
Host OS: macOS Big Sur
Guest OS: OL7

  1. Go to VirtualBox preference. Go to Network tab, and click the green “+” button on the right to create a new NatNetwork.
  2. Go to the “Settings” for your VM. Go to Network tab, you only need one adaptor, so go the the adaptor1 tab, “attached to” should be NAT Network. “name” should be the one we created in previous step, “NatNetwork”. No additional settings needed.
  3. Log into your guest OS. First make sure your guest OS is connected by clicking the top right corner of the screen. It should show “wired connected”. If not, click “Connect”.

It works for me after this. I’ve tried all kinds of solutions (host-only network, bridged adaptor, paravirtualized NAT, etc) and none worked.

Hope this helps!

--

--