2.0 KiB
VM Installation Instructions
One-Time Setup
-
Enable Hyper-V as follows:
- Type in Hyper-V in the search bar.
- If "Hyper-V Manager" does not show up under Apps:
- Click on "Turn Windows features on or off"
- Check the Hyper-V checkbox and click OK
- Reboot when prompted
-
Install a Windows VM as follows:
- Run "Hyper-V Manager".
- Select the current machine in the left pane.
- Click the "Quick Create..." action in the rightmost pane.
- When the Create Virtual Machine dialog appears, select "Windows 10 dev environment".
- Click the "Create Virtual Machine" button.
- Once that is complete click the "Edit Settings" button.
- Select security, clear the "Enable Scure Boot" checkbox, and click OK. (This is a prerequisite for enabling test signed binaries.)
- Click "Connect" and start the VM.
-
From within the VM desktop, enable test signed binaries as follows: (see testsigning for more discussion):
- Start an admin command shell (cmd.exe).
- Do
bcdedit.exe -set TESTSIGNING ON
. - Restart the VM so that the change will be applied.
Installing eBPF into a 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.
-
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
. -
From within the VM, install the binaries as follows:
- Start an admin command shell (cmd.exe).
- Do 'cd C:\temp'.
- Do 'install-ebpf.bat'.