Skip to content

Commit b8fefdb

Browse files
fix: Set mirrored network mode for wsl host to vm networking test in … (#1688)
fix: Set mirrored network mode for wsl host to vm networking test in runners Signed-off-by: Shubhranshu Mahapatra <shubhum@amazon.com>
1 parent e8c54b9 commit b8fefdb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/build-and-test-msi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ jobs:
241241
run: |
242242
Start-Process 'Finch.msi' -ArgumentList '/quiet' -Wait
243243
echo "C:\Program Files\Finch\bin" >> $env:GITHUB_PATH
244+
- name: Configure WSL networking
245+
run: |
246+
# set networking config option to allow for VM/container -> host communication
247+
echo "networkingMode=mirrored`nhostAddressLoopback=true" > C:\Users\Administrator\.wslconfig
244248
- name: Run VM e2e tests
245249
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
246250
with:

.github/workflows/e2e-windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
$env:Path = $newPath
9393
9494
# set networking config option to allow for VM/container -> host communication
95-
echo "[experimental]`nnetworkingMode=mirrored`nhostAddressLoopback=true" > C:\Users\Administrator\.wslconfig
95+
echo "networkingMode=mirrored`nhostAddressLoopback=true" > C:\Users\Administrator\.wslconfig
9696
9797
git status
9898
git clean -f -d

0 commit comments

Comments
 (0)