2008-08-14

A much easier way to access Samba share on Linux guest on Windows host

There is a much simpler solution to my earlier's one.

Steps:

  1. Create a VirtualBox's HIF and attach it to the VM.
  2. Set its IP address to, say, 192.168.2.1.
  3. Start the guest OS.
  4. From within the guest OS, give a static address to the HIF, say, 192.168.2.2.
  5. From host OS, make sure you can ping 192.168.2.2
  6. From the guest OS, make sure you can ping 192.168.2.1

This establishes a private network between the host and the guest. The guest is perceived as another node in the network hosting a Samba share.

2 comments:

Dovid said...

what is an HIF ?

YS said...

It's short for Host Interface Network. HIF is a virtual network device on the host OS. It is used only in VirtualBox 1.x. Virtual Box 2.0 and later do not require HIF anymore.

To create a private network in VirtualBox 2.x, simply creates a NAT interface or Host-Only Networking (Virtual Box 2.2 or later).