Provision Wedge

This document describes the installation of OS, Network Agent, and Docker runtime on the Wedge switch.

Prerequisites

We assume that the Wedge is connected via the BMC ethernet port, that the BMC got an IP assigned, and you have access via ssh to the BMC.

SnapRoute / ONL

Install ONIE

ONIE, the Open Network Install Environment is a bare metal installation environment. It provides an easy way to install a network operating system on a whitebox switch like the Wedge.

To install ONIE please follow the steps as outlined on the ONL site. But only install ONIE, refer to the next section for the install of ONL.

Install ONL

1) SSH in to the BMC of your Wedge.

2) Reset the micro-server and enter the “ONIE interactive mode”

root@bmc:~# wedge_power.sh reset
root@bmc:~# sol.sh

Wait for the GNU Grub screen show up.

Select ONIE and select ONIE Rescue

3) Install ONL

ONIE:/ # install_url http://opennetlinux.org/binaries/old-wedge-2.0.installer

After the installation the micro-server will reboot in to ONL. Btw, to see some “completion wait timed out” warnings is normal.

Configure ONL

Log in to the micro server with user root and password onl.

1) Change root password

root@localhost:~# passwd

2) Setup hostname

Edit /etc/hostname and change it to wedge

Edit /etc/hosts. Add wedge after localhost and add your compute nodes according to your setup.

127.0.0.1 localhost wedge
10.250.3.21 bladerunner1 bladerunner1.homer.ave
10.250.3.22 bladerunner2 bladerunner2.homer.ave
10.250.3.23 bladerunner3 bladerunner3.homer.ave
10.250.3.24 bladerunner4 bladerunner4.homer.ave

3) Set up management network

We will configure the network of the micro-server with a static address (10.250.1.111), according our setup.

Edit /mnt/flash/boot-config

NETDEV=ma1
NETAUTO=
NETIP=10.250.1.111
NETMASK=255.255.255.0
NETGW=10.250.1.1
BOOTMODE=installed
SWI=dir:/mnt/flash2/ONL

Edit /etc/resolvconf/resolv.conf.d/tail to add your global DNS server, example: nameserver 64.6.64.6

4) Reboot micro server

Press ctrl-x to get back to the BMC console, and reset the micro server.

root@bmc:~# wedge_power.sh reset
root@bmc:~# sol.sh

5) Add mqueue support for Performance Co-Pilot

root@wedge:~# mkdir /dev/mqueue
root@wedge:~# mount -t mqueue none /dev/mqueue

6) Enable SSH for remote access to micro server

Edit /etc/ssh/sshd_config and set PermitRootLogin to yes and restart ssh.

root@wedge:~# /etc/init.d/ssh restart

Install Docker

root@wedge:~# apt-get update
root@wedge:~# apt-get install docker-engine

Verify that Docker is running

root@wedge:~# docker info

Install SnapRoute

root@wedge:~# wget -P /tmp https://github.com/SnapRoutePackages/bin-BCMPlatforms/raw/master/accton_wedge40/kernel_3.18.25/flexswitch_accton_wedge40-release_1.0.0.171.44_amd64.deb
root@wedge:~# dpkg -i /tmp/flexswitch_accton_wedge40-release_1.0.0.171.44_amd64.deb

There will be errors about missing dependencies, following command will fix this.

root@wedge:~# apt-get -f install

That’s it, next: Configure SnapRoute.