**Lima v2.2: Expanding Virtual Machine Support to Windows and Introducing TPM 2.0 Emulation**
Lima, a CNCF sandbox turned incubating project, continues to break barriers in virtual machine management. Originally designed to simplify running containers on laptops by promoting containerd to Mac users, Lima has evolved into a versatile tool for launching local virtual machines across various operating systems. With the recent release of Lima v2.2, the project takes a significant leap forward by adding experimental support for Windows guests and emulated TPM 2.0, further solidifying its position as an OS-agnostic VM launcher.
**Windows Guests: A New Frontier**
Lima v2.2 introduces experimental support for Windows Server 2025 and Windows 11 guests. This marks a pivotal moment in the project’s journey towards becoming a universal VM launcher. With v2.1 adding macOS and FreeBSD support, Windows was the natural next step. The new release enables users to create and start Windows Server 2025 guests with a simple `limactl start template:windows-2025` command, and then access them via `limactl shell windows-2025`.
Under the hood, Lima has been equipped to handle the complexities of Windows installations. It can now drive an unattended Windows installation using a generated `autounattend.xml` answer file, which is packaged into an ISO and attached to the VM. This automates disk partitioning, driver loading, and user creation. Additionally, Lima downloads and mounts the virtio-win driver ISO, enabling Windows to use paravirtualized devices for optimal performance. Upon first logon, a PowerShell script generates a random password, installs OpenSSH Server, and configures SSH access, making `limactl shell` work seamlessly out of the box.
However, it’s important to note that Windows guest support is currently experimental and comes with limitations. Only the QEMU driver is supported, and the Windows template requires `plain: true`, meaning file mounts, port forwarding via the guest agent, and other Lima conveniences reliant on the Linux guest agent are not yet available.
**TPM 2.0 Emulation: A Foundation for Modern Security**
Alongside Windows guest support, Lima v2.2 introduces emulated TPM (Trusted Platform Module) 2.0, a crucial component for modern guest operating systems and disk-encryption workflows. TPM 2.0 is a dedicated microchip designed to secure hardware using cryptographic keys. To enable Windows 11 guests, Lima leverages `swtpm`, a software emulator that acts as a physical TPM.
When `tpm: true` is configured, Lima spawns a `swtpm` process per instance, communicates with it over a Unix domain socket, and automatically cleans up the process when the instance stops. This emulation provides a foundational layer of security for Windows guests and paves the way for more advanced encryption workflows.
**Looking Ahead**
The Lima team, with the help of LFX Mentorship 2026 participants, is actively working on enhancing the Windows guest experience. Future developments include file sharing into the guest via virtio-fs or SMB, a Windows-side guest agent for parity with Linux guests, broader architecture and image coverage, and eventually exploring native virtualization support for Windows hosts.
Lima v2.2 represents a major milestone in the project’s evolution. By adding Windows guest support and TPM 2.0 emulation, it empowers users to manage a diverse range of virtual machines with a single, unified tool. As Lima continues to grow within the CNCF ecosystem, it promises to deliver even more innovative solutions for developers and operators alike.
**FAQ**
**Q: What is Lima, and what does it do?**
A: Lima is a command-line tool designed to launch and manage local virtual machines. It simplifies the process of running various operating systems, including Linux, macOS, FreeBSD, and now Windows, directly from the command line. Lima was originally created to bring containerd to Mac users but has evolved into a comprehensive VM management tool.
**Q: Which Windows versions are supported in Lima v2.2?**
A: Lima v2.2 introduces experimental support for Windows Server 2025 and Windows 11.
**Q: Is Windows guest support in Lima stable?**
A: No, Windows guest support is currently marked as experimental. Users should expect potential limitations and bugs.
**Q: What does the `plain: true` setting mean for Windows guests?**
A: The `plain: true` setting is required for Windows templates. It means that certain Lima features, such as file mounts and port forwarding via the guest agent, are not available for Windows guests at this time.
**Q: What is TPM 2.0 emulation used for?**
A: TPM 2.0 emulation provides a software-based Trusted Platform Module, which is essential for running Windows 11 guests and enables disk-encryption workflows and other security features that rely on TPM hardware.
**Q: How can I install Lima?**
A: If you are using Homebrew, you can install Lima with the command `brew install lima`. For other installation methods, refer to the official Lima documentation.
**Conclusion**
Lima v2.2 is a transformative release that broadens the scope of virtual machine management. By introducing experimental Windows guest support and TPM 2.0 emulation, Lima is not only enhancing its functionality but also reinforcing its commitment to being an open-source, community-driven platform. As the project moves forward, users can look forward to a more unified and powerful experience for managing both Linux and Windows virtual environments.



