Skip to content

Commit

Permalink
exclude doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrevi committed Mar 21, 2024
1 parent 5c521f1 commit 17f3ebc
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions docs/InstallEbpf.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ has already built the binaries for `x64/Debug` or `x64/Release`.

### Method 3 (Install files you built yourself, with a VM checkpoint)

This method uses a machine that has already built the binaries for
the desired build configuration, i.e., `\x64\[Debug|Release|NativeOnlyDebug|NativeOnlyRelease]`.
This method uses a machine that
has already built the binaries for `x64/Debug` or `x64/Release`.

Copy the build output in `\x64\[Debug|Release|NativeOnlyDebug|NativeOnlyRelease]` to the host of the test VM and run the following in a Powershell
command prompt:
Copy the build output in `\x64\[Debug|Release]` to the host of the test VM and run the following in a Powershell
command prompt:

1. Create a snapshot of the test VM named **baseline**, by running:

Expand All @@ -134,37 +134,32 @@ Copy the build output in `\x64\[Debug|Release|NativeOnlyDebug|NativeOnlyRelease]
New-StoredCredential -Target TEST_VM -Username <VM Administrator> -Password <VM Administrator account password> -Persist LocalMachine
```

> Note that "`TEST_VM`" is literal and is later used to look up the actual VM name; it need not be the name of any actual test VM.
1. Enter the desired directory (`cd`) where the build artifacts are stored (i.e., `\x64\[Debug|Release|NativeOnlyDebug|NativeOnlyRelease]`).
1. Modify `test_execution.json` to specify the name of the test VM under the `VMMap` attribute, e.g.:
> Note that "`TEST_VM`" is literal and is used in step 5 below; it need not be the name of any actual test VM.
1. Enter the `\x64\[Debug|Release]` directory (`cd`) where the build artifacts are stored.
1. Modify `.\vm_list.json` to specify the name of the test VM under `VMList`, eg:

```json
{
...
"VMMap":
{
"MY_VM_RUNNERS":
[
{
"Name": "<test-vm-name>"
}
],
...
}
...
"VMList":
[
{
"Name": "<test-vm-name>"
}
]
}
```

1. Run the following commands to setup to use the credentials saved with `TEST_VM` in step 2,
for logging into each of the VMs named in `test_execution.json`:
for logging into each of the VMs named in `vm_list.json`:

```ps
Set-ExecutionPolicy unrestricted -Force
```

```ps
.\setup_ebpf_cicd_tests.ps1 -SelfHostedRunnerName MY_VM_RUNNERS
.\setup_ebpf_cicd_tests.ps1
```

## Installing eBPF with host-process container
Expand Down

0 comments on commit 17f3ebc

Please sign in to comment.