pbolduc / packer-hyperv

Hyperv plugin for Packer.io
Other
13 stars 6 forks source link

Do not require switch_name to be configured #13

Closed pbolduc closed 9 years ago

pbolduc commented 9 years ago

There are no standard virtual switch names in Hyper-V. Requiring the configuration to specify a switch name makes templates less portable. If the user has not specified a switch name, attempt to locate a switch that is bound to up network interface.

mukaibot commented 9 years ago

This would be a good enhancement.

pbolduc commented 9 years ago

Next on my to do. Have the powershell already. On Jan 4, 2015 3:40 PM, "Timothy Mukaibo" notifications@github.com wrote:

This would be a good enhancement.

— Reply to this email directly or view it on GitHub https://github.com/pbolduc/packer-hyperv/issues/13#issuecomment-68655118 .

pbolduc commented 9 years ago

Switch will now be configured based on the following rules:

  1. If the switch name is specified and it exists, it will be used.
  2. If the switch name is specified and does not exist, it will be created (internal for now).
  3. If the switch name is not specified, the external virtual switch connected to the fastest online network interface will be used.
  4. If the switch name is not specified and no external virtual switch can be found a temporary switch will be created and removed after installation. Note: it may not be possible to download and install applications.
mukaibot commented 9 years ago

Awesome, can't wait to give this a go :)