packer-alpine-azure icon indicating copy to clipboard operation
packer-alpine-azure copied to clipboard

Fixed alpinehv.json on Windows (Powershell)

Open simmessa opened this issue 6 years ago • 1 comments

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.

simmessa avatar Feb 19 '19 10:02 simmessa

Umh, to me the original version works out-of-the-box. I am using Windows10 Pro Version 2004 (build 19041.928)

zioalex avatar Apr 20 '21 15:04 zioalex