Skip to content

Instantly share code, notes, and snippets.

@deep5050
Created October 10, 2023 19:41
Show Gist options
  • Save deep5050/492387aab3f9f8859a4f6db3954f883b to your computer and use it in GitHub Desktop.
Save deep5050/492387aab3f9f8859a4f6db3954f883b to your computer and use it in GitHub Desktop.
ONIE build guide for KVM

Links

https://www.youtube.com/watch?v=-5onRbZA0QQ

https://github.com/opencomputeproject/onie/blob/master/machine/kvm_x86_64/INSTALL

https://github.com/CumulusNetworks/DUE/

https://opencomputeproject.github.io/onie/developers/building.html

https://gist.github.com/lool/acfa4d74aa5f8dc8cda721536f230b6f

Steps to build ONIE on a debian 10 docker container for KVM

git clone https://github.com/CumulusNetworks/DUE.git

cd DUE

$ sudo vi /etc/docker/daemon.json with content:

{
        "experimental": true
}

systemctl restart docker

./due --create help

./due --create --platform linux/amd64 --name onie-build-debian-10 --prompt ONIE-10 --tag onie --use-template onie --from debian:10 --description "ONIE Build Debian 10"

./due --run

git clone https://github.com/opencomputeproject/onie.git

git config --global user.email "dipankarpal5050@gmail.com"

git config --global user.name "Dipankar Pal"

opencomputeproject/onie#984

make MACHINE=kvm_x86_64 signing-keys-generate
make MACHINE=kvm_x86_64 -j4 shim-self-sign

make -j $(grep -c "^processor" /proc/cpuinfo) MACHINE=kvm_x86_64 all recovery-iso

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment