Sub topic 13
Virtual Desktop Infrastructure
Virtual desktop infrastructure (VDI) runs desktop operating systems as virtual machines on servers in a data center and delivers them to users over a network. This chapter assumes you already know what a hypervisor, host, guest, and virtual machine are, and that you can tell IaaS, PaaS, and SaaS apart. It covers how VDI works, the parts it needs, the two main ways of assigning desktops, the common problems, and when an organization chooses it.
What VDI Is
In a traditional setup, each employee has a PC. The operating system, applications, and files all live on that PC's local drive. With VDI, the desktop is a virtual machine that runs on a server. The user's device only shows the screen and sends keyboard and mouse input.
The key facts:
- The desktop VM runs on a Type 1 hypervisor on a server in a data center or in a cloud.
- The client device can be a full PC, a laptop, a tablet, or a thin client. A thin client is a small, low-cost computer with minimal local storage and processing power. Its main job is to connect to a remote desktop.
- A display protocol carries screen images from the server to the client. It carries keyboard, mouse, and sometimes audio and USB traffic back. Common examples are Microsoft RDP, VMware Blast, and Citrix HDX.
- The processing happens on the server. A slow client can still show a fast desktop, because the client does not run the applications.
This is different from running a VM on your own PC, which the earlier chapters on Type 2 hypervisors covered. In VDI, the VM runs on shared servers and the user reaches it remotely.
Parts of a VDI Environment
A VDI system has several cooperating parts.
| Part | Role |
|---|---|
| Host servers with a Type 1 hypervisor | Run many desktop VMs at once |
| Connection broker | Authenticates the user and connects them to a desktop VM |
| Desktop images or templates | Master copies used to create desktop VMs |
| Shared storage | Holds the VM disks and user data |
| Network | Carries the display protocol between client and server |
| Client device | Shows the desktop and sends input |
The connection broker is the piece that exam scenarios mention most often. When a user signs in, the broker checks their identity, picks or finds the right desktop VM, and hands the user a session.
Persistent and Non-Persistent Desktops
VDI administrators choose how long a user's changes last. This choice appears on the exam as persistent versus non-persistent.
Persistent desktops
A persistent desktop is assigned to one user. It keeps its settings, installed software, and files from one session to the next. It behaves like a personal PC that happens to live in the data center. Use it when users need to customize their environment or install their own tools, such as developers.
Non-persistent desktops
A non-persistent desktop is created fresh from a master image each time a user signs in. When the user signs out, the VM resets and changes are discarded. Any user data that must be kept has to be stored elsewhere, such as on a network share or in redirected profile storage.
Use it when many users do the same task and the organization wants identical, clean desktops. Examples are call centers, classrooms, kiosks, and lab computers.
| Feature | Persistent | Non-persistent |
|---|---|---|
| Assigned to | One specific user | Any user from a pool |
| Changes survive sign-out | Yes | No |
| Storage needed | More, one disk per user | Less, shared base image |
| Patching | Each desktop is patched separately | Update the master image once |
| Best for | Power users, customization | Task workers, shared use |
Benefits of VDI
- Central management. An administrator updates one master image instead of touching hundreds of PCs.
- Data stays in the data center. Files are not stored on the client, so a lost laptop exposes less data.
- Access from many devices. A user can pick up the same desktop from the office, home, or a tablet.
- Cheaper client hardware. Thin clients cost less and last longer than full workstations.
- Fast recovery. If a desktop VM breaks, the administrator can restore it from a snapshot or recreate it from the image.
- Support for legacy or special software. An old application that needs a specific operating system can run in a controlled desktop VM.
Drawbacks and Failure Modes
VDI moves work from many PCs to a few servers and a network. That shifts the risks as well.
- Network dependence. If the network is down or slow, users cannot work. High latency (delay) makes the screen lag and typing feel sluggish.
- Server capacity. Many users share the host's CPU, RAM, and storage. If the servers are too small, every desktop slows down together.
- Boot storms. When many users sign in at once, for example at 9:00 a.m., the storage system receives a burst of read requests and desktops start slowly.
- Single point of failure. If a host or the broker fails and there is no redundancy, many users lose access at the same time.
- Cost and complexity. The servers, licenses, storage, and skilled staff cost money. VDI is not always cheaper than buying PCs.
- Graphics and peripherals. Video editing, 3D work, and some USB devices need extra configuration or a GPU in the server.
VDI, Cloud, and Related Terms
VDI connects to the cloud ideas from earlier chapters, and the terms can blur together.
- On-premises VDI. The organization owns the servers and runs the hypervisors itself. This is similar to a private cloud.
- Desktop as a Service (DaaS). A provider hosts the virtual desktops and the organization pays a metered or per-user fee. This is a cloud service, and it is often grouped with SaaS because the user simply receives a ready desktop. It also reflects the metered usage and rapid elasticity traits, since desktops can be added or removed as staffing changes.
- Remote desktop to a physical PC. This connects to one real computer. It is not VDI, because no hypervisor or virtual machine is involved.
- Local VM. A VM on the user's own PC, using a Type 2 hypervisor, is client-side virtualization, not VDI.
Exam questions may describe the same idea in different words, so match the behavior, not the label. If desktops run as VMs on central servers and users connect remotely, it is VDI.
Security Considerations
VDI centralizes control, which helps security, but it needs its own protections.
- Authenticate users strongly. Because desktops are reachable over a network, use strong passwords and multifactor authentication at the broker.
- Encrypt the connection. Display protocol traffic should be encrypted, especially over the internet or across a VPN.
- Keep data off the client. Disable or limit copy and paste, file transfer, local drive mapping, and USB redirection when data must not leave the data center.
- Patch the master image. In a non-persistent pool, fixing the image fixes every new session. In a persistent pool, each desktop still needs patching.
- Isolate desktops. Use virtual network settings so desktop VMs cannot reach systems they do not need. This applies the isolation ideas from the virtual network and VM security chapters.
- Protect the hosts. A compromised hypervisor affects every desktop on it, so restrict who can administer it.
Worked Example
A company runs a customer support center with 200 agents. Agents work in shifts, all use the same three applications, and they must not store customer records on local machines. The company also replaces PCs every few years and wants to cut that cost.
The reasoning:
- The agents all do the same work, so identical desktops fit well.
- Customer data must stay off the endpoint, so the data must remain in the data center.
- Agents do not need to personalize their desktops, so changes do not need to persist.
- Cheap thin clients can replace full PCs.
The best fit is VDI with non-persistent desktops. Agents sign in through a connection broker. Each gets a clean desktop built from one master image, and the customer data stays on servers. Updating the three applications means editing one image.
Compare a different case: a software developer who installs custom tools and changes settings daily. A persistent desktop fits better, or a local VM, if the work does not need central control.
Choosing VDI or Another Option
| Need | Likely choice |
|---|---|
| Central control of many identical desktops, data kept off endpoints | VDI, non-persistent |
| Personal, customizable desktop hosted centrally | VDI, persistent |
| Test an operating system on one's own PC | Local VM with a Type 2 hypervisor |
| Run one app in an isolated environment on a PC | Sandbox |
| Run software built for different hardware | Emulator |
| Package an app and its dependencies to run consistently | Container |
| Use an application hosted and maintained by a vendor | SaaS |
Common Mistakes
- Confusing VDI with a VM running on the user's own computer. In VDI the VM runs on a server.
- Confusing remote access to a physical PC with VDI. VDI uses virtual machines.
- Assuming non-persistent means the user loses all work. Their files can be saved to network storage even though the desktop itself resets.
- Forgetting the network. A VDI design that ignores bandwidth and latency will give a poor user experience.
- Assuming VDI is always cheaper. Server, storage, and license costs can exceed the savings.
Exercise
A school wants every student computer in a lab to start in the same clean state each morning, and any changes a student makes must disappear at sign-out. Lab computers should be low-cost and easy to replace. Which approach fits best, and why?
Show answer
Use VDI with non-persistent desktops and thin clients. Each sign-in creates a fresh desktop from one master image, so changes are discarded and every student gets an identical environment. The administrator maintains only the master image, and thin clients are inexpensive and easy to swap.
Exercise
Users of a virtual desktop system report that the screen lags and typing is delayed, but the thin clients themselves are new. Name two likely causes.
Show answer
Likely causes are network latency or low bandwidth between the client and the server, and overloaded host servers (not enough CPU, RAM, or storage speed for the number of active desktops). Slow thin clients are an unlikely cause, because the applications run on the server.
Exercise
Which VDI component authenticates a user and connects them to a desktop VM?
Show answer
The connection broker.