mitchellh/vagrant — Issue #655: Automating bridged networking
Author: ferrylandzaat
Created: 2012-01-19 14:16:40+00:00
State: open

First off, thanks for implementing bridged networking. I've been using this for a while with a workaround in the box I'm using, but now that 0.9 is out, I want to move to the "official" way (because it's cleaner and also, because the old "cheat" no longer works).
However, I have one issue with this, or maybe 2, depending on how you look at it.
When using bridged networking, I get asked during "vagrant up" what device I want to use. Not only is this pointless on my machine, since it only lists one option (i only have 1 network interface), but even worse, this breaks my automated setup with hudson, since it relies on a fully automated process.
I can work around this by simply hacking the ruby source to change line 329 in lib/vagrant/action/vm/network.rb from
choice = nil
to
choice = 1
but ofcourse there is a better solution. I suggest the following enhancements:
1) Don't prompt the user when only 1 network interface is available (giving the user a choice from 1 option is no choice anyway).
2) Allow specifying the network interface in the vagrantfile.