[solved] Windows Host+ BSD Guest Network

Discussions related to using VirtualBox on Windows hosts.
Post Reply
scones
Posts: 5
Joined: 23. May 2009, 18:13
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: BSD

[solved] Windows Host+ BSD Guest Network

Post by scones »

Hello,

I'm trying to set up a web server in my BSD guest and to use it by the Windows XP host.
But whatever approach i take, it fails.
I'd be happy for any advice.

My systems setup:
Windows XP Home host.
2 network cards (one connected to the internet through a cable modem. No PPPoE, but DHCP leases, the other has no connection whatsoever even no cable attached).
So i have no local network running, but want to emulate one.

Thanks in advance

PS:
VirtualBox 2.2.2 for Windows XP
FreeBSD 7.2
Last edited by scones on 23. May 2009, 21:03, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Windows Host+ BSD Guest Network

Post by Perryg »

Setup the guest for host only in the VBox network settings.
scones
Posts: 5
Joined: 23. May 2009, 18:13
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: BSD

Re: Windows Host+ BSD Guest Network

Post by scones »

Did that, neither with the VirtualBox DHCP-Server nor without i am able to send a icmp packet through.
Network timeouts on both sides.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Windows Host+ BSD Guest Network

Post by Perryg »

Read chapter 6.7. Host-only networking of the VBox users guide for information on how to setup and use Host only.
scones
Posts: 5
Joined: 23. May 2009, 18:13
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: BSD

Re: Windows Host+ BSD Guest Network

Post by scones »

I have no problem to set it up.
I have a problem in using it.

And chapter 6.7 in the user manual is explicitly about setup.

In a normal Network configuration case, it should work from the point, were both machines are set, in this case it seems like those machines would not be connected, that's why i ask in here.

And i read more than 3 guides on how to set up a network, although most of them still used the term "host interface" instead of "bridged networking".
In other words: I've done my homework and i experimented with the interfaces on my own.

The only setup that worked in some ways was NAT, since it enabled Internet access for the guest, but no intranet.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Windows Host+ BSD Guest Network

Post by Perryg »

Sometimes there is more to setup then meets the eye.
If you are using host only they need to be in the same address scheme. While DHCP is the preferred method it may not work correctly and you may need to either set the address in the guest manually or reconfigure the DHCP server to be in the right scheme. (This is all there in the UG, but I will admit it is a poorly written).
NAT will work to a point but you would then need to setup port forwarding to get the machines to talk to each other. Bridged is by far the best choice but you said that you only have a modem connected to the host (no router), so that will not work correctly either.
You need to look at the host and the guest IP address, subnet mask, Gateway, and DNS to determine if they are setup properly or what the problem really is.

Post this information here and I will see if I can help you.
scones
Posts: 5
Joined: 23. May 2009, 18:13
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: BSD

Re: Windows Host+ BSD Guest Network

Post by scones »

In my DHCP-free setup (host-only) i set the Host to 192.168.2.2 subnet 255.255.255.0 and the BSD to 192.168.2.1 subnet 255.255.255.0, which should work.
But it did not.

No Gateway set for both, not DNS, since both are not needed in a network.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Windows Host+ BSD Guest Network

Post by Perryg »

If this has never worked for you it is possible that the drivers (VBox) did not install properly. You can try to reinstall VBox by right clicking the install icon and then left click on run as ... Admin. Reboot when it is finished to make sure that all drivers have loaded. Le me know how this goes. Also make sure that there are no firewall issues on the host or guest.
scones
Posts: 5
Joined: 23. May 2009, 18:13
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: BSD

Re: Windows Host+ BSD Guest Network

Post by scones »

Back again.

I reinstalled with no new result.
After that i read through the FBSD docs and disabled it's firewall (for the rare case it was implicitly turned on) and i turned my application Layer Firewall off.

Then it worked. The only thing i can say for sure: The application layer firewall on my host did block. I switched it between allow all and normal and it did not/did block respectively.
After adding another advanced rule it passes the traffic, but it never adked wether to allow or block any traffic, which is wierd.

Anyways, it works now.
Thank you PerryG for your time.
Post Reply