Arm64 ISO build issue

I have been trying to build an arm64 ISO for the current branch. The build fails with:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 vyos-1x : Depends: fuse-overlayfs but it is not going to be installed
           Depends: telegraf (>= 1.20) but it is not installable
           Depends: podman but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
E: An unexpected failure occurred, exiting...
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Traceback (most recent call last):
  File "/vyos/./build-vyos-image", line 621, in <module>
    cmd("lb build 2>&1")
  File "/vyos/scripts/image-build/utils.py", line 84, in cmd
    raise OSError(f"Command '{command}' failed")
OSError: Command 'lb build 2>&1' failed

I have tried to do the build in debian arm64 VMware Fusion VM on M1 Mac, and also tried it on debian x86 PC. Here are the steps that I have taken:

  • sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
  • docker pull vyos/vyos-build:current-arm64
  • git clone -b current --single-branch https://github.com/vyos/vyos-build
  • cd vyos-build/
  • docker run --rm -it --privileged --platform linux/arm64 -v $(pwd):/vyos -w /vyos vyos/vyos-build:current-arm64 bash
  • sudo apt install kpartx -y
  • sudo ./build-vyos-image generic --architecture arm64 --build-by “test”

apt install kpartx is needed as build fails without it. I have tried to install telegraf podman fuse-overlays inside docker prior to ./build-vyos-image but that doesn’t fix the issue.

I tried following this:
https://forum.vyos.io/t/build-iso-error/10640/11 . Thus I have:

  • docker run …
  • sudo apt install kpartx -y
  • wget -q https://repos.influxdata.com/influxdata-archive_compat.key
  • sudo ./build-vyos-image generic --architecture arm64 --build-by “test” --custom-apt-entry ‘deb [arch=arm64] https://repos.influxdata.com/debian bookworm stable’ --custom-apt-key /vyos/influxdata-archive_compat.key

With Influxdata repository the build works on both M1 Mac VMware Fusion arm64 debian VM and on debian x86 PC. The build boots in M1 Mac VMware Fusion VM.

Developers, would you update the docker to include kpartx and to fix vyos-1x dependencies?

There is a bug report T6398

Also needs fuse-overlayfs telegraf podman . That needs to be added to the bug report?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.