Sharing internet connection from host to virtualized Ubuntu with Virtual Box

4

I have Ubuntu 11.10 in Virtual Box installed on Windows Vista. I am having a Broadband(PPPoE) internet connection. I would like to use my internet connection inside Virtual Box in Ubuntu. I tried with NAT but it couldn't connect. Then I tried Bridged Network, but still it is not connecting!!

Where am I going wrong?

Ashutosh Dave

Posted 2012-03-18T18:49:18.460

Reputation: 376

Add a screenshot of bride mode. – SuB – 2016-11-28T11:02:49.573

Did you select the correct adapter? – Dr Kitty – 2012-03-18T19:12:25.187

Select NAT and in Ubuntu, connect to wired network, that should do the trick. – HackToHell – 2012-03-19T04:17:12.273

@TheElectricMuffin yes!! I selected the correct adapter. – Ashutosh Dave – 2012-03-19T07:33:17.177

@HackToHell I selected NAT but its not working!! – Ashutosh Dave – 2012-03-19T07:33:40.517

Although this doesn't help for existing Virtual Boxes, I can recommend Vagrant for any new boxes you might want to create. It's essentially a wrapper for Virtual Box that allows you to easily customise these sorts of things.

– DanielM – 2014-04-23T14:30:52.490

Answers

1

You have to make sure that in the Network tab these two boxes are checked:

enter image description here

Then from inside the virtualized Ubuntu, you must connect to wired network, it should work.
You need to have installed the Guest Additions for this to work properly.

Sekhemty

Posted 2012-03-18T18:49:18.460

Reputation: 6 654

0

Please see this link http://www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/

I hope entering the following information in /etc/network/interfaces file will help

auto eth0<br>
iface eth0 inet dhcp

Eager

Posted 2012-03-18T18:49:18.460

Reputation: 1

0

I use a PFsense router/firewall virtual machine with two adapters, one set to bridged for the WAN and the other set to the Internal (to VirtualBox) network. Then place the Ubuntu VM on the internal network, with the PFSense box set to provide a a IP address via DHCP. This video provides a guide (though it's oriented to setting up a Windows based network): http://pc-addicts.com/how-to-install-pfsense-in-virtualbox/

Davidw

Posted 2012-03-18T18:49:18.460

Reputation: 543

0

Make sure you install the Virtual box Guest Software in Ubuntu. Then use NAT on the Virtualbox. Since your Ubuntu version is older it may not have native support for the network adapter Virtualbox offers.

SynapseAptics

Posted 2012-03-18T18:49:18.460

Reputation: 1