Confidential Instance Creation
This section outlines the process of starting a confidential instance on the Aleph Network.
If issues arise following these steps, consult the Confidential VM troubleshooting guide.
The CLI Documentation is also a precious source of information, see CLI Reference, or use
--help
for a quick overview of a specific command.
Prerequisites
Before proceeding, ensure the following:
- aleph-client and sevctl: The aleph-client and sev-ctl must be installed. Refer to Requirements for instructions
- Upload your VM image: Your encrypted VM image must be uploaded to the Aleph Network. Refer to the Encrypted Virtual Machine Image guide for instructions.
Step-by-Step Guide
Method 1: Automatic Instance Creation
The CLI provides a streamlined command to automate the entire creation process:
This command handles instance creation, secure channel setup, and VM initialization.
Method 2: Manual Instance Creation
For more control, follow these steps:
1. Create the Instance
Launch the instance configuration process:
- Payment: Select a payment chain and payment method (hold, superfluid, nft).
- Resources: Specify CPU, RAM, disk size and rootfs (your VM image hash).
- Deployment: Choose a CRN (Compute Resource Node) for deployment.
Important: Record the CRN URL and VM hash for subsequent steps. Use aleph instance list
if needed.
2. Establish a Secure Communication Channel
Initialize a secure session with your VM:
- Troubleshooting: If this step fails, reboot the instance using:
Then, retry establishing the session.
3. Validate and Start the VM
Verify the VM's integrity and start it:
- Troubleshooting: On failure, reboot using the command above, then retry.
Post-Creation Steps
Your VM is now ready to use.
Retrieve VM Logs
Monitor your VM's activity:
Access Your VM via SSH
1. Find the Instance Details
- Via CLI:
- Via API: Access the compute node's API at
https://<node-url>/about/executions/list
.
2. Connect via SSH:
Use the retrieved IP address to SSH into your VM:
- Default Users:
- Debian:
root
- Ubuntu:
ubuntu
- Debian: