views:

51

answers:

3

I am trying to run a virtual LAMP machine on my windows 7 for dev purposes. But i cant figure out how to reach the apache from the host windows 7 system. I did an ifconfig and tried the ipaddress, but to no avail.

+1  A: 

You will need to set the networking mode of your VM in virtualbox.

  • Bridged will allow others on the LAN to access your VM.
  • Host-Only will allow your host and any other VM's also configured as host-only to access one another.
Kevin Thiart
Another option is to keep the networking mode on NAT, but to do port forwarding as described in the VirtualBox user manual.
Kevin Thiart
+2  A: 

If you set virtualbox to use bridged (regular) networking then it's no different from any other machine on the LAN, if you set host only then you can still call it - you just need to know it's IP address.

See http://opensourceexperiments.wordpress.com/2008/04/18/virtualbox-case-study-making-host-only-networking-work-between-two-ubuntu-guest-os-virtual-machine-on-windows-vista-host/

Martin Beckett
A: 
Jonathan Czitkovics