I am trying to set up Ubuntu guest on windows 7 host. I want to host a test website on Ubuntu Apache 2.2 i have installed this and have tested it to see if this works on Ubuntu guest by opening firefox and browsing to localhost.
I am using 3.2.10 virtualbox.
Linux Guest is set up with 1 NIC the address it is assigned is 10.0.2.15. I have used NAT network type.
I have set up virtaulbox ipaddress 192.168.56.1 and turned off DHCP.
I have disabled windows firewall.
I need to use NAT as I only want my host machine to be able to see the webserver on guest Ubuntu.
I have created a NAT Rule using
VBoxManage modifyvm "Ubuntu" --natpf1 "webhosting,tcp,,80,10.0.2.15,80"
I have created a static route
route ADD 10.0.2.15 MASK 255.255.255.255 192.168.56.1
I have added ARP
arp -s 10.0.2.15 08-00-27-00-4c-37 (this is the mac address of virtualbox NIC)
I cant ping from either host to guest or from guest to host.
The guest does get internet access.
When I try and ping guest from host I get
Reply from 192.168.56.1: destination host unreachable
when I try and tracert to 10.0.2.15 it goes directly to my dns server and does not resolve the address locally.
I have used wireshark to view traffic of the virtualbox NIC
2 5.896531 CadmusCo_00:4c:37 Broadcast ARP Who has 10.0.2.15? Tell 192.168.56.1
I then get no page returned
Does anybody have any ideas how I can set up this type of network?
