The following steps will guide you through the installation of re6st and SlapOS.
By default, the switch has only 2GB of disk in / which is too few for SlapOS. We thus need to create a new lvm entry in which we will put the /tmp, /opt and /srv of the switch. We will also increase the space for / up to the maximum to have enough space for logs:
apt install lvm2
lvcreate -n SLAPOS -L 20G ACCTON
lvextend -l +100%FREE /dev/ACCTON/sysroot1
Then you need to find the uuid of your new mount and change fstab file in order to make your changes persistent after rebooting the switch.
UUID='uuid' /mnt/SLAPOS ext4 defaults 0 0
/mnt/SLAPOS/opt /opt none bind
/mnt/SLAPOS/srv /srv none bind
/mnt/SLAPOS/tmp /tmp none bind
Next,we need to create a mount point and mount the logical volume.
mkdir -vp /mnt/SLAPOS
mount /dev/ACCTON/SLAPOS /mnt/SLAPOS
Now our new mount is ready to get /tmp, /opt and /srv.
cp -R /tmp tmp
cp -R /opt opt
cp -R /srv srv
chmod 1777 /mnt/SLAPOS/tmp
chmod 755 /mnt/SLAPOS/opt
chmod 755 /mnt/SLAPOS/srv
Rapid.Space Operator will give you one time token for re6stnet installation.
In order to request the token navigate to panel.rapid.space --> Tickets --> Add.
Use Ticket Type "Information", in "Subject" type "Production re6st new token" and in the "Your Message" write:
I need a new Production re6st token for machine named "name", which will be hosted in "DC name" datacenter.
Where the "name" and "DC name" are important information for the Rapid.Space Operator.
When Rapid.Space Operator will generate token for you, the given ticket will be closed, and you'll find the token in the reply.
With this token in hand you can start installing the re6st on the machine:
It will ask you for the token you got.
Once you have done the part about the installtion of re6st and of a slapos node, you need to modify the config file in order to make re6st work. You will put this line in the config file (/etc/re6stnet/re6stnet.conf):
Note that by default re6st attach the IPv6 address to "lo" interface. You can now restart the service by doing:
systemctl restart re6stnet