SlapOS Tutorial - Installing SlapOS Node (Comp-123) under SONiC

FINAL - Tutorial outlining the steps of installing a SlapOS node under SONiC
  • Last Update:2020-04-15
  • Version:002
  • Language:en

Installing a SlapOS Node under SONiC

This tutorial will guide you through the process of installing a SlapOS node on a computer which has SONiC installed. A regular node (referred to as COMP-1,2,3) is used by the SlapOS Master to install software on the node and then provide instances of this software within computer partitions. For details please refer to the SlapOS introduction.

For this tutorial you will require a SlapOS Master and (first) user account, which can either be your own installed SlapOS Master or a commercial service like Vifib in order to register your node and another computer on which to install the SlapOS node. The tutorial will use an arbitrary GNU/Linux server from a cloud provider (Debian10, available for example from OVHor Online.net) with wget installed.

Note, that there is one node referred to as COMP-0 throughout the documentation, which provides services to SlapOS Master (COMP-ROOT) besides regular nodes like the one we are going to install here (called COMP-1,2,3...).

This tutorial will show how to create a SlapOS node under SONiC using a commercial service like Vifib.

Table Of Content

  • Request a Freefib token
  • Installing Re6st under SONiC

Request a FreeFib token

First of all, you need to request a FreeFib token, in order to isntall your SlapOS node. You can do it byt following these tutorials: creating a user account and then request a FreeFib token.

Installing Re6st under SONiC

sudo su
# yum install wget

(...)

# # ViFiB commercial service:
# wget https://deploy.erp5.net/gnet/re6st && bash re6st

 

ssh into the terminal of your server, switch to root and verfiy wget is available. Then install re6st as shown above. 

The setup should finish without errors:

...

PLAY RECAP *********************************************************************

127.0.0.1 : ok=24 changed=7 unreachable=0 failed=0

Verify Files Created

sudo su

# ls /etc/re6stnet/

ca.crt cert.cert cert.key re6stnet.conf README

Verify that the configuration files were created. You can also call:

echo "default" >> /etc/re6stnet/re6stnet.conf

and make sure the service is started by calling:

/etc/init.d/re6stnet restart

Verify Re6st is Running

sudo su

# service re6stnet status

You can use the above command to see whether Re6st is working. The output should be similar to:

● re6stnet.service - (null)
   Loaded: loaded (/etc/init.d/re6stnet)
   Active: active (running) since Fri 2018-03-09 16:43:23 UTC; 6min ago
   Process: 26395 ExecStop=/etc/init.d/re6stnet stop (code=exited, status=0/SUCC
  ESS)
   Process: 26423 ExecStart=/etc/init.d/re6stnet start (code=exited, status=0/SU
  CCESS)
   CGroup: /system.slice/re6stnet.service
           ├─26431 /opt/re6st/parts/python2.7/bin/python2.7 /usr/sbin/re6stnet@r
  e6stnet.conf
           ├─26437 openvpn --dev-type tap --dev re6stnet-tcp --persist-tun --per
  sist-key --script-security 2 --up /opt/re6st/eggs/re6stnet-0.485-py2.7.egg/re6
  st/ovpn-client --tls-server --mode server --clien...
           ├─26444 babeld -h 15 -H 15 -L /var/log/re6stnet/babeld.log -S /var/li
  b/re6stnet/babeld.state -I /var/run/re6stnet/babeld.pid -s -C ipv6-subtrees tr
  ue -C default max-rtt-penalty 5000 rtt-max 500 rt...
           ├─26537 openvpn --dev-type tap --dev re6stnet1 --persist-tun --persis
  t-key --script-security 2 --up /opt/re6st/eggs/re6stnet-0.485-py2.7.egg/re6st/
  ovpn-client --nobind --client --remote 163.172.45...
           └─26862 openvpn --dev-type tap --dev re6stnet2 --persist-tun --persis
  t-key --script-security 2 --up /opt/re6st/eggs/re6stnet-0.485-py2.7.egg/re6st/
  ovpn-client --nobind --client --remote 52.36.124....

  Mar 09 16:43:23 slapostest2 systemd[1]: Started (null).

After this step Re6st is installed and the machine is accessible over IPv6.

 

Thank You

Image Nexedi Office
  • Nexedi GmbH
  • 147 Rue du Ballon
  • 59110 La Madeleine
  • France