Giter VIP home page Giter VIP logo

vyos-arm64-builder's People

Contributors

mcbridematt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vyos-arm64-builder's Issues

Change base OS

Hi, if i want to change the docker image from Debian to Ubuntu,what do you think of?

Compile Error

Hi,

I have this problem when I run the build, Can you help me take a look?
My build ENV:
Debian11, arm64 CPU;
I am using the source code of this repository:
$ git clone -b current --single-branch https://github.com/vyos/vyos-build

Follow is the error:

gcc -g -Wall -I../include/ -c -o common_user_bpf_xdp.o common_user_bpf_xdp.c
common_user_bpf_xdp.c: In function ‘load_bpf_and_xdp_attach’:
common_user_bpf_xdp.c:277:2: warning: ‘bpf_program__title’ is deprecated: BPF program title is confusing term; please use bpf_program__section_name() instead [-Wdeprecated-declarations]
  277 |  strncpy(cfg->progsec, bpf_program__title(bpf_prog, false), sizeof(cfg->progsec));
      |  ^~~~~~~
In file included from common_user_bpf_xdp.c:1:
/usr/include/bpf/libbpf.h:203:13: note: declared here
  203 | const char *bpf_program__title(const struct bpf_program *prog, bool needs_copy);
      |             ^~~~~~~~~~~~~~~~~~
gcc -g -Wall -I../include/ -c -o common_libbpf.o common_libbpf.c
make[4]: Leaving directory '/tmp/vyos-build-arm64/build/vyos-1x/src/xdp/common'
cc -Wall  -Wl,-z,relro -o xdp_prog_user common/common_params.o common/common_user_bpf_xdp.o \
 xdp_prog_user.c -l:libbpf.a -lelf
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/libbpf.a(libbpf.o): undefined reference to symbol 'gzopen64@@ZLIB_1.2.3.3'
/usr/bin/ld: /lib/aarch64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [common/common.mk:89: xdp_prog_user] Error 1
make[3]: Leaving directory '/tmp/vyos-build-arm64/build/vyos-1x/src/xdp'
make[2]: *** [Makefile:69: vyxdp] Error 2
make[2]: Leaving directory '/tmp/vyos-build-arm64/build/vyos-1x'
make[1]: *** [debian/rules:30: override_dh_auto_build] Error 2
make[1]: Leaving directory '/tmp/vyos-build-arm64/build/vyos-1x'
make: *** [debian/rules:19: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2```

Appears to be incompleted qcow2 generated

Hello.

make arm64 stage finishes with NO ERROR and produces vyos*.qcow2 file.
But I think something is missing...

File structure of qcow2 image and latest official ISO differs greatly.
Examinig build log there are some Errors like

E: no such script: chroot_upstart

Reading package lists... Done                                
N: Download is performed unsandboxed as root as file '/root/packages/./InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
W: http://repo.saltstack.com/py3/debian/10/amd64/archive/3002.2/dists/buster/InRelease: No system certificates available. Try installing ca-certificates.
W: http://repo.saltstack.com/py3/debian/10/amd64/archive/3002.2/dists/buster/Release: No system certificates available. Try installing ca-certificates.
E: The repository 'http://repo.saltstack.com/py3/debian/10/amd64/archive/3002.2 buster Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://repo.powerdns.com/debian buster-rec-43 InRelease' doesn't support architecture 'arm64'
 
err:12 https://repo.saltproject.io/py3/debian/10/amd64/archive/3002.2 buster Release                           
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 18.66.122.110 443]

Any Idea how to fix that?

Unable to build from Debian

Hi,

I have tried to build VyOS using this repo and Debian 12 (Parallels VM running Debian 12 on a Macbook M2).

It stopped with the following error:

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: chrony 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

Any idea ?

Thanks, Damien.

Base OS architecture

Hi, Matt

Whether the base OS needs to use x86 or arm64?
Can you provide the compiled arm64 vyos qcow2 download

Best wishes

Invalid signatures (EXPKEYSIG) for PowerDNS Release Signing Key

Created an ARM buildbox on Azure as its quicker then my local device I need the image for. While it does compile to a degree, about an hour later, it will exit with the following.

Get:33 http://deb.debian.org/debian buster/main arm64 Packages [7737 kB]
Get:34 http://deb.debian.org/debian buster/main Translation-en [5969 kB]
Get:35 http://deb.debian.org/debian buster/non-free arm64 Packages [53.9 kB]
Get:36 http://deb.debian.org/debian buster/non-free Translation-en [88.9 kB]
Err:6 http://repo.powerdns.com/debian bullseye-rec-48 InRelease
  The following signatures were invalid: EXPKEYSIG 1B0C6205FD380FBB PowerDNS Release Signing Key <[email protected]>
Get:37 http://deb.debian.org/debian buster-updates/main arm64 Packages [8780 B]
Get:38 http://deb.debian.org/debian buster-updates/main Translation-en [6915 B]
Get:39 http://security.debian.org/debian-security buster/updates/main arm64 Packages [532 kB]
Get:40 http://security.debian.org/debian-security buster/updates/main Translation-en [294 kB]
Get:41 http://security.debian.org/debian-security buster/updates/non-free arm64 Packages [3812 B]
Get:42 http://security.debian.org/debian-security buster/updates/non-free Translation-en [23.7 kB]
Get:43 https://repo.saltproject.io/py3/debian/11/amd64/3004 bullseye/main amd64 Packages [2917 B]
Reading package lists... Done
W: GPG error: http://repo.powerdns.com/debian bullseye-rec-48 InRelease: The following signatures were invalid: EXPKEYSIG 1B0C6205FD380FBB PowerDNS Release Signing Key <[email protected]>
E: The repository 'http://repo.powerdns.com/debian bullseye-rec-48 InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: An unexpected failure occurred, exiting...
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists... Done
Building dependency tree... Done
d15c8ce60cac15ad3b0c712ace2987591202d4c3d52e6b73cc4cdb4c1505ee8d
d15c8ce60cac15ad3b0c712ace2987591202d4c3d52e6b73cc4cdb4c1505ee8d

It seems that the pgp keys has expired for powerdns.

I have tried a simple hack to see if I could just trust it for now, so that the build would complete but sadly that failed. I wonder if anyone has an idea how can either inject the proper new key or bypass it for now.

Its possible, the changes I need to do elsewhere, still hunting for a solution but if anyone got any pointers, please let me know, thanks.

# ./vyos-build/data/defaults.toml
build_type = "development"

architecture = "amd64"

debian_distribution = "bullseye"

debian_mirror = "http://deb.debian.org/debian"
debian_security_mirror = "http://deb.debian.org/debian-security"

vyos_mirror = "http://dev.packages.vyos.net/repositories/current"

vyos_branch = "current"
release_train = "current"

kernel_version = "5.15.77"

additional_repositories = [
  "deb [trusted=yes] https://repo.saltproject.io/py3/debian/11/amd64/3004 bullseye main",
  "deb [trusted=yes] http://repo.powerdns.com/debian bullseye-rec-48 main"
]

website_url = "https://vyos.io"
support_url = "https://support.vyos.io"
bugtracker_url = "https://phabricator.vyos.net"

live_bootloader = "syslinux,grub-efi"

Update 1) may of found the key https://github.com/mcbridematt/vyos-build/blob/3092a56127865d8b00f432a57354dc5a4ffaedd3/data/live-build-config/archives/pdns.key.chroot will update this and see what happens. Will post the solution if this works, else please let me know how it should be done, thanks.

Update 2) that didnt seem to work. Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.