I've just started using VirtualBox on my freshly installed Debian PC to do my Virtual Machines, as the kernel support from VMware was just not up to date with my recent kernel. If I wait a few weeks, it'll probably be there, but the ship has sailed for me.
VirtualBox is a nice qt styled Virtual Machine Server, being free and open source. It's nice and simple to set up a new machine, and can cope with a variety of hosts and guest Operating Systems.
However, one drawback was the networking support. In vmware-server - I could just tick a box and it'd bridge over my host computer's network card to make it appear like it was on the same network as all the other machines. With VirtualBox it isn't quite so simple.
Run the command:
echo 1 >> /proc/sys/net/ipv4/ip_forward
If you're running Debian/Ubuntu add the following to /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
iface lo inet loopback
# setting up the bridge #######
iface eth0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
iface br0 inet dhcp
# End setting up the bridge ###
I commented out (rather than deleted) my current setup, so that it's easy to go back to if you move away from VirtualBox
That will set your PC up to have a bridged network for eth0.
You then need to give VirtualBox an interface to connect to:
sudo VBoxAddIF vbox0 <user> br0
VBoxManage modifyvm "My VM" -hostifdev1 vbox0
In you VirtualBox Machine settings, make sure the VM is powered off and selected.
Click on the 'details' tab.
Click on 'network.'
Make sure the network adapter is enabled.
Select the 'attached to: HOST INTERFACT'option in the top box, and enter vbox0 as the Host Interface Name in the bottom box.
Click 'OK' - and restart the computer to allow the bridge settings to take effect.
You should have the desired setup now :) Enjoy!