Web server inside a VM.

This is for discussing general topics about how to use VirtualBox.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Re: Web server inside a VM.

Post by TerryE »

The other trick is to put an entry into your C:\windows\system32\drivers\etc\hosts file. Something like:
  • 192.168.1.2 tracserver
. OK, you'll need to swap this when you get to work, but at least then you can use the local name in your URIs.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Web server inside a VM.

Post by vbox4me2 »

Yes but that will not work for other outside users, most companies have an internal DNS, thats where you need to get it listed.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Re: Web server inside a VM.

Post by TerryE »

Yup that's why I said local name. Clearly you need the VM registered in a directory service: DNS, WINS or A/D if you want it to be widely available, but the local hosts trick is useful if there are only a couple of you (e.g. in the same office and routing domain) wanting to use the service without getting your corporate Network people involved.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
ravijordan
Posts: 1
Joined: 9. Apr 2014, 17:08

Re: Web server inside a VM.

Post by ravijordan »

I also have the same problem,
my host OS i Windows 8,
and my guest OS is XP,
i have installed Wampserver on XP,
but it's working the rightbelow pink icon of wampserver is not showing.
plz guide me what can i do to run wampserver on VM.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Web server inside a VM.

Post by mpack »

The thread above is ancient and outdated. Please start a new topic, and describe your problem properly.

To avoid confusion by anyone reading this: "host interface networking" was, in 2009, what we now call "Bridged networking". You should not confuse this with what we now call "Host-only networking". In 2009 "Bridged networking" did exist, but referred to an error prone feature provided by the host OS, the use of which we no longer recommend. Also, in 2009 I was a relative VBox noob, so don't treat my speculations of the time as having any merit.
Locked