Skip to content

Commit

Permalink
update VM install doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrevi committed Mar 14, 2024
1 parent a404924 commit bb8f710
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 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 `x64/Debug` or `x64/Release`.
This method uses a machine that has already built the binaries for
the desired build configuration, i.e. `\x64\[Debug|Release|NativeOnlyDebug|NativeOnlyRelease]`.

Copy the build output in `\x64\[Debug|Release]` to the host of the test VM and run the following in a Powershell
command prompt:
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:

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

Expand All @@ -134,20 +134,25 @@ command prompt:
New-StoredCredential -Target TEST_VM -Username <VM Administrator> -Password <VM Administrator account password> -Persist LocalMachine
```

> 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:
> Note that "`TEST_VM`" is literal and is later used to lookup 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.:

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

Expand Down

0 comments on commit bb8f710

Please sign in to comment.