Vagrant: VirtualBox: Headless Ubuntu: How to set up bridged networking?

Posted by Jay Godse on Ask Ubuntu See other posts from Ask Ubuntu or by Jay Godse
Published on 2012-12-07T22:19:13Z Indexed on 2012/12/07 23:43 UTC
Read the original article Hit count: 518

I am trying to set up a Vagrant VirtualBox (v4.2.4) virtual machine with a Ubuntu "box" which I got from www.vagrantbox.es.

I was able to use Vagrant to set it up as a headless box and start it, and then I was able to ssh locally into it (using 127.0.0.1:2222), connect the internet and sun a bunch of "sudo apt-get" commands to update it and install new software.

I would like to be able to access this virtual machine on my network, so I need a bridged network adapter for the virtual box. When I went to the VirtualBox console for this device, and tried to set up bridged networking, it said that I needed the "guest additions". I tried to install them and I couldn't get the .iso file for the guest additions.

I went elsewhere on the 'net and it seems that I had to run "sudo apt-get install virtualbox-guest-additions-iso" from the virtual machine in order to get bridged networking. I tried this, and it installed fine after a couple of reboots. I then tried to set up bridged networking again (VirtualBox console to Devices->Network Adaptors...) but it didn't work.

What, or what else do I need to do to set up bridged networking in this virtual machine?

I appreciate any help that I can get.

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about virtualbox-networking