From Xen to KVM: Making sense of changes 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

    Requires Free Membership to View

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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.