===Base Debian Install
Login as root then:
apt-get update apt-get upgrade apt-get install sudo /usr/sbin/usermod -a -G sudo username
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 docker pull vyos/vyos-build:sagitta
Note: if you are updating to a new release delete the old images then do the docker pull. To delete the old images
sudo docker system prune
git clone -b sagitta --single-branch https://github.com/vyos/vyos-build
#Note: if you've done this already and are updating to a new release then sudo rm -rf vyos-build
Note, change the version to the 1.4 release you want or to whatever is the current stable release
cd vyos-build sudo docker build -t vyos/vyos-build:sagitta docker sudo docker run --rm -it --privileged -v $(pwd):/vyos -w /vyos vyos/vyos-build:sagitta bash cd vyos-build sudo ./build-vyos-image iso --architecture amd64 --build-type release --version 1.4.0 --build-by "j.randomhacker@vyos.io"
CD into build folder then scp iso file to another host.
cd build scp vyos.iso user@host:~
To save VyOS config first save to system then save to file and scp it or save to sftp directly.
commit save save file scp /config/saved.file user@remotehost:~
or
commit save save sftp://<user>:passwd>@<host>/<file>
or save scp the file from a remote host:
commit save (then from a different host) scp vyosadmin@vyos:/config/saved.file ~
To restore scp file to vyos then load file
scp save.file vyosadmin@vyos:/config/saved.file (then on vyos host) load /config/saved.file commit save
or load a config directly from a remote host
load sftp://<user>:passwd>@<host>/<file> commit save
To load new image:
scp vyos.1.4.iso vyosadmin@vyos:/tmp
then:
add system image /tmp/vyos1.4.iso reboot
or
add system image https://some.remote.host.com/vyos1.4/x64/vyos1.4.iso reboot
Docker seems to eat space. https://forums.docker.com/t/some-way-to-clean-up-identify-contents-of-var-lib-docker-overlay/30604/44
Clean with:
sudo docker system prune -a