From Xen to KVM: Making sense of changes in RHEL 6

Migrating VMs from Xen to KVM virtualization sounds daunting, but Red Hat Enterprise Linux 6 includes tools to ease the transition. These migration tools are among other new virtualization features in RHEL 6.

With the release of its latest operating system, Red Hat Inc. has dropped open source Xen as its virtualization

platform. Red Hat Enterprise Linux 6 instead supports the Kernel-based Virtual Machine (KVM) hypervisor. While initially IT shops may face the move with trepidation, a Xen-to-KVM migration needn’t be overly challenging.

Indeed, Red Hat’s move from  shouldn't be a problem for organizations that already run Xen virtual machines (VMs). The vendor still supports Red Hat Enterprise Linux (RHEL) 5, which uses Xen. But for users who want to switch to KVM, RHEL 6 includes tools to make the Xen-to-KVM virtual machine migration process easier.

New virtualization features in RHEL 6
This Xen-to-KVM migration tool, virt-v2v, provides an easy-to-use interface for converting Xen VMs to KVM. The tool moves VM image files from Xen or VMware ESX environments by directly accessing the file system and changing the necessary parameters. (The difference between Xen and KVM image files is fairly small.) Virt-v2v can also add the proper Virtio drivers in the converted VM.

Another tool in RHEL 6, libguestfs, makes it easy to access and modify VM disk image files. The libguestfs is a driver that allows admins to mount the file system directly in a VM to change the guest’s parameters.

RHEL 6 also includes modifications that increase support for virtualization. These options aren’t visible to most users, but they can make a huge difference. The KVM emulation layers are less prominent in RHEL 6, which means that more direct work can be accomplished. The Virtio tools are also improved and can help VMs utilize hardware more efficiently. The new features allow VMs to be serviced faster, and help optimize internal resource usage.

One of the most important additions to RHEL 6 is Pacemaker, a high-availability cluster resource manager. Pacemaker is important for virtualization because it makes virtual machines independent of the underlying hardware. Along with live migration -- a default component in KVM -- high availability helps administrators avoid problems associated with downtime.

The move from Xen to KVM doesn’t change everything, though. Virtual machine management remains basically the same in RHEL 6, because Xen and KVM use the same management interface, which is based on libvirt. So the familiar Virtual Machine Manager and the shell-based virsh tools are still available for RHEL 6.

This was first published in March 2011

Dig deeper on Open source virtualization

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchVMware

SearchWindowsServer

SearchCloudComputing

SearchVirtualDesktop

SearchDataCenter

Close