Skip to content

Commit 49745a7

Browse files
authored
Document how to build for different architectures (#4696)
Add documentation to README.md about how to package Elastic-Agent for different architectures.
1 parent 6e4526c commit 49745a7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,22 @@ sudo elastic-agent install
7878

7979
For basic use the agent binary can be run directly, with the `sudo elastic-agent run` command.
8080

81+
#### Packaging for other architectures
82+
When packaging for an architecture different than the host machine,
83+
you might face the following error:
84+
```
85+
exec /crossbuild: exec format error
86+
```
87+
88+
If that happens, enable
89+
[`multiarch/qemu-user-static`](https://github.com/multiarch/qemu-user-static)
90+
is to enable an execution of different multi-architecture containers
91+
by QEMU and binfmt_misc:
92+
93+
```
94+
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
95+
```
96+
8197
### Docker
8298

8399
Running Elastic Agent in a docker container is a common use case. To build the Elastic Agent and create a docker image run the following command:

0 commit comments

Comments
 (0)