The History and Future of KVM Virtualization Technology
2012-08-13 00:00:00
In September 2008, Red Hat acquired a small Israeli company called Qumranet, thereby gaining access to a virtualization technology called KVM (KVM, short for Kernel-based Virtual Machine, meaning a kernel-based virtual machine). At the time, the virtualization market was dominated mainly by VMware, while KVM had attracted only some attention on non-commercial distributions such as Ubuntu.
In September 2009, Red Hat released version 5.4 of its enterprise Linux (RHEL 5.4), adding KVM on top of the original Xen virtualization mechanism.

In November 2010, Red Hat released version 6.0 of its enterprise Linux (RHEL 6.0), which completely removed the default-installed Xen virtualization mechanism and offered only KVM virtualization.
In early 2011, Red Hat's long-time partner IBM approached Red Hat, saying that KVM was worth pursuing with greater effort. So in May, IBM and Red Hat, together with HP and Intel, founded the Open Virtualization Alliance (OVA), jointly declaring that they would improve KVM's image and accelerate its market adoption, thereby avoiding a situation where VMware dominated the market alone. At the time of the alliance's founding, a Red Hat spokesperson said, 'Everyone wants an open-source alternative besides VMware. Future cloud infrastructure will definitely be based on open source. ... We want to foster an ecosystem in which small vendors can easily participate.'
Thus, the Open Virtualization Alliance was successfully established. In the short 3 months from May to August, the alliance's membership had grown to nearly 300, and its development pace was quite remarkable. IBM has now extensively optimized its entire hardware line for Red Hat Linux and KVM, with more than 60 developers dedicated to KVM-related code.
Why did Red Hat, which originally used Xen technology, want to develop another technology like KVM? And why did IBM, which has long maintained close cooperation with VMware, Citrix, and Microsoft in virtualization, show such great interest in Red Hat's KVM? All of this requires going back to the development of the entire virtualization, and even cloud computing, market...
A Brief History of Virtualization Development
Virtualization technology first appeared in the mainframe era. In the 1960s, IBM began experimenting with virtualization in its CP-40 mainframe system, later adopted it in the System/360-67, and developed product lines ranging from VM/CMS to the later z/VM. Virtualization technology on mainframes matured steadily over the following 20-plus years, but with the rise of minicomputers and x86, mainframes lost their influence in the emerging server market.
Due to differences in processor architecture, the mature virtualization technology of mainframes could not be used on minicomputers and x86. It was not until 2001 that VMware released the first virtualization product targeting x86 servers. In the following years, a lecturer at the University of Cambridge in the UK released Xen, an open-source virtualization project also aimed at x86, and founded XenSource; HP released the Integrity virtual machine for HP-UX; Sun launched Solaris Zone alongside Solaris 10, supporting both x86/x64 and SPARC architectures; and Microsoft finally added Hyper-V in Windows Server 2008 R2, released in 2008. During this period, VMware was acquired by EMC, and XenSource was acquired by Citrix.
In the following years, VMware gradually gained wide acceptance in the enterprise market, and Xen began to make its mark in the Internet space as well. Among mature server operating systems, Novell SUSE Linux Enterprise 10 was the first to adopt Xen technology. Xen was still very immature at the time, to the extent that Red Hat even teased Novell about it; but a few months later, when RHEL 5.0 was released, Red Hat decided to add Xen to its own default features as well - that was 2006, just 5 years earlier. For a time, in the Linux server space, Xen seemed to be the best virtualization choice besides VMware (in fact, there were not many other options).
However, as a virtualization technology on the Linux platform, Xen was for a long time not accepted into the Linux kernel code. For Xen's maintainers, this not only meant a great deal of extra work, but also meant that users, after spending considerable effort installing Xen, might run into unexpected problems (Note: Linux kernel 3.0, released in June 2011, already included support for Xen - Xen's engineers said this was the result of cleaning up 7 years of legacy code and submitting more than 600 patches). As for Red Hat, perhaps it was unhappy with this out-of-kernel maintenance approach, perhaps RHEL with Xen failed to win much market in enterprise virtualization, or perhaps Citrix was getting too close to Microsoft - for one reason or another, it began to consider abandoning Xen. In fact, Xen's overall market performance was mediocre at the time, and when Hyper-V was launched in 2008, some commentators even speculated that Citrix itself would drop Xen and move to Hyper-V (of course, Citrix later denied this on its official blog, saying it was simply working closely with Microsoft).
In short, Red Hat decided to choose an emerging, kernel-based virtualization technology: KVM. Moreover, just one year after formally adopting KVM, it announced that it would completely abandon Xen in its new product lines, concentrating its resources and efforts on KVM.
So, besides being part of the Linux kernel, what exactly are KVM's advantages? In 2008, a Red Hat spokesperson said that KVM offered better manageability and higher performance than Xen. Performance has to be judged by benchmarks, but different benchmarks give different results, so it is hard to say in general which is superior; as for manageability, Red Hat has always had considerable expertise in large-scale automated server management, and the relevant tools are mostly free and open source, which is quite good. For specific tools, you can check this page on KVM and the Xen wiki page.
Of course, KVM itself has some weaknesses: compared with the bare-metal virtualization architectures of Xen, VMware ESX, and Hyper-V, KVM is a hosted virtualization architecture running on top of the Linux kernel and consumes more computing resources. To address this, however, Intel and AMD have built dedicated VT-x and AMD-V extensions into their processor designs, and these features are updated with each hardware refresh, often bringing noticeable gains in virtualization performance and speed, so in the long run this is not a major problem.
Figure: Bare-metal virtualization architecture (left) and hosted virtualization architecture (right)
Red Hat's thinking is clear enough, but what was IBM thinking? That is not hard to understand, because VMware's current momentum in virtualization (and, by extension, cloud computing) closely resembles the situation of Microsoft Windows in the PC space in the 1980s and 1990s. A virtualization market with only VMware is certainly not what IBM wants to see.
However, KVM technology has been developing for little more than three years, while VMware has been around for ten years, so questions about the technology's maturity are inevitable: is it reliable to use KVM in data centers now?
IBM Executive: KVM Is Already Mature Enough for Data Centers
Big Blue has always seemed very confident about the technologies Red Hat chooses. From the commercialization of Linux in the 1990s, through the various Linux on system x/p/i/z offerings, to KVM this time, IBM and Red Hat have always been close. Since the two established a partnership in 1999, IBM's hardware product lines have been extensively optimized for Red Hat Linux; even when all parties considered KVM not yet mature enough, IBM adopted it as the underlying virtualization mechanism for its IBM Smart Business Enterprise Cloud cloud service, and has already won some public-sector customers (such as Brazil's highway management system). Inna Kuznetsova, Vice President of Marketing and Sales for IBM Systems Software and a member of the Open Virtualization Alliance board, told 51CTO editors, 'In 2010, if you had asked me whether KVM was mature enough for data centers, I would have been skeptical; but now I can say that KVM is ready for data centers.'
Inna Kuznetsova, Vice President of Marketing and Sales, IBM Systems Software
Red Hat, needless to say. Pan Yinglin, President of Red Hat Greater China, told 51CTO editors that IT in the cloud computing era has gradually shifted from providing solutions to providing services on demand. China's virtualization market is developing rapidly, and enterprises differ in scale and needs, requiring more personalized, more flexible, and faster-delivered services, which KVM can provide. By establishing the alliance and offering technical and marketing support, more ISVs can be attracted to the KVM platform, forming an application ecosystem, and KVM will mature and gain adoption ever more quickly. The fact that RHEL 6 supports only KVM is itself a sign of Red Hat's confidence in KVM's maturity.
Pan Yinglin, President of Red Hat Greater China
However, front-line IT operations staff seem to question this. Wang Wenwen, one of the people behind the program 'Dahua IT' (Big Talk IT), once set out to find a KVM user while making an episode; he asked 19 operations staff, all of whom used VMware, and only found a KVM user on the 20th. Although that user strongly supported KVM, the other 19 were not very optimistic about it. The author also asked some front-line operations engineers for their views; they said they had tried KVM in test environments (mostly running CentOS), but once too many virtual machines were created it felt sluggish and less stable than Xen and VMware.
Another worry for users is that Red Hat announced it was dropping Xen just 4 years after adopting it - what if it drops KVM someday too? On this point, however, the author thinks there is little cause for concern. First, every RHEL release has a lifecycle of ten years, and RHEL 5 will be supported until 2017, so as long as you do not upgrade to RHEL 6, you need not worry about losing Xen. Second, there are simply too few strong competitors in server virtualization today; unless Red Hat follows HP's treatment of webOS, tossing KVM aside and surrendering to VMware, it is unlikely to abandon KVM within the next few years.
As users, when choosing a technology, we inevitably worry about one thing or another: that the product is poor, that support will lag after adoption, that we will be locked in to a vendor, that costs will be too high. Is KVM mature enough? Can I use KVM? Such doubts are perfectly normal, and doing thorough testing before choosing is only proper. Objectively speaking, KVM today is certainly not as mature as VMware or Xen; as Kuznetsova also noted, for example in low-latency and high network I/O scenarios KVM is not yet good enough. What can be guaranteed for now is that, when users need it, KVM can create more than 300 virtual machines on a single host and may achieve the theoretical maximum scalability (see the Open Virtualization Alliance website); and through the alliance, Red Hat and IBM provide a wealth of KVM documentation and strive to foster a supportive technical community.
But beyond all that, users should keep one question in mind: am I willing to accept a virtualization market with only VMware? As Kuznetsova put it, 'We simply hope to give customers another choice.'