You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/remote-vm-setup.md
+17-11Lines changed: 17 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,33 +1,39 @@
1
-
# Running Scripts on a Remote VM
1
+
# Running CI/CD Scripts on a Remote VM
2
2
3
-
This guide explains how to set up and run eBPF for Windows CI/CD scripts on a remote VM.
3
+
This guide explains how to set up and run eBPF for Windows CI/CD scripts on a remote VM using [WinRM](https://learn.microsoft.com/en-us/windows/win32/winrm/portal).
4
4
5
5
---
6
6
7
-
## 1. Prepare the Remote VM
7
+
## Prepare the Remote VM
8
8
9
9
Set the execution policy and run the setup script as Administrator:
10
10
11
11
```powershell
12
12
Set-ExecutionPolicy Unrestricted -Force
13
13
.\setup_remote_vm.ps1
14
14
```
15
+
Post reboot run `winrm quickconfig` and take a snapshot of the VM.
15
16
16
17
---
17
18
18
-
## 2. Ensure Remote VM is Reachable
19
+
## Start WinRM service on the local host
20
+
```cmd
21
+
sc.exe start winrm
22
+
```
23
+
24
+
## Ensure Remote VM is Reachable
19
25
20
26
On your host machine, verify that the remote VM is reachable and that WinRM is running by executing:
21
27
22
28
```powershell
23
29
Test-WSMan <remote-vm-ip>
24
30
```
25
31
26
-
If this command fails, ensure the VM is powered on, network connectivity is working, and WinRM is enabled. Running `winrm quickconfig` on the remote VM can help identify and fix common WinRM setup issues.
32
+
If this command fails, ensure the VM is powered on, network connectivity is working, and WinRM is enabled.
27
33
28
34
---
29
35
30
-
## 2.1. Add Remote VM to Trusted Hosts
36
+
## Add Remote VM to Trusted Hosts
31
37
32
38
On your host machine, allow connections to the remote VM by adding its IP address to the list of trusted hosts:
0 commit comments