New Question
0

Please confirm the source code on windows-openstack-imaging-tools

asked 2017-05-25 09:39:04 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

In this line of the code https://github.com/cloudbase/windows-... $switchName = 'external' $switch = Get-VMSwitch -Name $SwitchName -ErrorAction SilentlyContinue

the Get-VMSwitch is to get the external switch name , so that it could access the internet for updating but the name is vary in the different computer, I think it should change to $switch = Get-VMSwitch -SwitchType $SwitchName -ErrorAction SilentlyContinue

Am I right ?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2017-05-29 15:08:09 +0300

avladu gravatar image

Hello,

The SwitchName is a parameter in the windows image generation commands, so if you have a different name on your OS, there is no problem, as long as you specify it to the generation command.

Thank you, Adrian Vladu

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-05-25 09:39:04 +0300

Seen: 17 times

Last updated: May 29