Page 1 of 1

Reaching a BSD Host from XP Guest via Virtual NetworkAdapter

Posted: 30. Sep 2009, 12:35
by quakerdoomer
I am running VirtualBox on FreeBSD 8.0-RC1 host and have installed fresh Windows XP SP3 as guest.

My BSD Host gets a DHCP assigned IP address (192.168.2.x). The guest XP gets (10.0.x.y)
The guest(XP) can ping/access the host(BSD) and its services but the reverse isn't happening.

ifconfig on HOST (BSD) shows up loopback (lo) and ethernet(bfe0)
Should I be seeing an extra interface for VirtualBox as well ?

I don't want the guest to be visible to anyone other than my BSD Host.
Can anyone explain me how do I achieve this ?

Under the preferences Options I tried to enable networking. On clicking add device, I got an error stating :
==VBoxNetCtl (some_binary_not_the_exact_name)==

Code: Select all

Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
HostNetworkInterface
Interface: 
IHostNetworkInterface {ce6fae58-7642-4102-b5db-c9005c2320a8}

Re: Reaching a BSD Host from XP Guest via Virtual NetworkAdapter

Posted: 3. Oct 2009, 03:53
by Perryg
It sounds like you have the guest set to NAT and the you need to switch to Bridged mode.

Re: Reaching a BSD Host from XP Guest via Virtual NetworkAdapter

Posted: 3. Oct 2009, 19:11
by quakerdoomer
And how exactly do I change it from NAT to Bridged Mode. Can someone please elaborate more.
My guest is XP and host is FreeBSD

Re: Reaching a BSD Host from XP Guest via Virtual NetworkAdapter

Posted: 3. Oct 2009, 19:27
by Perryg
After re-reading it appears that you just need to add another adapter and set it to host-only. Then the host and the guest can talk.
You do this in the VBox GUI or if you are doing this headless you would use the VBoxManage commands from the host.
See Chapter 8. VBoxManage reference of the users guide for the proper commands.

Re: Reaching a BSD Host from XP Guest via Virtual NetworkAdapter

Posted: 4. Oct 2009, 18:30
by quakerdoomer
According to the Reference Manual this is what is supposed to be done :
To enable bridged networking, all you need to do is to open the Settings dialog of
a virtual machine, go to the “Network” page and select “Bridged network” in the drop
down list for the “Attached to” field.
I tried this and all I get is :
Invalid Settings. No bridged Network adapter is selected
:-(

Re: Reaching a BSD Host from XP Guest via Virtual NetworkAdapter

Posted: 4. Oct 2009, 18:43
by Perryg
I don't want the guest to be visible to anyone other than my BSD Host.
Since this is one of your requirements you need to read my reply just above yours.

Re: Reaching a BSD Host from XP Guest via Virtual NetworkAdapter

Posted: 4. Oct 2009, 18:44
by mgp
please note that if you want to you use bridged mode you'll have to load the vboxnetflt module

Code: Select all

# kldload vboxnetflt