packer-alpine-azure
packer-alpine-azure copied to clipboard
Fixed alpinehv.json on Windows (Powershell)
I realized this didn't run on Windows 10 (build 17134.590), and the issue was related to launching a command without double quotes:
==> hyperv-iso: + ... yStartupBytes 1073741824 -VHDPath $vhdPath -SwitchName Default Switch
should have been:
==> hyperv-iso: + ... yStartupBytes 1073741824 -VHDPath $vhdPath -SwitchName "Default Switch"
So I modified the json from:
"switch_name": "Default Switch",
to: "switch_name": ""Default Switch"",
haven't tested this on linux though.
Umh, to me the original version works out-of-the-box. I am using Windows10 Pro Version 2004 (build 19041.928)