A tool to create ONIE installer image from regular Linux OS image files (ISO, IMG, etc.).
This tool can be used to create a specialized ONIE installer for whitebox switches from regular ISO images of various popular Linux distributions.
./onie_pack.sh [-i installer] os_image
installer - is a script in installers
directory, which will handle OS installation from a regular ISO image when it is launched by ONIE environment on a switch.
Default installer: ubuntu18xx-iso
- Supported versions: 18.04.1, 18.10
- Supported OS images:
- ubuntu-18.04.1-live-server-amd64.iso
- ubuntu-18.10-live-server-amd64.iso
- Default credentials:
- admin/admin
- root/Password1
- Mellanox SN2700
- Mellanox SN2410
- Mellanox SN2100
- Mellanox SN2010
- Clone this repo:
git clone https://github.com/kvadrage/onie-packer
cd onie-packer
- Download ISO file:
wget http://releases.ubuntu.com/18.10/ubuntu-18.10-live-server-amd64.iso
- Pack it into ONIE installer:
./onie_pack.sh ubuntu-18.10-live-server-amd64.iso
- ONIE installer is ready:
onie-installer-x86_64-<date>.bin
- Boot to ONIE Rescue shell
onie-nos-install http://<ip>/onie-installer-x86_64-<date>.bin
- Wait until OS is installed
ssh admin@<switch_ip>
- Pavel Fiskovich (@khannz) - for sharing some ideas about ONIE installer script for Ubuntu