Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant how to set network type so that its attached to bridge adapter on Virtual Box

I am using Vagrant to created Virtual Box images. Can anyone tell me the configuration I can set that the Virtual Box VM Network that attaches the VM to a Bridged Adapter before starting up.

I can set the following configuration in my Vagrantfile, but it sets the Network adapter to NAT not bridged adapter that I need.

config.vm.network :public_network

Thank you

like image 365
Noel King Avatar asked May 29 '13 14:05

Noel King


1 Answers

I had the same issue today, what I have really done using Vagrant 2.2.0, use this directive inside my Vagrantfile:

config.vm.network "public_network", bridge: "wlp3s0: Wi-Fi (Hackathon)"

it is also possible to use:

config.vm.network "public_network"

and Vagrant will ask whether you use WLAN or nic!IF THE

like image 77
Ashkan Kamyab Avatar answered Sep 28 '22 04:09

Ashkan Kamyab