Page 1 of 1

Webserver in Virtual Box

Posted: 20. Jun 2009, 00:29
by DaGunster
Good Day,

The machine is a dual core Compaq with 3gb RAM with -1- Netgear wireless adapter.
The host OS is Microsoft Vista Home Premium.
The guest OS is Ubuntu Server 9.04.
I have a Linksys Router - home network setup here with 3 PC's - using DHCP

Everything installed perfectly and I can surf with Firefox in Vista and Ubuntu at the same time.

I have Apache installed on Ubuntu server.

On the Ubuntu virtual machine, I can browse 'localhost' and I get the Apache Web Server front page. No problem.

====================
Here is the problem...

When I go to Vista, I do *NOT* see the 'localhost' - the front page of the web server in the Ubuntu Server Virtual Machine.

====================
Question...

How do I get the Ubuntu Virtual Server to serve web-pages that the host can see?

Much thanks.

Re: Webserver in Virtual Box

Posted: 20. Jun 2009, 00:34
by baf
If you only want the host to see the guest and not the rest of your network.
Give the guest two network adaters. One nat so that the guest can reach internet. One "host only" for communication between host and guest.

Re: Webserver in Virtual Box

Posted: 20. Jun 2009, 00:41
by DaGunster
Thanks for replying.

It would be nice for others in the intranet to be able to see the web server in the virtual machine.

So, two adapters are a requirement?

Re: Webserver in Virtual Box

Posted: 20. Jun 2009, 00:43
by Perryg
Simple way to do this is use Bridged and only one adapter.
Keep in mind that these are actually two separate computers in one box and all will come together for you.

Re: Webserver in Virtual Box

Posted: 21. Jun 2009, 03:31
by DaGunster
Well, I managed to complicate a simple thing.

Did the whole install and setup of the VM and Ubuntu on my notebook and it worked.

Went back to the desktop - zapped it all - started over and it worked.

Bridge to the wireless adapter - was the trick.

For some reason - it didn't see the wireless adapter - but when I zapped and started over - there it was.

Thanks - off to productive work now!

Re: Webserver in Virtual Box

Posted: 21. Jun 2009, 03:46
by Perryg
It happens :wink: