'Is it possible to connect 2 virtual machines on Linux with SLURM via SSH?

I need to configure 2 virtual machines on 2 different personal computers to cluster them over SSH and evaluate its performance using SLURM resource management system and MPI task. I am using VirtualBox and CentOS 7. I already have SLURM configured on two devices. I can't find information on how I can use them as compute nodes. What steps should I take?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source