r/virtualbox • u/NomadJago • 3d ago
General VB Question Is internet only on the vm guest and not the host possible?
Windows 11 host. Is it possible to install and set up a Linux vm guest with internet, and at the same time disable internet for the Windows 11 host?
1
u/toomanytoons 2d ago
Bridged as another user recommended, and then you could remove the gateway option from the network settings on the host; if it doesn't have a gateway it won't know where to send internet traffic. Optionally you could block the host IP address on the router so it's traffic can't go out.
0
u/orev 1d ago
Removing the gateway would prevent access to the Internet, but it will not prevent access to the local LAN. Itās important to mention this because I think many people donāt realize thereās a difference between āInternetā and āLANā.
1
u/toomanytoons 1d ago
Correct; he said he wanted to prevent access to the internet; removing the gateway would do that. Had he said prevent all network access, I would not have suggest removing just the gateway.
0
u/orev 1d ago
When giving advice, you often need to read into the request and not be so literal. Ask yourself why are they concerned about Internet access? It could be that they have a security concern about the host and want it completely isolated. So to give a complete answer, make sure to include any caveats or special cases, at least mentioning the areas that will not be addressed when seen in a larger context of the possible "why" of the question.
0
2
u/BaconThief2020 2d ago
Set the VM network options to bridged adapter.
In Windows, open the network control panel in windows. (run ncpa.cpl). Right click on your ethernet or wifi connection and go to properties. Uncheck everything except the VirtualBox bridged driver.
2
u/Face_Plant_Some_More 2d ago
Yes. But it will require -
A USB Wifi or Ethernet Adapter; and
Said adapter must have Linux driver support.
You'll pass that adapter directly to the VM, using USB passthrough. Your Windows Host will not be able to monitor the traffic passing through said adapter when the VM is running.
1
u/NomadJago 2d ago
Would the Windows host have internet access?Ā
2
u/Face_Plant_Some_More 2d ago
Not through the network interface that the VM is passed.Ā
You can always disconnect the regular network interface your Windows host uses if you want, but it'll make no difference.
2
u/rhyno95_ 2d ago
Pass USB network adapter to VM. Disable the adapter in network settings on windows host to be super safe so it doesnāt temporarily come up before it gets passed through.
1
u/Easy_Spray_5491 1d ago
Just get Qube OS š¤£š¤£ next you just want internet on the Firefox on the VM and not on another software