Skip to content

Commit dc5e08c

Browse files
docs: Add dev setup instructions for Apple silicon Macs
Signed-off-by: Michi Mutsuzaki <[email protected]>
1 parent 85686f2 commit dc5e08c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/content/en/docs/contribution-guide/development-setup.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,28 @@ If you are getting an error, you can try to run `sudo launchctl load
130130
/Library/LaunchDaemons/org.virtualbox.startup.plist` (from [a Stackoverflow
131131
answer](https://stackoverflow.com/questions/18149546/macos-vagrant-up-failed-dev-vboxnetctl-no-such-file-or-directory)).
132132

133+
## Local Development with Apple Silicon Mac
134+
135+
Use [Lima](https://lima-vm.io/) to create a Linux VM if you are using a Mac with
136+
Apple silicon. For example:
137+
138+
```shell
139+
brew install lima
140+
limactl create --tty=false --name=tetragon \
141+
--set='.vmType = "vz" | .nestedVirtualization = true | .mounts[] |= (select(.location == "~") | .writable = true)'
142+
limactl start tetragon
143+
limactl shell tetragon
144+
sudo add-apt-repository -y ppa:longsleep/golang-backports
145+
sudo apt update
146+
sudo apt install -y golang-1.23 libelf-dev libcap-dev make
147+
export CONTAINER_ENGINE=nerdctl
148+
export PATH=$PATH:/usr/lib/go-1.23/bin
149+
make tetragon-bpf tetragon tetra
150+
```
151+
152+
Note that this installs Golang 1.23. You may want to install a newer version
153+
if it's available in https://launchpad.net/~longsleep/+archive/ubuntu/golang-backports.
154+
133155
## What's next
134156

135157
- See how to [make your first changes](/docs/contribution-guide/making-changes).

0 commit comments

Comments
 (0)