Run multiple instances of SocialVPN in one VM with LXC
Pierre St Juste edited this page Oct 2, 2013
·
11 revisions
These instructions will explain how to run multiple versions of SocialVPN on one VM using LXC.
- Download our pre-made script
wget https://github.com/ipop-project/ipop-scripts/raw/scripts/svpn_lxc.sh
- Run the script and wait, the following command will create 5 containers (named container1, container2, ..., container5) each running an instance of socialvpn
sudo sh -c 'sh svpn_lxc.sh username password host 1 5 30 svpn 1> out.log 2> err.log &'
- Check to see if containers are running
ps aux | grep lxc-start
- Get console access to container1 (username : ubuntu, password : ubuntu)
sudo lxc-console -n container1
- You can check to see if socialvpn is running with the following commands
ps aux | grep svpn-jingle ps aux | grep controller.py /sbin/ifconfig ping 172.31.0.101
- You can exit out of a container with Ctrl-a,q then shutdown the container
sudo lxc-shutdown -n container1
- Building the code
- IPOP packages
- Running SocialVPN nodes
- Running GroupVPN nodes
- Deploying OSN and NAT traversal services
- Test and monitoring
- Extending the code
- General documentation