Xen is cool
Xen is one of the coolest open source projects I’ve seen. Like I said in my previous post, it’s a way of doing a VMWare style of virtualisation on x86 hardware. Like the Xen guys say:
Xen is a virtual machine monitor for x86 that supports execution of multiple guest operating systems with unprecedented levels of performance and resource isolation.
As I found out after talking to CSam from VPAC, the VMWare license states that you cannot use it for grid computing. I would have thought that VMWare would be great to use for testing simple grid computing configurations, so this restriction seems a little harsh.
The way that Xen works is that you create virtual machines running under a hypervisor, which is a xen-patched linux kernel. You can install any disto you like to become the hypervisor, but the difference is that instead of booting the linux kernel directly, you actually boot a Xen image first, which then loads the xen-patched Linux kernel. To Xen, this machine is known as the domain0.
When you have this up and running, you can begin to create your domainU machines inside of this. The easiest way to do this is by mounting the filesystem for your new VM, and doing a manual gentoo-style install of whatever distro you like. For the RPM based distro’s, there is a tool to accomplish this for you very easily. A Gentoo install isn’t much different, and debian provide a mechanism for bootstrapping also.
By default, Xen uses bridging to bridge together your eth0 from your domain0 to the eth0 of the VM’s, but this is completely configurable. From here, you can then use the virtual console connection to your VM’s to start making your VM’s do stuff.
For a very quick guide to setting up a Xen system, you can take a look at Damon’s guide using CentOS, but it would definately be a good idea to read the Xen docs first.

7 Comments