pbolduc / packer-hyperv

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

How to create two switch_name #14

Open joyce7216 opened 9 years ago

joyce7216 commented 9 years ago

Is it possible to create two switch_name ?

spuder commented 9 years ago

Could you elaborate?

joyce7216 commented 9 years ago

For example, I want to set two switch, one for SWITCH0, the other for SWITCH1. I'm not sure how to do?

The following doesn't work: "builders": [ { "vm_name": "win2012r2-standard", "type": "hyperv-iso", "iso_url": "{{ user iso_url }}", "iso_checksum": "{{ user iso_checksum }}", "iso_checksum_type": "sha1", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_wait_timeout": "10000s", "switch_name": "SWITCH0", "switch_name": "SWITCH1", "product_key": "xxxxx-xxxxx-xxxxx-xxxxx-xxxxx", ] } ]

pbolduc commented 9 years ago

Packer is for creating templates. Normally, you would add multiple switches / NICs in vagrant.