Forum archive
Accessing the Internet From VBox Instance
Good day everyone,
This is a very useful and powerful setup that I like a lot.
I have been using it for a while, to make it work on VirtualBox, it needed to get the IP from DHCP server and it is necessary in this case to use host-only adapter, the machine has it's IP and is accessible from the host system which is Windows 10.
The problem is that the virtual machine cannot access the internet, I tried different scenarios like 2 adaptors, bridged and others, but none has worked to make it work locally and access the internet.
I've been working on this setup for a while, but at certain time, it should access the internet at least for updates.
Anyone can help in this to make it access the internet?
What do I need to change to make it work?
Thanks,
Glad to hear that your finding TurnKey of use! :)
Usually, if you use a bridged connection, it should get an IP via your LAN. But on a laptop, that may not be ideal (perhaps you're out and about and not connected to your LAN).
So what you've done (host only) is an easy way to be able to reliably connect to your server. But as you note, you only have incoming access, not outgoing.
What you could do is add another network adaptor (vNIC) and make that one NAT. Then you can continue to use your host only connection for accessing your server, and the server can use the NATed connection to download updates, etc.
OTTOMH, it should "just work" but if it doesn't, let me know and I'll get back to you ASAP.