Accessing Guest OS from Host without internet connection

Discussions about using Linux guests in VirtualBox.
Post Reply
CrypticMartyr
Posts: 2
Joined: 20. May 2013, 01:25

Accessing Guest OS from Host without internet connection

Post by CrypticMartyr »

I have been looking (googling) for a solution for some time now and while I did find a solution to it, it was not how i wanted it.

You see, what I would like to do is, access the server from my Guest OS via localhost or any other means from my Host OS. Without the need to be connected to the internet or a network. I will be travelling a lot in the next few weeks and would like to be able to continue developing my projects while on the road but do not want to install apache/mysql/php on my host. Essentially i want to jail my dev server.

So far I've been able to use NAT and port forward 127.0.0.1 port 8080 to 10.0.2.15 port 80. That works fine and all but I would much rather have it accessed via port 80. That way i can just create faux domains and access them via mydomain.dev instead of mydomain.dev:8080.

If anyone has a solution or a better alternative, please let me know.


And in case anyone is wondering... I did somewhat RTFM and i've spent a month trying to google, without success.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Accessing Guest OS from Host without internet connection

Post by noteirak »

Host-Only mode is the one you're looking for, it provides a virtual NIC to your host and only allow communication with any guest in Host-Only mode on that interface, with its own IP.
See Chapter 6 - Host Only mode in the User Manual for detailed info.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
CrypticMartyr
Posts: 2
Joined: 20. May 2013, 01:25

Re: Accessing Guest OS from Host without internet connection

Post by CrypticMartyr »

Thanks noteirak. That has at least put me in the right direction. I will post back to this thread if i have any issues.
Post Reply