Build VyOS From Source

Categories: firewall

This is a short post that shows how you can build your own VyOS LTS iso image. I have build mine on Debian Buster (Debian 10)!

1. Install docker

$ sudo apt-get update
$ sudo apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
$ sudo apt-get update
$ sudo apt-get install -y docker-ce

$ sudo usermod -aG docker <Your username>

2. Download and Build iso.

At this time of writing version 1.3.2 is the latest LTS release

1. git clone -b 1.3.2 --single-branch https://github.com/vyos/vyos-build
2. docker run --rm -it --privileged -v $(pwd):/vyos -w /vyos vyos/vyos-build:current bash
3. ./configure --architecture amd64 --build-by "j.randomhacker@vyos.io" --build-type "release" --version "LTS 1.3.2"
4. sudo make iso

More information can be read here