|
|
Subscribe / Log in / New account

Distributions

News and Editorials

Proxmox VE 1.5: combining KVM and OpenVZ

February 24, 2010

This article was contributed by Koen Vervloesem

Now that virtualization is widespread, it becomes more important to have an easy-to-use, turnkey solution. The big hypervisor vendors are all working on their own virtualization management solutions, but one can also find interesting solutions in independent open source projects. One of these projects is Proxmox VE (Virtual Environment). Its unique selling point is that it marries the KVM hypervisor with OpenVZ virtual containers.

Proxmox VE makes it really easy to deploy a virtualization server. Users can download the ISO, burn it to a CD, put it in their server, answer a few questions the installer asks, and start serving virtual machines right away. Just be aware that the installer doesn't allow customizing the partitioning setup; it claims the whole hard drive. The system runs headless and can be configured using a web interface. Proxmox VE requires a 64-bit CPU with Intel VT or AMD-V instruction set and at least 2 GB of RAM if the user plans to run more than a handful of virtual machines.

Proxmox VE 1.5 is a heavily tweaked Debian Lenny (5.0) x86_64 distribution that partitions the hard drive with LVM2, installs a web-based management interface, and is optimized for use as a virtualization environment. Proxmox uses Debian Lenny's main and contrib repositories, as well as the security.debian.org repository with security updates. It adds its own download.proxmox.com repository that supplies custom kernels and some management tools. Proxmox VE is GPLv2-licensed and the German company Proxmox Server Solutions offers commercial support.

KVM and OpenVZ

Users can launch two sorts of virtual machines. First, one can use KVM for full virtualization. This allows the user to run a lot of operating systems, such as Windows, Linux, the BSDs, etc., because the operating system in the virtual machine runs on virtualized hardware that looks like real hardware. Proxmox VE also supports KVM with paravirtualization for device drivers to improve I/O performance, e.g. with paravirtualized network drivers for Windows guests.

The other flavor consists of OpenVZ containers, a form of operating system-level virtualization. Applications within a container appear to be on a standalone system, because processes in different containers are completely isolated from each other. Although each container appears as a standalone operating system, in reality they share a single instance of the Linux kernel: the Proxmox KVM/OpenVZ kernel. This also means that OpenVZ containers are lightweight. Users can download so-called OpenVZ templates, which are essentially gzipped tar files that contain a pre-installed image of a Linux system.

The combination of KVM and OpenVZ in one kernel is a major feat. It took an explanation by Proxmox VE's project lead Martin Maurer for your author to understand the challenges. Proxmox publishes three kernel branches, each one with minor feature differences. By default, Proxmox VE uses a 2.6.18 kernel, based on the latest Red Hat Enterprise Linux 5 kernel with the stable OpenVZ patches (which are also based on the 2.6.18 kernel) and backported KVM patches. The Proxmox developers added some minor driver updates and did a lot of integration and testing to combine both virtualization technologies in one kernel.

