In your VM settings choose “Attached to: Host Interface”, as “Interface Name” in the field below enter “vbox0”. If you want to have Internet access in your VM you should also configure a second network interface, pick “Attached to: NAT” there.

VM Setup

Start up your VM, and add the following lines to /etc/network/interfaces: