Reaching a BSD Host from XP Guest via Virtual NetworkAdapter

This is for discussing general topics about how to use VirtualBox.
Post Reply
quakerdoomer
Posts: 3
Joined: 30. Sep 2009, 12:26
Primary OS: FreeBSD
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP

Reaching a BSD Host from XP Guest via Virtual NetworkAdapter

Post 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}
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post by Perryg »

It sounds like you have the guest set to NAT and the you need to switch to Bridged mode.
quakerdoomer
Posts: 3
Joined: 30. Sep 2009, 12:26
Primary OS: FreeBSD
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP

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

Post 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
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post 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.
quakerdoomer
Posts: 3
Joined: 30. Sep 2009, 12:26
Primary OS: FreeBSD
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP

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

Post 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
:-(
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post 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.
mgp
Posts: 5
Joined: 3. Mar 2008, 20:40

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

Post 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
Post Reply