The second kernel version that Proxmox maintains is 2.6.24, based on the Ubuntu 8.04 (LTS) kernel but with driver updates and KVM patches. This kernel only exists for historical purposes, because Proxmox VE 0.9 beta until 1.4 used 2.6.24. However, the OpenVZ part is no longer maintained by the OpenVZ project, so while this kernel has KVM and OpenVZ support, all OpenVZ users should use the 2.6.18 kernel in Proxmox VE now. Last but not least, Proxmox VE also maintains a 2.6.32 kernel, based on the Ubuntu 10.04 (LTS) kernel but with some additional driver updates. It lacks OpenVZ support (because the stable OpenVZ version doesn't support this kernel), but it is interesting for users that want to have the latest KVM features, such as KSM (Kernel Samepage Merging).

Hands-on virtualization

[Web interface]

Administering Proxmox is done by using the web interface, which is also lightweight. It doesn't use the Java-based Tomcat like VMware Server does, but just Apache with HTML pages that use the Prototype JavaScript library and the SOAP::Lite Perl library. The user can manage virtual machines, migrate them to other hosts, backup the system, monitor all running virtual machines, and do a slew of other management tasks.

Before starting a virtual machine, the user has to upload the ISO file or OpenVZ template. In the web interface, this can be done by clicking on "Virtual Machines - Create", selecting the image from local storage or from the host machine's CD-ROM drive, and then filling in the required information. The other solution is to scp the image over to /var/lib/vz/template/cache (for an OpenVZ template) or /var/lib/vz/template/iso (for an ISO image to start a KVM machine). But the user can also download pre-defined OpenVZ templates from within the web interface.

If the user wants a graphical window for a virtual machine, this can be done too: the Proxmox VE web interface has an embedded Java applet which launches a VNC console window on the client machine. Of course users are free to use their own favorite VNC client.

Proxmox VE has an integrated backup feature: VZDump, a utility that makes consistent backups of running virtual machines, be it OpenVZ containers or KVM guests. To make this possible for an online guest without downtime, VZDump uses the LVM2 storage to create a snapshot of the guest's virtual disk. The user can configure backups from within the web interface by defining the location of the remote storage and scheduling the cron job for the backup.

Users can also create a Proxmox VE Cluster that consists of one master node and one or more slave nodes, all running Proxmox VE. Users can then manage the virtual machines on all their Proxmox VE servers from one web interface, but they can also migrate their virtual machines between hosts, even live (that is, without recognizable downtime). Live migration is a standard feature of both KVM and OpenVZ, and both are supported in Proxmox.

OpenVZ containers have to be stored on local storage, but for KVM guests Proxmox VE adds a flexible storage model. From within the web interface, users can add iSCSI targets, NFS shares, LVM groups on shared storage, and locally mounted Samba shares. Thanks to the Debian base it also supports ATA over Ethernet (AoE) and replicated DRBD devices.

Ready-made appliances

The Proxmox developers have released several virtual appliances, which are ready-made OpenVZ templates that can be downloaded directly from within the Proxmox web interface. There are operating system appliances with a standard Debian 4.0, 5.0 or 6.0 installation, an Ubuntu 8.04 installation, a CentOS 4 or 5 installation or a Fedora 9 installation, but there are also so-called application appliances. These are tailored to a specific task, such as the Proxmox Mail Gateway, Acquia Drupal, SugarCRM, Zenoss, MediaWiki, Joomla!, WordPress, Zimbra, and so on. Proxmox has also created a script to automate the creation of custom OpenVZ appliances based on Debian, the Debian Appliance Builder.

Roadmap

Given that Proxmox VE has only been public for less than two years (0.9 was released in April 2008), the project has already an impressive feature list. Additionally, the developers have plans for much more: the roadmap for the 2.x releases mentions high-availability for KVM guests, advanced user management, more pre-built virtual appliance downloads, resource monitoring and a firewall. The future also promises a more pleasant marriage of KVM and OpenVZ, Martin explains:

Our internal development for Proxmox VE 2.x is already working on top of Debian Squeeze. As Squeeze doesn't boot from a 2.6.18 or 2.6.24 kernel, we'll need 2.6.32. Luckily, OpenVZ project lead Kir Kolyshkin announced that the next stable OpenVZ kernel will be 2.6.32 based. They even try to get their kernel into Squeeze. So we plan to get OpenVZ in our 2.6.32 kernel for Proxmox VE 2.x. It also looks like 2.6.32 is the next long-term maintenance kernel and there are also rumors that it will be used in Red Hat Enterprise Linux 6. Additionally, LXC (Linux containers) is under our radar and this looks quite interesting for us because it is in the mainline kernel.

All in all, Proxmox VE is a nicely integrated solution to run and manage virtual machines: what sets it apart from many other solutions is not only that it runs both KVM and OpenVZ, but also that it's not just a web interface or just a kernel that you install on an existing Linux installation. Instead it's a whole collection of components that gives the user a running system in a few minutes. So even for users that don't need both KVM and OpenVZ, Proxmox should be on their shortlist of virtualization platforms to try.

Comments (8 posted)

New Releases

Debian Installer 6.0 Alpha1 release

The Debian Installer Team has announced the Debian Installer 6.0 Alpha1. "As most people will have noticed, this release has taken more time than usual. This was for various reasons that go from technical (major changes in the installer itself and other components that affect us) to lack of manpower to manage all the work required quickly. We really need more people to help us and contribute; please contact us if you're interested in helping." Click below for a summary of new features and improvements.

Full Story (comments: none)

Number Two Always Tries Harder: openSUSE Milestone 2 released

The second milestone release of openSUSE 11.3 is available for testing. "Milestone 2 is part of the milestones where we track new releases in the open source universe and test the building of our various distribution images with them. While milestone 1 introduced various pre-release versions of free and open source projects (KDE 4.4 RC1, OpenOffice 3.2 Beta4 or VirtualBox 3.1 beta 1) into our development distribution openSUSE Factory, this milestone is characterized by final releases of those projects."

Full Story (comments: none)

PC-BSD 8.0 Released

The PC-BSD Team has announced the availability of PC-BSD 8.0 (Hubble Edition), running FreeBSD 8.0-RELEASE-P2, and KDE 4.3.5. "PC-BSD 8.0 contains a number of enhancements and improvements over the 7.x series. For a full list of changes, please refer to the changelog."

Comments (none posted)

Distribution News

Fedora

Fedora Board Recap 2010-02-18

Click below for a recap of the February 18, 2010 meeting of the Fedora Advisory Board. Topics include Improved metrics, Trademark approval for Security spin, Strategic Working Group outputs, What is Fedora the distro?, and Personas.

Full Story (comments: none)

Board SWG Meeting 2010-02-22 Recap

Click below for a recap of the February 22, 2010 meeting of the Fedora Board Strategic Working Group. Topics include Default Distribution Offering and Clarifying Issues Around Spins.

Full Story (comments: none)

Ubuntu family

identi.ca and twitter accounts setup to report the state of the Ubuntu archives

Robbie Williamson introduces identi.ca and twitter feeds to provide alerts and status when there are problems in the Ubuntu archives that are likely to cause serious problems for a large number of users.

Full Story (comments: none)

Ubuntu Netbook Remix enlightens ARM support (DesktopLinux)

DesktopLinux takes a look at Ubuntu's ARM port and other Ubuntu news. "Canonical is developing a 2D ARM interface based on Enlightenment Foundation Libraries for the upcoming Ubuntu 10.04 ("Lucid Lynx") version of Ubuntu Netbook Remix. In other Ubuntu news, Ubuntu Live CDs in Lucid Lynx will boot 33 percent faster, and The Linux Box will market Ubuntu."

Comments (1 posted)

Other distributions

Peter Tribble: OpenSolaris: Oracle, where art thou?

OpenSolaris developer Peter Tribble wonders about the fate of OpenSolaris. "That silence has continued. OpenSolaris has - publicly at least - been completely ignored by Oracle. It's as if we don't exist. Somewhat perturbed by this state of affairs, I asked for a communication channel to be established between Oracle and the OGB [OpenSolaris Governing Board]. This was ignored. The OGB pointed out (in pretty strong terms) to those Sun staff that we do have communication with that some level of contact was needed. We haven't heard back."

Comments (none posted)

Distribution Newsletters

Misc Debian developer news (#21)

This issue of miscellaneous Debian developer news covers DEHS, watching 10 000 packages, + Conversion of source packages to 3.0 (quilt/native), + DEHS now supports format 3.0 source packages, + userdir-ldap mail gateway updated, and + piuparts.d.o.

Full Story (comments: none)

DistroWatch Weekly, Issue 342

The DistroWatch Weekly for February 22, 2010 is out. "Now in its eighth incarnation, Linux Mint is no longer a new entry on the distribution list, but judging by its growing popularity, it's still marching from strength to strength. In this issue, we talk to Clement Lefebvre, the project's founder and lead developer, about the latest version, then take it for a quick test drive to see whether it justifies its label as being one of the most user-friendly operating systems available today. In the news section, Debian announces the availability of the first alpha release of its installer for "Squeeze", Ubuntu outlines plans for a new and lighter user interface for the ARM-based netbooks, OpenSolaris developers express disappointment over lack of communication from Oracle regarding their project, and Mandriva updates KDE to the recently released version 4.4 in its development branch, the "Cooker". Also in this issue we'll take a look at some of the disk mounting options that could increase the speed of accessing hard disks in modern Linux distributions. Happy reading!"

Comments (none posted)

Fedora Weekly News 214

The Fedora Weekly News for February 21, 2010 is out. "In Announcements, we start off with an invitation to contribute Fedora 13 Talking Points from the Fedora Marketing team. Also of note is the Fedora 13 branching and freezing that happened last week, and announcement of a new privilege escalation policy for Fedora packaging. In news from the Fedora Planet, details on how libvirt deals with different CPU models and passing on their capabilities to guests, a discussion on the value of having a target audience for Fedora, how to update your system BIOS without having to use Windows or a USB stick, and announcement of a new utility, gnome-speaker-setup. We're pleased to welcome Neville Cross to FWN to cover the Fedora Marketing Team activities for FWN. Neville's beat this week includes pointers to the Team's meeting last week as well as more internal detail on the Fedora 13 Talking Points, mentioned above. The Ambassador's beat includes coverage of last week's Southern California Linux Expo (SCALE 8X) con in California. In news from the Quality Assurance team, details on last week's team meetings, as well as the first Test Day in some time, this on Color Management, also updates on Fedora 13 images and a new Security Spin. In Translation news, announcement of Transifex v.0.7.4 for testing on the Fedora staging server, progress on the QA test of Fedora 13's L10n, and an update on Midnight Commander's availability for translations. In the Art/Design beat, updated details on Fedora 13 artwork including wallpapers, and testing results of the new Design Suite spin. Security Advisories provides last week's security patches for Fedora 11, 12, and for the first week, Fedora 13. This rounds out FWN 214, enjoy reading!"

Full Story (comments: none)

openSUSE Weekly News/111

This issue of the openSUSE Weekly News covers openSUSE News: Number Two Always Tries Harder: openSUSE Milestone 2, - Linux User & Developer/Kunal Deo: Another ten essential Python tips, - Gabriel Burt: Banshee Community Extensions, - How to Make sure I didn't get a Virus?, and - Jason McDonald: Qt 4.6.2 Released.

Comments (none posted)

Ubuntu Weekly Newsletter #181

The Ubuntu Weekly Newsletter for February 20, 2010 is out. "In this issue we cover: Debian Import Freeze in effect, Feature Freeze in place - Alpha 3 freeze ahead, New MOTU, Ubuntu single sign on service launched, Meet Jelmer Vernooij, Sikuli - scripting your use of GUIs, Global Bug Jam, Taking Lucid for a test spin, Opportunistic Developer Update, Ubuntu One Music Store, One Hundred Paper Cuts, Mark Shuttleworth to give keynote at PyCon 2010, Ubuntu UK Podcast returns, Ubuntu torrents are now IPv6 enabled, and much, much more!"

Full Story (comments: none)

Page editor: Rebecca Sobol
Next page: Development>>


Copyright © 2010, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds