packer-builder-vsphere icon indicating copy to clipboard operation
packer-builder-vsphere copied to clipboard

Error selecting network when name has spaces

Open smatterchew opened this issue 5 years ago • 1 comments

Packer version 1.4.4 vsphere-iso version 2.3 vSphere version: VMware ESXi, 6.5.0, 13004031 Error: "--> vsphere-iso: error creating vm: Invalid configuration for device '1'." From Packer template: "network": "VLAN3000 - CDN App-Prod",

If I switch to a different host that does not have a space in the network name, I don't get this error.

I tried escaping the string "VLAN3000\ -\ CDN\ App-Prod" and get a parsing error in the template.

I am unable to leave the network selection out because the host has multiple networks.

Has anyone successfully used a network with spaces in the name? Is there a workaround?

Thank you in advance

smatterchew avatar Dec 19 '19 17:12 smatterchew

Please try replacing space with %2f. I was able to resolve my issue with that workaround.

neogen19 avatar Jan 28 '20 04:01 neogen19