1.5 KiB
Installing eBPF into a Test VM
Follow the VM Installation Instructions for one-time setup of a test VM. Once the one-time setup has been completed, the following steps will install or update the eBPF installation in the VM, from a machine that has already built the binaries for x64/Debug or x64/Release.
Method 1
-
Deploy the binaries to
C:\Temp
in your VM, as follows: a. If you built the binaries from inside the VM, then from your ebpf-for-windows directory in the VM, do.\scripts\deploy-ebpf -l
. Otherwise, b. If you built the binaries on the host machine, then from your ebpf-for-windows directory on the host machine, start an admin Powershell on the host machine and do.\scripts\deploy-ebpf
, or to also copy files needed to run various tests, do.\scripts\deploy-ebpf -t
. -
From within the VM, install the binaries as follows:
- Start an admin command shell (cmd.exe).
- Do 'cd C:\temp'.
- Do 'install-ebpf.bat'.
Method 2
Copy the build output to the host of the test VM and run the following.
Checkpoint-VM -Name <test-vm-name> -CheckpointName baseline
-- Creates a snapshot of the test VM named baseline.- Store the VM administrator credential:
Install-Module CredentialManager -force
New-StoredCredential -Target
TEST_VM
-Username <VM Administrator> -Password <VM Administrator account password> -Persist LocalMachine
- Modify
vm_list.json
to specify the name of the test VM underVMList
. Set-ExecutionPolicy unrestricted -Force
Setup_ebpf_cicd_tests.ps1