Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed alpinehv.json on Windows (Powershell) #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simmessa
Copy link

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.

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.
@zioalex
Copy link

zioalex commented Apr 20, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants