Erroring when building 1.3.1

I managed to fix this by changing the Kernel Version (after running the ./configure command) to 5.2.229.

Here’s my full how-to:

grab equueleus (1.3x) branch from github (into v1.3.2 folder)

git clone -b equuleus --single-branch https://github.com/vyos/vyos-build v1.3.2

go into new folder

cd v1.3.2

checkout the 1.3.2 tag

git checkout tags/1.3.2

run git log to verify we are on commit 7ce8651

which, is 1.3.2 as per Tags · vyos/vyos-build · GitHub

build the build environment from source (tag it as ‘v1.3.2’ version)

docker build -t vyos/vyos-build:v1.3.2 docker

enter bash on the newly built image to proceed

make sure you are in v1.3.2 directory (you should be)

docker run --rm -it \
    -v "$(pwd)":/vyos \
    -v "$HOME/.gitconfig":/etc/gitconfig \
    -v "$HOME/.bash_aliases":/home/vyos_bld/.bash_aliases \
    -v "$HOME/.bashrc":/home/vyos_bld/.bashrc \
    -w /vyos --privileged --sysctl net.ipv6.conf.lo.disable_ipv6=0 \
    -e GOSU_UID=$(id -u) -e GOSU_GID=$(id -g) \
    vyos/vyos-build:v1.3.2 bash

now we need to build the correct (v1.3.2) vyos-1x package

cd packages

grab equueleus branch vyos-1x

git clone -b equuleus https://github.com/vyos/vyos-1x
cd vyos-1x/

checkout the 1.3.2 tag (commit #b967813)

git checkout tags/1.3.2

run git log to verify we are on commit b967813

which, is 1.3.2 as per Tags · vyos/vyos-build · GitHub

>> commit b9678136eac767ece3d5a5e53f9f2b9c47c7477a (HEAD, tag: 1.3.2)

build the .deb packages

dpkg-buildpackage -uc -us -tc -b

if process is successful, the required *.deb

packages will be in the packages folder

let’s verify

cd ..
ls *.deb

> vyos-1x_1.3dev0-3882-gbdd77b05_amd64.deb
> vyos-1x-smoketest_1.3dev0-3882-gbdd77b05_all.deb
> vyos-1x-dbgsym_1.3dev0-3882-gbdd77b05_amd64.deb
> vyos-1x-vmware_1.3dev0-3882-gbdd77b05_amd64.deb

go back into our vyos folder for the next step

cd ..

run the configuration command

I like version to be based on the commit

But you could call it LTE 1.3.2 or whatever

./configure --architecture amd64 --build-by "CloudPropeller.com" --build-type "release" --version "equuleus-7ce8651"

### THE KEY NOW IS TO SET KERNEL to 5.4.229 ###
### 5.4.210 does not want to build properly ###

nano build/build-config.json

change

"kernel_version": "5.4.210",

to

"kernel_version": "5.4.229"

save the file w/ CTRL+X (y, ENTER)

BUILD YOUR ISO

sudo make iso

once it is done, your ISO’s can be found in the build directory

ls build/*.iso

you’ll have the following you can grab and use

they are exactly the same, so you can pick either

> build/live-image-amd64.hybrid.iso
> build/vyos-equuleus-7ce8651-amd64.iso
1 Like