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.
Webserver in Virtual Box
-
baf
- Volunteer
- Posts: 829
- Joined: 27. Sep 2008, 06:18
- Primary OS: Mac OS X Leopard
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: linux,xp,win7
- Location: Luleå or Skellefteå, Sweden
Re: Webserver in Virtual Box
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.
Give the guest two network adaters. One nat so that the guest can reach internet. One "host only" for communication between host and guest.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
My way: "You live as long as you learn".
-
DaGunster
- Posts: 6
- Joined: 20. Jun 2009, 00:23
- Primary OS: MS Windows Vista
- VBox Version: OSE Debian
- Guest OSses: Ubuntu Server 9
Re: Webserver in Virtual Box
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?
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?
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Webserver in Virtual Box
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.
Keep in mind that these are actually two separate computers in one box and all will come together for you.
-
DaGunster
- Posts: 6
- Joined: 20. Jun 2009, 00:23
- Primary OS: MS Windows Vista
- VBox Version: OSE Debian
- Guest OSses: Ubuntu Server 9
Re: Webserver in Virtual Box
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!
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!
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Webserver in Virtual Box
It happens 