GithubHelp home page GithubHelp logo

vyos-pi-builder's Introduction

vyos-pi-builder

Build VyOS 1.4 image on pi4

Quick build instructions:

  • install a 64bit debian/ubuntu (haven't tried using raspbian) on a pi and install docker

  • build the official vyos-build docker container as vyos/vyos-build:current-arm64 This can take an hour++ to complete

    sudo docker build https://github.com/vyos/vyos-build.git#current:docker -t vyos/vyos-build:current-arm64
    
  • Build a Pi image:

    git clone https://github.com/runborg/vyos-pi-builder
    cd vyos-pi-builder
    sudo docker run -it --privileged -v "$(pwd)":/vyos -v /dev:/dev -w /vyos --sysctl net.ipv6.conf.lo.disable_ipv6=0 vyos/vyos-build:current-arm64 sudo bash -x build-image.sh
    

Build VyOS 1.4 image on an x86 linux host using qemu-user-static and docker/podman

  • Prerequisites

    • docker/podman
    • qemu-user-static
  • build the official vyos-build docker container as vyos/vyos-build:current-arm64 This can take an hour++ to complete

    git clone -b current --single-branch https://github.com/vyos/vyos-build
    sudo docker build --platform linux/arm64 vyos-build/docker -v /usr/bin/qemu-aarch64-static:/usr/bin/qemu-aarch64-static -t vyos/vyos-build:current-arm64
    
    

    or with make

    make container
    
  • Build a Pi kernel:

    You must build the kernel the first time and when the kernel is upgraded.

    The required kernel version information by VyOS is here and the provided kernel version information for Raspberry Pi is here.

    If the version of the kernel you need is different from the kernel provided for pi, you will need to prepare the kernel by other means instead of using the command below.

    sudo docker run --rm -it --platform linux/arm64 --privileged -v /usr/bin/qemu-aarch64-static:/usr/bin/qemu-aarch64-static -v "$(shell pwd)":/vyos -v /dev:/dev --sysctl net.ipv6.conf.lo.disable_ipv6=0 localhost/vyos/vyos-build:current-arm64 /bin/bash -c 'cd /vyos; /bin/bash -x build-pi-kernel.sh'
    

    or with make

    make kernel-local
    

    you can also take already built container in docker registry and use that.

    make kernel-registry
    
  • Build a Pi image:

    git clone https://github.com/runborg/vyos-pi-builder
    cd vyos-pi-builder
    sudo docker run --rm -it --platform linux/arm64 --privileged -v /usr/bin/qemu-aarch64-static:/usr/bin/qemu-aarch64-static -v "$(shell pwd)":/vyos -v /dev:/dev --sysctl net.ipv6.conf.lo.disable_ipv6=0 localhost/vyos/vyos-build:current-arm64 /bin/bash -c 'cd /vyos; /bin/bash -x build-image.sh'
    

    or with make

    make iso-local
    

    you can also take already built container in docker registry and use that.

    make iso-registry
    

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.