ONIE for KVM のビルド

ONIE for KVM のビルド

(host-machine)$ git clone https://github.com/opencomputeproject/onie.git
(host-machine)$ cd onie/contrib/build-env
(host-machine)$ docker build -t debian:build-env .
(host-machine)$ docker run -it --rm -v `git rev-parse --show-toplevel`:/home/build/src --name onie debian:build-env
(container)$ cd /home/build/src/build-config/
(container)$ make -j4 MACHINE=kvm_x86_64 all
(container)$ exit
(host-machine)$ ls `git rev-parse --show-toplevel`/build/images/
kvm_x86_64-r0.initrd   kvm_x86_64-r0.vmlinuz.unsigned          onie-updater-x86_64-kvm_x86_64-r0
kvm_x86_64-r0.vmlinuz  onie-recovery-x86_64-kvm_x86_64-r0.iso

参考

https://opencomputeproject.github.io/onie/developers/building.html https://github.com/opencomputeproject/onie/blob/master/machine/kvm_x86_64/INSTALL