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 Guest VM image creation
Suraj Gupta Gudla edited this page Mar 25, 2022
·
8 revisions
Any Operating System that is capable of running packer and Qemu.
1. Install Packer (https://www.packer.io/downloads) by running the below commands,
$ sudo apt install curl
$ curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
$ sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
$ sudo apt-get update && sudo apt-get install packer
- One can verify the installation of packer by running
$ packer --version
$ sudo apt-get update -y
$ sudo apt-get install -y qemu-system-x86-64
- Clone the GitHub repo (https://github.com/TempleDSS/data-capsule-appliance.git)
- Navigate to the directory "Data Capsule Guest" of the cloned repo.
- Create GitHub SSH keys (ed25519, RSA) and then replace the contents of the ‘uploads/root_authorized_keys” file with the created public keys (one key per line).
$ packer validate ubuntu_vanilla.json
$ packer fix ubuntu_vanilla.json
$ packer build ubuntu_vanilla.json
Update the Ubuntu 16.04 iso image details ubuntu_vanilla.json with the latest information. Check for the below fields and update accordingly,
- "iso_checksum": "8915fdefec347a3cd16279f82c94c3223ff5acb2",
- "iso_checksum_type": "sha1",
- "iso_name": "ubuntu-16.04.7-server-amd64.iso",
- "iso_url": "https://releases.ubuntu.com/xenial/ubuntu-16.04.7-server-amd64.iso",
Please know that the build process is going to take a lot of time depending on system configuration (from a minimum of 1 hour to a maximum of 3 hours)
Do not halt the process in the mid, wait till you get some error or response output.
In order to debug the issues of the build process, set PACKER_LOG=1 to view a detailed log of the setup process.