Much help from here: http://serverfault.com/questions/225155/virtualbox-how-to-set-up-networking-so-both-host-and-guest-can-access-internet
- Set up your VM guest with 2 network cards: * First card set to NAT: this will connect the VM to the internet * Second card set to Host-only: this will connect the VM to the host
- Set the IPv4 address of the host-only network to
192.168.56.1and its network mask to255.255.255.0 - Boot up the VM and set the second network card to a static IP address:
* IP address:
192.168.56.56* Subnet mask:255.255.255.0* Default gateway:192.168.56.1* Set the DNS servers to whatever the host is using - From the
Control Panel, selectWindows Firewalland thenAdvanced Settings. In the Windows Firewall with Advanced Securitywindow: * In the left column, selectInbound Rules* In the right column, selectNew Rule...* In theNew Inbound Rule Wizard` window:- Select the
Customradio button. ClickNext. - Leave the default
All programsradio button. ClickNext. - Leave the default
Protocol typeasAny. ClickNext. - Under
Which local IP address does this rule apply to?, selectThese IP addressesand add192.168.56.56. UnderWhich remote IP addresses does this rule apply to?, selectThese IP addressesand add192.168.56.1. ClickNext. - Leave the default
Allow the connectionradio button. ClickNext. - Leave all default
Domain,Private, andPubliccheckboxes checked. ClickNext. - Enter
Allow VM Hostin theNameinput box. ClickFinish.
- Select the
You should now be able to ping your Windows VM at 192.168.56.56.