Skip to content

Experiment Environment Setup

phs-sakshi edited this page Aug 7, 2026 · 3 revisions

Table of Contents

[AWS] Mount disk for m5d.2xlarge

List all devices - double check the SSD should be /dev/nvme1n1

sudo fdisk -l

Prepare, setup, and mount the SSD

sudo mkdir -p /home/ubuntu/ssd
sudo mkdir -p /home/ubuntu/ebs
sudo mkfs -t ext4 -F /dev/nvme1n1
sudo mount /dev/nvme1n1 /home/ubuntu/ssd
sudo chmod o+w /home/ubuntu/ssd
sudo chown -R ubuntu /home/ubuntu/ssd
df -h

Setup firewall rules

Setup ufw and add allowed IPs

echo y | sudo ufw enable
sudo systemctl start ufw
sudo systemctl enable ufw

# Set default policies first
sudo ufw default deny incoming
sudo ufw default allow outgoing

# BU
sudo ufw allow from 128.197.29.0/24
sudo ufw allow from 128.197.28.0/24
# Cloudlab Lan
sudo ufw allow from 10.10.1.0/24
# AWS Lan
sudo ufw allow from 192.168.1.0/24
# Lei home
sudo ufw allow from 173.76.191.218
sudo ufw allow from 38.42.127.128
# Chenxu home
sudo ufw allow from 38.42.98.142
# Sakshi home
sudo ufw allow from 98.216.176.72
# Check rules
sudo ufw status verbose

Clear all existing rules

echo y | sudo ufw reset

Node Setup

sudo apt update
sudo apt install -y python3-pip openjdk-11-jdk-headless iperf3 htop nload
python3 -m pip install psutil kafka-python paramiko scp

Setup SSH key

We need to setup SSH access from root node (where we will run experiments) to all other nodes.

  1. Generate key pair
ssh-keygen
  1. Print out the generated public key (e.g. id_rsa.pub, id_ed25519.pub)
cat ~/.ssh/id_rsa.pub
  1. Add the public key to all nodes of the cluster - including the local node.
echo [public_key_got_above] >> ~/.ssh/authorized_keys

Install Go 1.25.6

  1. Download
cd ~
wget https://go.dev/dl/go1.25.6.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.25.6.linux-amd64.tar.gz
rm -rf go1.25.6.linux-amd64.tar.gz
  1. Update PATH: append the following to the ~/.profile
export PATH=$PATH:/usr/local/go/bin
  1. Apply the change
source ~/.profile
  1. Check the install
go version

Clone this wiki locally