The Wild

Why Seattle's AI Ambitions Started with a Hypervisor Migration

· 6 min read · Mammals

In this article
  1. Background: Seattle's Tech Ecosystem and the AI Push
  2. How Hypervisors Affect AI Workloads
  3. The Migration: From VMware to KVM
  4. Enabling GPU Clusters and Kubernetes
  5. Common Problems and Misconceptions
  6. Costs and Benefits Compared
  7. Safety and Security Considerations
  8. Frequently Asked Questions

Seattle's AI ambitions began with a hypervisor migration because the city's research institutions and tech companies needed a unified, scalable, and secure computing foundation to handle the massive data and model training workloads that AI demands—and the legacy virtualization layer was the bottleneck. This migration, which involved moving from proprietary hypervisors to open-source alternatives like KVM, allowed organizations to pool GPU resources, automate infrastructure, and reduce costs, making large-scale AI experimentation feasible.

Background: Seattle's Tech Ecosystem and the AI Push

Seattle is home to major tech employers, including Amazon, Microsoft, and a dense network of startups and research labs. The University of Washington and the Allen Institute for AI (AI2) are also key players. As AI research accelerated in the late 2010s, these institutions faced a common problem: their existing IT infrastructure, built on older hypervisors like VMware, was not designed for the high-throughput, GPU-heavy workloads that deep learning requires. The hypervisor—the software layer that manages virtual machines—was a performance and management bottleneck. Migrating to a more flexible hypervisor was a prerequisite for building the kind of elastic, GPU-accelerated clusters that AI training demands.

How Hypervisors Affect AI Workloads

A hypervisor is the software that creates and runs virtual machines (VMs). It sits between the hardware and the operating system, allocating CPU, memory, and storage. For AI workloads, which rely heavily on GPUs for parallel processing, the hypervisor must support efficient GPU passthrough and scheduling. Older hypervisors often had poor GPU virtualization support, leading to underutilized hardware and slow training times. Modern open-source hypervisors like KVM (Kernel-based Virtual Machine) offer better performance and more flexible resource allocation. Additionally, containerization—often used with hypervisors—allows AI teams to package their code and dependencies, making it easier to scale across many machines. The migration to a hypervisor that natively supports GPUs and containers was a foundational step for Seattle's AI projects.

The Migration: From VMware to KVM

Several Seattle-based organizations, including the University of Washington and AI2, migrated their on-premise data centers from VMware to KVM. This move was driven by several factors:

  • Cost: VMware licensing fees are expensive, especially when scaling out hundreds of nodes. KVM is open-source and free.
  • Performance: KVM offers near-native performance for GPU workloads, with less overhead than VMware's virtualization layer.
  • Flexibility: KVM integrates tightly with Linux and open-source orchestration tools like Kubernetes, which are standard for AI pipelines.
  • Community: The open-source community around KVM is active, with rapid bug fixes and feature additions.

The migration process typically involved:

  1. Auditing existing VMs and their resource usage.
  2. Setting up a new KVM cluster with GPU-enabled nodes.
  3. Replicating VM images and testing performance.
  4. Switching over workloads gradually to minimize downtime.

This transition was not without challenges, but the result was a more agile infrastructure that could be scaled up or down rapidly.

Enabling GPU Clusters and Kubernetes

Once the hypervisor was in place, Seattle's AI teams could build GPU clusters that were both powerful and manageable. KVM's support for PCIe passthrough allowed each VM to access a physical GPU directly, which is essential for training deep learning models. Furthermore, the integration with Kubernetes meant that AI workloads could be orchestrated across hundreds of nodes, automatically allocating resources and handling failures. For example, the University of Washington's Hyak cluster, which supports AI research, runs on KVM and Kubernetes. This setup allows researchers to submit jobs that use multiple GPUs without worrying about the underlying hardware. The hypervisor migration was the first step in a chain that enabled this level of automation and efficiency.

Common Problems and Misconceptions

One common misconception is that hypervisor migration is only about cost savings. While cost is a factor, the primary driver for Seattle's AI push was the need for performance and scalability. Another issue is the belief that containers replace hypervisors. In reality, containers run on top of a hypervisor in many cases, so the hypervisor is still the foundation. Common problems during migration include:

  • Compatibility: Some legacy applications may not run well on KVM, requiring reconfiguration or recompilation.
  • Performance tuning: KVM requires careful tuning of CPU and memory settings to achieve optimal performance, especially for high-throughput AI workloads.
  • Staff training: IT teams familiar with VMware may need time to learn KVM's command-line tools and management interfaces.

These challenges are manageable but require planning and expertise.

Costs and Benefits Compared

The cost of a hypervisor migration includes the time spent by IT staff, potential downtime, and the need for new hardware if the existing servers are not compatible. However, the long-term benefits often outweigh these costs. For Seattle's AI organizations, the benefits included:

  • Lower operational costs: No licensing fees, and better resource utilization means fewer servers are needed.
  • Faster innovation: Researchers can spin up AI environments in minutes, not days.
  • Scalability: The infrastructure can grow with the demand for AI computing.

In contrast, staying on a proprietary hypervisor would have meant higher costs and limited flexibility, potentially slowing down AI research and development.

Safety and Security Considerations

Hypervisor migration also has security implications. KVM is known for its strong isolation between VMs, which is critical when running untrusted AI models or handling sensitive data. However, the migration process itself must be handled carefully to avoid data breaches. Best practices include:

  • Encrypting data in transit and at rest during migration.
  • Testing security configurations in a sandbox environment.
  • Ensuring that access controls are updated for the new infrastructure.

For AI workloads, data privacy is paramount, especially when dealing with medical or financial data. The hypervisor's ability to isolate workloads is a key safety feature.

Frequently Asked Questions

Why not just use containers without a hypervisor?

Containers share the host OS kernel, which can be a security risk if a container is compromised. Hypervisors provide a stronger isolation boundary, which is important for multi-tenant environments and for running untrusted AI models. Also, some AI frameworks require specific kernel versions or hardware access that are easier to manage with VMs.

What is the difference between KVM and VMware?

KVM is an open-source hypervisor built into the Linux kernel, while VMware is a proprietary product. KVM is free and offers better performance for GPU workloads due to its lightweight architecture. VMware has more enterprise management features but at a higher cost and with more overhead.

How long does a hypervisor migration take?

The duration varies widely depending on the size of the environment. A small cluster of 10 nodes might take a few weeks, while a large data center with hundreds of VMs could take several months. The key is to plan thoroughly and test each step.

Will my AI models run faster after migration?

In many cases, yes. KVM's lower overhead and better GPU support can reduce latency and improve throughput. However, the actual speedup depends on your workload and how well you tune the new environment. It's not a guaranteed improvement, but it's often significant.

Is it necessary to migrate to an open-source hypervisor for AI?

No, but it is common because open-source hypervisors are more flexible and cost-effective for large-scale AI deployments. Some organizations use proprietary hypervisors with good GPU support, but they may face limitations in customization and cost.