This repository was archived by the owner on Mar 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Data Capsule Host Setup
Suraj Gupta Gudla edited this page Apr 25, 2022
·
9 revisions
Case 1: Deploy a single Data Capsule
- 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
Case 2: Deploy Multiple Data Capsules - follow below steps
- 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
git clone --recurse-submodules https://github.com/TempleDSS/data-capsule-appliance.git
*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
$ sudo apt install python3-pip
$ pip install passlib
5. Setup a cloud instance(Host) with KVM support and linked SSH keys(ed25519/ RSA) - GCP recommended
In case of GCP, KVM support for the instance can be enabled by following the official documentation.
One can verify if KVM support exists/is enabled in the instance using the below commands,
$ sudo apt -y install bridge-utils cpu-checker libvirt-clients libvirt-daemon qemu qemu-kvm
$ sudo /usr/sbin/kvm-ok
Make the permissions of the key file strict by running
$ chmod 400 ./keyFile.pem
SSH into the cloud host instance using the private key file by running the below command,
$ ssh -i path/to/KeyFile.pem <Default Username>@<Public IPv4/ DNS address of the instance>
$ sudo apt update
$ sudo apt install software-properties-common
$ sudo add-apt-repository --yes --update ppa:ansible/ansible
$ sudo apt install ansible
$ sudo apt-get install qemu-utils
9. To Enable SSHing into the host instance without a keyfile, Click here
$ ansible-playbook --user=<login_username> -k -i hosts site.yml --ask-become-pass
Where, login_username is the username of the host machine
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.)
sudo apt install iptables-persistent
sudo iptables -L
sudo iptables-save | sudo tee /etc/iptables/rules.v4