HyperSDK provides comprehensive Alibaba Cloud integration supporting ECS (Elastic Compute Service) for instance management and OSS (Object Storage Service) for backup storage. The implementation uses official Alibaba Cloud Go SDKs with intelligent retry mechanisms and network monitoring.
oss:// URL supportCreate /etc/hypervisord/config.yaml:
alibaba_cloud:
# Authentication (RAM User AccessKey)
access_key_id: "LTAI4G..."
access_key_secret: "your-access-key-secret"
# Region
region_id: "cn-hangzhou" # Available: cn-beijing, cn-shanghai, etc.
# OSS Configuration
bucket: "vm-backups" # OSS bucket name
# Export Settings
export_format: "qcow2" # Image format: qcow2, raw
enabled: true
# Alibaba Cloud Authentication
export ALIBABA_CLOUD_ACCESS_KEY_ID="LTAI4G..."
export ALIBABA_CLOUD_ACCESS_KEY_SECRET="your-access-key-secret"
export ALIBABA_CLOUD_REGION_ID="cn-hangzhou"
# Cloud Storage URL
export CLOUD_STORAGE_URL="oss://vm-backups/exports/"
# Interactive export
./hyperexport -provider alibabacloud -vm i-abc123...
# Non-interactive with options
./hyperexport \
-provider alibabacloud \
-vm i-abc123... \
-output /backup/exports \
-format qcow2 \
-compress
# Export instance and upload to OSS
./hyperexport \
-vm i-abc123... \
-upload oss://vm-backups/2024-01-21/
LGPL-3.0-or-later - See LICENSE file for details