BrianMMcClain / nise-bosh-vagrant

Test BOSH releases locally using nise_bosh and Vagrant
7 stars 6 forks source link

Support bridged network interfaces #18

Closed yudai closed 11 years ago

yudai commented 11 years ago

Hi Brian, I adde a new option to nise-bosh-vagrant for bridged interfaces. The option --bridge attaches a bridged interface to the generated VM. It requires the --address option to determine the ip address of the interface. The network mask and default gateway for the interface will be automatically retrieved from the current status of the host.

BrianMMcClain commented 11 years ago

Wow, awesome work on this! If I'm reading the NetworkInterface class correctly, it seems to rely pretty heavily on VirtualBox. I'd like to see some Fusion support in the future as well, but I think that'd be pretty easy to take what you've added here and do the same for Fusion.

Awesome work as always, merged and I'll push up the new version of the gem ASAP

yudai commented 11 years ago

Thanks. Yes, my code depends on VBox. However, if Fusion has a command to detect available interfaces (VBoxManage list bridgedifs), we can replace the command with it for Fusion support. We can at least use ifconfig for that purpose. But as you know, it requires some work to select only brige-able interfaces.

BrianMMcClain commented 11 years ago

Yup exactly. Sadly I don't have a good way to test the fusion provider for vagrant right now, but I think this is already awesome as is, this work needed done anyways :)