Welcome to Microsoft Q&A Platform, thanks for posting your query here.
From the details and error shared, the mlnx.log shows a build error (Failed to build mlnx-ofed-kernel DEB).
The NDv2 series supports latest OFED version. Please use “5.6-1.0.3.3” version of MOFED.
There are two Ubuntu HPC 18.04 images
- 18.04 image that supports MOFED LTS version 4.9-3.1.5.0 suitable for CX3-pro cards
- 18.04 image that is suitable for NDv2/ NDv4/ NCv4 and it has MOFED 5.6-1.0.3.3 installed.
Please refer to this link for installation steps. Additionally, you can use Ubuntu HPC 18.04 image directly (microsoft-dsvm:ubuntu-hpc:1804:latest) on an NDv2 SKU.
Hope this helps.
If you need further help on this, tag me in a comment.
If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.