Installation
Requirements​
Toolkit installer requires the prior installation of:
- OpenNebula: 6.10.0
Once you have properly installed OpenNebula, you can proceed with the following steps.
Create site token​
If you don't have a token to access the 6G-Sandbox-Sites repository, you need to request access:
- Create an issue in the repository 6G-Sandbox-Sites requesting to join to the 6G-SANDBOX organization.
- Assign the issue to @CarlosAndreo or @alvarocurt. Additionally, add the
request-access
label. - The administrators will review the request and add you to the organization if approved.
- Once you have access to 6G-SANDBOX organization, the administrators will add you to the 6G-SANDBOX sites contributors group.
Then you can generate a token by navigating to:
- Settings
- Developer settings
- Personal access tokens
- Fine-grained tokens
- Generate new token
The configuration should look like this:
The repository required permission to enable is:
- Contents: read and write
Access to OpenNebula frontend​
Access via SSH to OpenNebula frontend with root user.
Download installation script​
Download the installation script using one of the following command.
- Using
curl
:
curl -O https://raw.githubusercontent.com/6G-SANDBOX/toolkit-installer/v0.4.0/scripts/install.sh
- Using
wget
:
wget https://raw.githubusercontent.com/6G-SANDBOX/toolkit-installer/v0.4.0/scripts/install.sh
Execute installation script​
Give execution permissions to the script:
chmod +x install.sh
Run the script and follow the instructions:
./install.sh
Known issues​
TNLCM uses MongoDB as a database to store trial networks. MongoDB is not compatible with all CPUs. By default, TNLCM is installed on a virtual machine hosted on an OpenNebula host with the CPU model set to host-passthrough
. This model type is not recommended unless there is no OpenNebula host available that meets the following requirements:
- x86_64 (amd64) architecture: MongoDB only supports 64-bit systems.
- SSE4.2 and AVX instruction sets: recent versions of MongoDB require these instructions to function properly.
Therefore, it is recommended to move the TNLCM virtual machine to an OpenNebula host that is compatible with MongoDB.
To check the CPU models of the hosts, you can access the Infrastructure tab from the left sidebar of OpenNebula's Sunstone, go to Host and select the host. Once a host is selected, in the Info section, scroll down to the Attributes section, where the KVM_CPU_MODEL field shows the host's CPU model.
Some of the CPU models compatible with MongoDB based on our tests are:
- Cascadelake-Server-noTSX
- Broadwell-IBRS
- Broadwell-noTSX
To move the TNLCM virtual machine to a MongoDB-compatible host with the correct CPU model, follow these steps:
- Access OpenNebula's Sunstone.
- Perform an Undeploy of the TNLCM virtual machine.
- Go to the Conf section of the virtual machine.
- Select Update Configuration.
- In the OS & CPU section, under CPU Model, select the CPU model of the new host where the TNLCM virtual machine will be moved.
- Finally, Deploy the TNLCM virtual machine on the new host. When deploying, you will have the option to select the host. Choose the same host where you updated the CPU model.
In general, these steps will be necessary in all cases where a virtual machine is deployed in OpenNebula that has MongoDB.