Archive for May, 2008


VirtualBox Interface Host Networking (INF)

By default VirtualBox will set the network adapter using the NAT. This will allow you to connect to the Internet easily. However you will not able to ping and connect to your host machine, simply because it is in different network. This is true in the case where you want to copy a file from the guest machine to your host machine. Unless you setup port forwarding, still the disadvantages is you will not able to set a static IP and many more limitation. The solution is to use Interface Host Networking. I have done this hundreds of time with VirtualBox 1.5 but the new VirtualBox 1.6 is a little different for WindowsXP host and WindowsXP guest.

The scenario is WindowsXP host and WindowsXP guest. The main physical network is my laptop wireless card. In VirtualBox 1.6, The default network hardware is AMD PCNet FAST III. You need to change it to Intel PRO/1000 MT. Before changing, start your guest machine with the NAT setting and download Intel PRO/1000 driver (PRO2KXP.exe) from Intel. Next shutdown the guest then

  1. Change the hardware to Intel PRO/1000 MT in the setting options.
  2. Add a new Interface Host in the setting option for network adapter 0.
  3. Attached this adapter to Interface Host
  4. Select the Interface name that you created on step2.
  5. Click Ok.

This SimpleViewer gallery requires Macromedia Flash. Please open it in your browser or get Macromedia Flash here.
This is a WPSimpleViewerGallery

During step2, a new network interface will be created in your host machine’s network connection. Right click on it and change the IP Protocol settings to the IP settings you wanted your guest machine to be. Make sure it is same network range as your host machine. For example, if your host machine is 192.168.2.10, the guest can be 192.168.2.11. Now we will create a bridge. Pay attention to the select sequnce. Hold the the Control Key and select the wireless network interface and then select again on the newly created network interface. Then right click and select Create Bridge.

If you read the manual, it says Windows will automatically set the wireless physical Ethernet Adapter into promiscuous mode. However test carried out shows that is not true. You can check by issue this command in dos prompt : netsh bridge show adapter. You will see ForceCompatibilityMode is unknown or disabled. With the prevous show command, remembered the physical wireless adapter ID and type this command to enable the promiscuous mode (remember to change the ID ) : netsh bridge set adapter ID forcecompatmode=enable.

Finally, start your guest machine. Upon login the machine will prompt you a new device is detected. Run the downloaded Intel network driver you did in the early stage, follow the wizard step to install the driver and restart your guest machine. Now you will be able to ping your guest machine from your host machine. To transfer the file, you can either map drive or setup Remote Desktop on your guest machine.