1. create VM on MS Azure (e.g. Standard_D96ads_v5) - Make sure... no public ip / port when creating a VM (Choos ARG-EASTINFRASTRUCTURE as resource group). Use following options:
- Image: Ubuntu Server 20.04 LTS -Gen2
- Use existing key pair (ubuntu20-gen2_key)
- public inbound ports: None
- DO NOT add any disk
- Virtual network: seircast-vnet2
- (in networking options) public inbound ports: None
- Check Enable accelerated networking (50GB?)
- load balancing options: Azure load balancer -> myLoadBalancer
2. Configure(Add) myLoadBalancer's inbound rule for port forwarding to new VM's local (not public) ip address (public port 22X -> local port 22)
3. Configure New VM's security group to allow port 22. Test connect (using putty or ssh -p command)
4. Install (enable) ufw
- sudo apt install ufw
- sudo ufw enable
- sudo ufw allow 22
- sudo ufw allow from 10.1.0.0/24 (for allow all other VMs in same LAN connections via all ports) - Do this all other VMs too
5. Create "mpiuser" account (adduser) and make it sudoer. (sudo adduser mpiuser ; sudo usermod -aG sudo mpiuser)
6. Install Gcc/G++ (sudo apt install build-essential)
7. Make ssh keys / Copy public key to all other existing VMs in the cluster (e.g. authorized_keys)
Follow the steps(install mpi and testing) in https://feyziyev007.medium.com/how-to-install-openmpi-on-ubuntu-18-04-cluster-2fb3f03bdf61
Another helpful link: https://www.anthonymorast.com/blog/2019/10/31/setting-up-a-raspberry-pi-cluster-to-use-mpi/