I'm using windows 7 64 bit and installed the latest virtualbox (4.2.16). I then create a host-only adapter by going to File > Preferences > Network > + . Then I go and edit it to make sure everything is correct. The ipv4 address set is 192.168.145.1 (I know by default some people get 192.168.56.1 but since virtualbox gave me that I'm not changing anything) and the subnet is 255.255.255.0. DHCP is also disabled and I believe these configuration is enough to use host-only networking with static ip for host and guests. Then I create a new VM and added the host-only adapter as its main network interface. Go through the setup of windows server 2008 r2 sp1 and finally when everything is done, I configure the ipv4 address of the server to be 192.168.145.2, subnet 255.255.255.0, and empty DNS.
Finally when its time to test if both host and guest can communicate with each other, I 'cmd > ipconfig /all' both host and verified that the ip configuration I put earlier is just like what I wanted. I ping the HOST FROM GUEST, and it worked. But when I ping the GUEST FROM HOST it doesn't work and always request timed out. Any idea what did I miss? I believe this is as simple as it get as I don't want the guest to have internet access.
Some extra info:
- Both host and guest are showing 'Unidentified Network, Public Network' in the Network and Sharing Center. I chose for it to be that way.
- The host is also connected to the internet via a physical wireless adapter.