Accessing apache in ubuntu 10 virtualbox guest from ubuntu 10 host

Posted by Francis L on Server Fault See other posts from Server Fault or by Francis L
Published on 2010-07-08T04:34:51Z Indexed on 2010/12/27 3:55 UTC
Read the original article Hit count: 540

I did the following:

  1. installed VirtualBox 3.1.6 OSE in ubuntu 10 desktop.
  2. installed ubuntu 10 server on a virtual machine in VirtualBox.
  3. select "LAMP server" and "OpenSSH server" options during the ubuntu server installation.
  4. leave network "adapter 1" of virtual machine as "NAT".
  5. use "VBoxManage" described in manual to setup port forwarding on the host (Protocol: TCP, GuestPort: 80, HostPort: 8080).
  6. verify "ExtraDataItem" have been added to "ubuntuServer1.xml" (my virtual machine name) correctly.
  7. run command "pgrep apache" in ubuntu server in virtual machine to ensure apache is running.

Everything went well. But, when I try to access the apache from the browser on the host with "http://localhost:8080/", it just continue fetching with no response.

Now, I'm struck! Please help!

Many many thanks in advance!

© Server Fault or respective owner

Related posts about networking

Related posts about virtualization