Skip to content

Data Capsule Host Setup

Suraj Gupta Gudla edited this page Apr 26, 2022 · 9 revisions

Pre-requisites:

Case 1: Deploy a single Data Capsule - follow below steps

  • A Linux OS based machine with KVM support enabled acting as the Host (AWS/ GCP/ Jetstream instances could be used)
  • Minimum Hard disk space of 20GB on the Host machine
  • One Linux OS based machine with KVM support enabled acting as the Host (AWS/ GCP/ Jetstream instances could be used)
  • Second Linux OS based machine to configure multiple host machines
  • Minimum Hard disk space of 20GB on the Host machine

Steps:

1. On the Host machine, Clone the GitHub repo

git clone --recurse-submodules https://github.com/TempleDSS/data-capsule-appliance.git

2. Install Ansible on the Host machine using the below commands:

*Reference: (https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-ansible-on-ubuntu)

$ sudo apt update
$ sudo apt install software-properties-common
$ sudo add-apt-repository --yes --update ppa:ansible/ansible
$ sudo apt install ansible

3. Install python and pip on the Host machine

$ sudo apt install python3-pip

4. Install passlib module on the Host machine

$ pip install passlib

5. Install Qemu utilities using

$ sudo apt-get install qemu-utils

6. Go to the Directory /Data Capsule Host of the cloned repo.

7. Uncomment the line #localhost ansible_connection=local in the hosts file.

8. Run the ansible-playbook using the command

$ ansible-playbook --user=<login_username> -k -i hosts site.yml --ask-become-pass

* Where, login_username is the username of the host machine

9. If there are no errors and if failed=0, ansible-playbook is successfully run.

It means that the host machine is configured properly and all the Tasks are executed completely. (errors would be shown in red and successful task execution results would be shown in green/yellow.)

10. Save the IP-table rules in the instance

sudo apt install iptables-persistent
sudo iptables -L
sudo iptables-save | sudo tee /etc/iptables/rules.v4

11. Now let's proceed to the creation and testing of the Data Capsule.

Testing the Data Capsule