Hi all,
I’ve built a Docker image (based on ubuntu 22.04) with DOCA 2.7. The container is running on top of a BlueField 2 OS (also Ubuntu 22.04). Currently, I can compile any DOCA sample application, but I cannot run them.
I got the following error:
./doca_flow_hairpin_vnf -a auxiliary:mlx5_core.sf.2,dv_flow_en=2 -a auxiliary:mlx5_core.sf.3,dv_flow_en=2 – -l 60
Illegal instruction (core dumped)
It seems that DOCA is not being compiled to the right architecture. Any thoughts how to solve that?
Running container:
docker run -it --rm --net host --privileged doca /bin/bash
Dockerfile:
FROM ubuntu:22.04
RUN apt-get install -y vim build-essential net-tools iputils-ping tar meson ninja-build wget
RUN apt-get install -y pip python3-pyelftools libnuma-dev libpcap-dev libssl-dev libelf-dev libmnl-dev numactl pciutils
RUN apt-get install -y libibverbs-dev
RUN apt-get install -y cmake
SHELL [“/bin/bash”, “-c”]
ENV LANG C.UTF-8
WORKDIR /tmp
RUN wget https://www.mellanox.com/downloads/DOCA/DOCA_v2.7.0/host/doca-host_2.7.0-209000-24.04-ubuntu2204_arm64.deb
RUN dpkg -i doca-host_2.7.0-209000-24.04-ubuntu2204_arm64.deb
RUN apt-get update
RUN apt-get -y install doca-all
Marcelo.