VDI (Virtual Desktop Infrastructure)
VDI provides access to Windows desktop environments running as virtual machines. Users connect to VMs via RDP (Remote Desktop Protocol).
Objectives
- Create VDI profiles
- Configure service accounts
- Manage user roles
- Request and use VDI sessions
Before you begin
VDI requires:
- Cloudspace with available resources
- VM template or image
- Service account with VDI permissions
- User roles defined
VDI Profiles
A VDI Profile defines the configuration for virtual desktops. Each profile specifies VM resources, behavior, and access control.
Profile Settings
Instance Behavior
single-use: Each session gets a fresh VM, recycled after disconnect and recycle time has passeddedicated: User receives the same VM for each session
Availability
stand_by: VMs remain running when idleshutdown: VMs power off when idle
VM Configuration
- CPU cores
- Memory (MB)
- Boot disk size (GB)
- Base image/template
- Optional vGPU profile
Pool Settings
- Standby pool size: Number of VMs kept ready
- Maximum pool size: Maximum concurrent sessions (0 = unlimited)
- Recycle time: minutes before inactive VMs are recycled
Creating a VDI Profile
To create a VDI profile
- Navigate to VDI → Profiles.
- Click CREATE PROFILE.
- Enter profile name.
- Select cloudspace where VMs will be created.
- Select service account.
- Configure instance behavior:
- Select
single-useordedicated.
- Select
- Configure availability:
- Select
stand_byorshutdown.
- Select
- Configure VM specifications:
- Select image/template
- Set CPU cores
- Set memory in MB
- Set boot disk size in GB
- (Optional) Select vGPU profile
- Configure pool settings:
- Set standby pool size
- Set maximum pool size (0 for unlimited)
- Set recycle time in seconds
- Select connection mode (see Connection Modes).
- Select granted roles (see User Roles).
- (Optional) Enter contact email.
- Click CREATE PROFILE.
The system provisions the standby pool VMs automatically.
Editing a VDI Profile
To edit a VDI profile
- Navigate to VDI → Profiles.
- Select the profile to edit.
- Modify the desired settings.
- Click SAVE.
Note: Changes to VM configuration only affect newly created VMs, not existing ones. This will purge the standby pool and create a new pool with the new VM configurations.
Deleting a VDI Profile
To delete a VDI profile
- Navigate to VDI → Profiles.
- Select the profile to delete.
- Click DELETE at the top of the page.
- Click Confirm.
Note: All sessions must be terminated before deleting a profile. There is a Force option to enforce that.
Connection Modes
VDI supports two connection modes for accessing virtual desktops.
Agent Mode
Agent mode uses WireGuard VPN to create direct encrypted connections.
Configuration:
- Set
connection_modetoagent - No additional configuration required
User requirements:
- Install VDI Agent (Windows/macOS/Linux)
- Internet connection
How it works:
- User requests session
- VDI Agent establishes WireGuard VPN tunnel
- RDP connection routed through VPN
- Direct connection to VM
RD Gateway Mode
RD Gateway mode uses Microsoft Remote Desktop Gateway as a proxy.
Configuration:
- Set
connection_modetordgateway - Enter RD Gateway hostname
Requirements:
- RD Gateway server deployed
- Valid SSL certificate
- RD Gateway hostname configured
How it works:
- User requests session
- RDP connection to RD Gateway hostname
- Gateway proxies connection to VM
- No agent or VPN required
Roles
For a VDI profile, two roles are needed:
- User role: Grants users access to request sessions
- Service account role: Allows service account to manage VMs
User roles control access to VDI profiles. Only users assigned to granted roles can request sessions.
Service account roles provide permissions to manage VMs for VDI sessions.
Creating User Roles
To create a user role
- Navigate to Settings → Roles.
- Click CREATE ROLE.
- Enter role name.
- Enter description.
- Select Read permission (VDI users only require read access).
- Add users to the role.
- Click CREATE.
Note: VDI users only need read permissions on the cloudspace to request sessions.
Creating Service Account Role
To create a Service Account role
- Navigate to Settings → Roles.
- Click CREATE ROLE.
- Enter role name.
- Enter description.
- Select Read, Create, Delete, Execute, Update permissions.
- Click CREATE.
Granting Roles to Cloudspace
Both roles must be granted access to the cloudspace before creating VDI profiles.
To grant roles to a cloudspace:
- Navigate to the cloudspace.
- Click More → Roles & Permissions.
- Click + Add Roles.
- Select both the user role and service account role.
- Click Add.
Service Accounts
Service accounts are automated accounts used by VDI to manage VM operations. They have permissions specific to VDI resources.
Creating a Service Account
To create a service account:
- Navigate to Settings → Service Accounts.
- Click CREATE SERVICE ACCOUNT.
- Enter account name.
- Select the service account role created previously (with Read, Create, Delete, Execute, Update permissions).
- Click CREATE.
The service account is automatically granted permissions for:
- Creating VMs from templates
- Starting/stopping VMs
- Configuring VM networking
- Deploying certificates
- Monitoring VM status
VDI Sessions
A VDI Session represents an active connection between a user and a VM.
Requesting a Session
To request a VDI session:
- Navigate to your VDI Profile.
- Click Agent Landing Page.
- Follow the instructions there.
The Agent Landing Page is a shareable URL where VDI users can request sessions.
Connecting to a Session
Agent Mode:
- Install VDI Agent if first time
- Agent automatically opens RDP connection
- Log in with domain credentials
RD Gateway Mode:
- Download RDP file
- Open RDP file
- Log in with domain credentials
Viewing/Managing Sessions
To manage sessions:
- Navigate to VDI → Profiles.
- Select the profile.
- View and manage the sessions.
Ending a Session
For single-use profiles: VM is recycled.
For dedicated profiles: VM shuts down if availability is shutdown.
Session States
Sessions progress through states:
initialized: Session created, VM not yet provisionedprovisioning: VM being created, installing VDI agentstandby: VM ready, no user assignedreserved: VM assigned to user, waiting for connectionconnected: User connected via RDPrecycling: Single-use VM being resetshutdown: VM powered offfailed: Session encountered error