Skip to content

Commit 032f538

Browse files
committedOct 15, 2013
Adds separated script for deployng Hyper-V from Linux
1 parent cb1e721 commit 032f538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎create-hyperv-external-vswitch.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ SWITCH_NAME=$4
1313

1414
BASEDIR=$(dirname $0)
1515

16-
$BASEDIR/wsmancmd.py -U https://$MGMT_IP:5986/wsman -u "$HYPERV_USER" -p "$HYPERV_PASSWORD" powershell -Command '"if (!(Get-VMSwitch | where {$_.Name -eq \"'$SWITCH_NAME'\"})) {New-VMSwitch -Name \"'$SWITCH_NAME'\" -AllowManagementOS $false -InterfaceAlias (Get-NetAdapter | where {$_.IfIndex -ne ((Get-NetIPAddress -IPAddress \"'$MGMT_IP'\").InterfaceIndex)}).Name}"'
16+
$BASEDIR/wsmancmd.py -U https://$MGMT_IP:5986/wsman -u "$HYPERV_USER" -p "$HYPERV_PASSWORD" powershell -NonInteractive -Command '"if (!(Get-VMSwitch | where {$_.Name -eq \"'$SWITCH_NAME'\"})) {New-VMSwitch -Name \"'$SWITCH_NAME'\" -AllowManagementOS $false -InterfaceAlias (Get-NetAdapter | where {$_.IfIndex -ne ((Get-NetIPAddress -IPAddress \"'$MGMT_IP'\").InterfaceIndex)}).Name}"'
1717

0 commit comments

Comments
 (0)