| 1 | # Windows Development Setup |
| 2 | |
| 3 | You will need access to a Windows environment to work on ebpf-go for Windows. |
| 4 | This repository contains a script which (mostly) automatically installs a Windows VM. |
| 5 | It then proceeds to install dependencies necessary to compile and install eBPF for Windows. |
| 6 | |
| 7 | ```shell |
| 8 | ./setup.sh path-to-windows.iso |
| 9 | ``` |
| 10 | |
| 11 | Obtain the ISO by choosing "Download Windows 11 Disk Image (ISO)" on the |
| 12 | [download page](https://www.microsoft.com/en-gb/software-download/windows11/) |
| 13 | and then following the instructions. |
| 14 | __Choose "English (United States)" as product language for a fully automated installation.__ |
| 15 | |
| 16 | ## SSH |
| 17 | |
| 18 | The setup script adds a public key from `~/.ssh`, |
| 19 | you should be able to simply ssh into the VM by executing `ssh $IP`. |
| 20 | |
| 21 | ## Requirements |
| 22 | |
| 23 | * Only tested with Windows 11 |
| 24 | * `libvirt` using qemu backend |
| 25 | * `genisoimage` |
| 26 | * `curl` |
| 27 | * `envsubst` |
| 28 | * `fzf` (optional, to select an ssh key) |