When i use docker to build arm64 ISO for the current branch,there are something wrong

1.install Docker

2. Pull image

docker pull vyos/vyos-build:current-arm64

3. create image

git clone -b current --single-branch https://github.com/vyos/vyos-build
cd vyos-build
docker run --rm -it --privileged -v $(pwd):/vyos -w /vyos vyos/vyos-build:current-arm64 bash

start

sudo make clean
sudo ./build-vyos-image --architecture arm64 --build-by "[email protected]" generic --debian-mirror "http://deb.debian.org/debian" --debian-security-mirror "http://security.debian.org/" --vyos-mirror "http://dev.packages.vyos.net/repo" --debug

error fix

apt update
apt install -y python3-cracklib kpartx

but there some new bug show

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package vyos-1x is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package linux-image-6.6.79-vyos
E: Couldn't find any package by glob 'linux-image-6.6.79-vyos'
E: Couldn't find any package by regex 'linux-image-6.6.79-vyos'
E: Package 'vyos-1x' has no installation candidate
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

vyos-1x and linux-image-6.6.79-vyos can not be find
what i do can fix this?

AFAIK vyos-1x is build as part of the regular image building process, you can look up the repo in the build output folder. Either it has no build target for ARM64 and is skipped (without error) somehow, causing the failure later when it gets relevant or the ARM64 build pipeline is having issues and fails (again without error).

The kernel might indeed not be prebuilt for ARM, causing apt to fail the lookup. No idea on how to proceed with that.

Here are some old notes I have using Docker to build VyOS, probably no longer valid:

  1. Build the vyox-1x debian packages (.deb) by entering the vyos-1x folder and execute (while in docker):
cd /vyos/vyos-1x
time dpkg-buildpackage -uc -us -tc -b
  1. Move the .deb files created to vyos-build/packages directory:
mv /vyos/*.deb /vyos/vyos-build/packages/

So I would assume something similar would apply to this thread aswell?

That is build vyos-1x and current linux-image yourself (if it no longer can be fetched from vyos repos) and then move the deb packages into /vyos/vyos-build/packages/ before you continue your build.

Step 6 was to cd into /vyos/vyos-build and then run ./build-vyos-image with proper syntax to make it either do a smoke-test build and run tests or compile the “release” iso-file to be used as install media (or to upgrade an already existing installation).