I use Ubuntu on VB on my Windows7 machine as web server for my PHP/Ruby progects. I set networking in VB setting to 'bridge' so now I can access my VB server by something like 192.168.2.26 - it is generated by DHCP every time so it is not static. Is it possible to make it static or get VirtualBox IP in Windows so I could set 'virtualbox' in hosts in Windows and go in browser to 'virtualbox' adress as I can go 'localhost'?
On your Ubuntu guest edit
change it to be similar to this
using parameters that make sense in your network. Restart networking with
On ubuntu guest set the static ip-address by editing the file /etc/network/interfaces
And also, place the ip-address of windows machine in resolv.conf.
resolv.conf file typically contains directives with the IP addresses of nameservers available to a host.
And restart the network service.