How to configure Elastic Desktop Service in Alibaba Cloud
Alibaba Cloud Elastic Desktop Service (EDS) provides a secure, scalable virtual desktop infrastructure (VDI) solution that enables remote access to cloud-hosted desktops. This guide walks you through configuring EDS to deploy virtual desktops for your organization.
What is Elastic Desktop Service?
EDS is Alibaba Cloud’s Desktop as a Service (DaaS) offering that provides:
- Cloud-Hosted Desktops: Virtual desktops running in the cloud
- Secure Remote Access: Secure access from any device
- Scalable Infrastructure: Auto-scaling desktop pools
- Cost Optimization: Pay-per-use pricing model
Prerequisites
- Alibaba Cloud account with EDS service enabled
- VPC and VSwitch configured
- Security group rules configured
- Custom images prepared (optional)
Step 1: Create Desktop Pool
Via Console
- Navigate to Elastic Desktop Service → Desktop Pools
- Click Create Desktop Pool
- Configure pool settings:
- Pool Name: Descriptive name for the pool
- Region: Select target region
- VPC: Choose VPC for desktop deployment
- VSwitch: Select subnet for desktops
- Security Group: Choose security group
Via CLI
# Create desktop pool
aliyun eds CreateDesktopPool \
--PoolName "development-pool" \
--RegionId cn-hangzhou \
--VpcId vpc-xxxxx \
--VSwitchId vsw-xxxxx \
--SecurityGroupId sg-xxxxx \
--DesktopType "ecs.g6.large" \
--ImageId "m-xxxxx" \
--SystemDiskSize 40 \
--DataDiskSize 100
Step 2: Configure Desktop Specifications
Instance Types
Choose appropriate instance types:
- ecs.t5-lc1m1.small: Basic office applications
- ecs.g6.large: Standard office and development
- ecs.g6.xlarge: High-performance workloads
- ecs.g6.2xlarge: Graphics-intensive applications
Storage Configuration
# Configure system disk (40-500 GB)
--SystemDiskSize 80
# Configure data disk (optional, 20-32768 GB)
--DataDiskSize 200
Image Selection
- Public Images: Alibaba Cloud provided images
- Custom Images: Your own customized images
- Shared Images: Images shared from other accounts
Step 3: Network Configuration
VPC Setup
# Ensure VPC has internet access
# Configure NAT Gateway or EIP for outbound access
# Create VSwitch in appropriate zone
aliyun vpc CreateVSwitch \
--VpcId vpc-xxxxx \
--CidrBlock "172.16.1.0/24" \
--ZoneId cn-hangzhou-a
Security Group Rules
Configure security group to allow:
- RDP (3389): For Windows desktops
- VNC/SSH (22): For Linux desktops
- HTTPS (443): For EDS client connections
- Outbound Internet: For updates and applications
# Allow RDP access
aliyun ecs AuthorizeSecurityGroup \
--SecurityGroupId sg-xxxxx \
--IpProtocol tcp \
--PortRange "3389/3389" \
--SourceCidrIp "0.0.0.0/0"
Step 4: User and Access Management
Create Users
# Create EDS user
aliyun eds CreateUser \
--EndUserId "developer1" \
--Email "[email protected]" \
--Phone "13800138000"
Assign Desktops to Users
# Assign desktop to user
aliyun eds AssignDesktops \
--EndUserIds '["developer1"]' \
--DesktopIds '["d-xxxxx"]'
Configure User Groups
# Create user group
aliyun eds CreateUserGroup \
--GroupName "developers" \
--Description "Development team"
# Add users to group
aliyun eds AddUsersToGroup \
--GroupId ug-xxxxx \
--EndUserIds '["developer1", "developer2"]'
Step 5: Desktop Pool Policies
Auto-Scaling Configuration
# Configure auto-scaling
aliyun eds ModifyDesktopPool \
--PoolId dp-xxxxx \
--AutoScalingEnabled true \
--MinDesktops 5 \
--MaxDesktops 50 \
--IdleDisconnectDuration 30
Connection Policies
- Idle Disconnect: Auto-disconnect idle sessions
- Session Timeout: Maximum session duration
- Concurrent Sessions: Limit concurrent sessions per user
Backup Configuration
# Enable automatic snapshots
aliyun eds ModifyDesktopPool \
--PoolId dp-xxxxx \
--SnapshotPolicyId sp-xxxxx
Step 6: Application Configuration
Install Applications
- Create Custom Image: Install applications on template desktop
- Create Snapshot: Save desktop state
- Create Custom Image: Convert snapshot to custom image
- Update Pool: Use custom image for new desktops
Software Distribution
- Group Policy: Use AD Group Policy for Windows
- Package Managers: Use package managers for Linux
- Configuration Management: Use Ansible, Puppet, or Chef
Step 7: Client Configuration
Download EDS Client
- Windows Client: Download from Alibaba Cloud Console
- macOS Client: Available for macOS
- Web Client: Browser-based access
- Mobile Apps: iOS and Android clients
Client Configuration
- Server Address: Enter EDS endpoint URL
- Authentication: Configure authentication method
- Connection Settings: Configure connection preferences
- Display Settings: Adjust resolution and quality
Monitoring and Management
Desktop Monitoring
# List desktops in pool
aliyun eds DescribeDesktops \
--PoolId dp-xxxxx
# View desktop status
aliyun eds DescribeDesktopStatus \
--DesktopId d-xxxxx
Usage Statistics
- Active Sessions: Monitor active desktop sessions
- Resource Utilization: Track CPU, memory, disk usage
- Connection Metrics: Monitor connection quality
- Cost Tracking: Track desktop usage costs
Log Management
- Connection Logs: View user connection logs
- Operation Logs: Track desktop operations
- Error Logs: Monitor errors and issues
Best Practices
Security
- Enable MFA: Require multi-factor authentication
- Network Isolation: Use VPC for network isolation
- Encryption: Enable encryption at rest and in transit
- Access Control: Implement least privilege access
- Audit Logging: Enable comprehensive logging
Performance
- Right-Size Instances: Choose appropriate instance types
- Optimize Images: Use optimized custom images
- Network Optimization: Optimize network configuration
- Resource Monitoring: Monitor and optimize resources
Cost Optimization
- Auto-Scaling: Use auto-scaling to reduce costs
- Scheduled Scaling: Scale down during off-hours
- Instance Types: Choose cost-effective instance types
- Storage Optimization: Optimize disk sizes
Troubleshooting
Common Issues
- Connection Failures: Check security group rules and network
- Performance Issues: Verify instance types and resources
- Authentication Problems: Check user configuration
- Image Issues: Verify image compatibility
Diagnostic Commands
# Check desktop status
aliyun eds DescribeDesktopStatus --DesktopId d-xxxxx
# View connection logs
aliyun eds DescribeConnectionLogs --DesktopId d-xxxxx
# Check pool configuration
aliyun eds DescribeDesktopPool --PoolId dp-xxxxx
Conclusion
Configuring Alibaba Cloud Elastic Desktop Service enables organizations to deploy secure, scalable virtual desktop infrastructure. By following this guide, you can set up desktop pools, configure users and access, implement policies, and manage your EDS deployment effectively.
Proper configuration of EDS provides organizations with flexible, secure remote desktop access while maintaining cost efficiency and operational simplicity.