Now that your Compute Node Token is ready, SlapOS can be installed on your server via our single-line installer.
Log into your server via your method of choice.
IMPORTANT: You will need to be logged in to the root user.
Run the command as shown above.
After a few moments during the installation, you will be prompted to answer a set of questions:
- As you are connecting to the SlapOS Master, you can skip the first two questions.
-
Next, choose and input a name for your computer, noted above as $Your_Computer_Name
. This will be the name with which your server will appear in your Rapid.Space project.
IMPORTANT: If the name contains spaces, surround the whole name with double quotes, e.g. "My SlapOS Compute Node".
-
Next, input the Compute Node Token you have generated before: $Your_Compute_Node_Token
.
-
When prompted for the IPv6 network interface, either enter lo
or skip the question as you are using Re6st.
-
Finally, for the number of SlapOS computer partitions, you can stay with the default of 10 for a small deployment. If you expect a larger deployment, 100 partitions is a safe number, and adds no extra overhead.
NOTE: If you are using copy/paste, beware of whitespace or invisible characters that might be added when pasting your data.
Once the installation has finished without errors, you should see:
...
PLAY RECAP *********************************************************************
127.0.0.1 : ok=12 changed=4 unreachable=0 failed=0
However, in case the installation fails and you want to start over, you need to request a new Compute Node Token as mentioned above and, depending on whether it is already created, remove any existing configuration at /etc/opt/slapos/slapos.cfg
before restarting the installation.
NOTE: If you need more computer partitions after the installation is finished, you can edit the above-mentioned configuration file at /etc/opt/slapos/slapos.cfg
: find the partition-amount
line in the [slapformat]
section, and set it to the desired number.
Save and exit the configuration file, and run the command $ slapos node format --now
to update your node with the new changes.