-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scripts to setup 4 entropy-tss VMs for test network #5
Comments
In production all nodes will ideally run the same image - that is, we will not be able to set a custom chain endpoint for each node as a command line argument when running From the
So for our 4 node test network could have the following in the and in the CVM image, always run entropy-tss with:
|
I have been experimenting with setting up 4 entropy-tss servers in 4 TDX enclaves, for a test network (4 is the minimum we need to be able to test the protocols and have a functional network).
To do this we need 4 images on the host, named eg:
tdx-guest-ubuntu-24.04-generic-entropy-tss-alice.qcow2
,tdx-guest-ubuntu-24.04-generic-entropy-tss-bob.qcow2
, etc.Here is the script i am running on the host: (adapted from the script in the
canonical tdx repo)
When run a second time, the script will kill existing processes before starting new ones. It can also be run with the
clean
command line argument to only kill processes and remove logs, and not start the VMs.Each VM image needs to be already provisioned with the
entropy-tss
binary and an enabled systemd service file customised for alice, bob, etc. For example for alice:I have not yet automated the process of provisioning the VMs, but it could be done as part of this script: https://github.com/canonical/tdx/blob/387764af665cddce319af1667c1648ee988947e5/guest-tools/image/create-td-image.sh
Then we also need to run 4 chain nodes on the host. I am unsure if to use a bash script, docker-compose or by adapting the helper function we use for spinning up the 4 chain nodes we use for entropy-tss tests: https://github.com/entropyxyz/entropy-core/blob/425b2819b6c309adf78e2ce54217937163072eca/crates/testing-utils/src/substrate_context.rs#L112
The text was updated successfully, but these errors were encountered: