While many different Linux distributions include packages for Xen, this page focuses on CentOS 5 and Redhat Enterprise 5, which we have found to be well supported and easy to setup. To make full use of Xen, you should be running one of these distributions on a machine with plenty of RAM (2 GB or more), enough disk space for all the filesystems of instances you want to host, and a CPU that supports either Intel's VTI extensions or AMD Pacifica.
This documentation relates to the open source version of Xen only - the commercial variant supported by Citrix is treated separately by Cloudmin, and is covered on the Citrix Xen page.
The Cloudmin GPL install script should install a Xen-capable kernel and all other required packages
on the system it is run on, so none of the steps here are needed. All you need to do is reboot the system
after running the installer, and then verify that the kernel includes Xen support by running uname -r .
Once you have a freshly installed system running CentOS 5, the steps to set it up for Xen hosting are :
root via SSH or at the console.yum install kernel-xen kernel-xen-devel
/boot/grub/menu.lst like : title CentOS (2.6.18-8.1.4.el5xen)
root (hd0,2)
kernel /xen.gz-2.6.18-8.1.4.el5
module /vmlinuz-2.6.18-8.1.4.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
module /initrd-2.6.18-8.1.4.el5xen.img
/boot/grub/menu.lst and change the default= line to use the newly added Xen kernel, which will typically be the first one in the file (numbered 0).yum install xen parted
cat /dev/null >/etc/libvirt/qemu/networks/default.xml
reboot command. If you are at the console, you should be able to see Xen-related messages during the kernel boot process.xm list
If you see a line starting with Domain-0, then all is good.
/xen directory, which Cloudmin uses by default for Xen system images, with the command mkdir /xen
And that's it! You can now register this system as a Xen host in Cloudmin.
If your RHEL 5 system has the yum command installed and working, you can follow the exact same steps above. If not, use Redhat's up2date command instead :
root via SSH or at the console.up2date -u
up2date kernel-xen kernel-xen-devel
/boot/grub/menu.lst like : title Redhat Enterprise (2.6.18-8.1.4.el5xen)
root (hd0,2)
kernel /xen.gz-2.6.18-8.1.4.el5
module /vmlinuz-2.6.18-8.1.4.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
module /initrd-2.6.18-8.1.4.el5xen.img
/boot/grub/menu.lst and change the default= line to use the newly added Xen kernel, which will typically be the first one in the file (numbered 0).up2date xen
cat /dev/null >/etc/libvirt/qemu/networks/default.xml
reboot command. If you are at the console, you should be able to see Xen-related messages during the kernel boot process.xm list
If you see a line starting with Domain-0, then all is good.
/xen directory, which Cloudmin uses by default for Xen system images, with the command mkdir /xen
root via SSH or at the console.apt-get update
apt-get install ubuntu-xen-server libc6-xen xen-tools xen-utils-3.2 xen-hypervisor-3.2 parted
/boot/grub/menu.lst and change the default= line to use the newly added Xen kernel, which will typically be the first one in the file (numbered 0).reboot command. If you are at the console, you should be able to see Xen-related messages during the kernel boot process.xm list
If you see a line starting with Domain-0, then all is good.
/xen directory, which Cloudmin uses by default for Xen system images, with the command mkdir /xen
root via SSH or at the console.apt-get update
apt-get install xen-linux-system libc6-xen xen-tools xen-utils-3.2-1 xen-hypervisor-3.2-1-i386 parted
On a 64-bit system, replace the xen-hypervisor-3.2-1-i386 package above with xen-hypervisor-3.2-1-amd64.
/boot/grub/menu.lst and change the default= line to use the newly added Xen kernel, which will typically be the first one in the file (numbered 0).reboot command. If you are at the console, you should be able to see Xen-related messages during the kernel boot process.xm list
If you see a line starting with Domain-0, then all is good.
/xen directory, which Cloudmin uses by default for Xen system images, with the command mkdir /xen
root via SSH or at the console.apt-get update
apt-get install xen-linux-system parted
mv -i /etc/grub.d/10_linux /etc/grub.d/21_linux ; upgrade-grub/etc/xen/xend-config.sxp and un-commenting the line (network-script network-bridge)reboot command. If you are at the console, you should be able to see Xen-related messages during the kernel boot process.xm list
If you see a line starting with Domain-0, then all is good.
/xen directory, which Cloudmin uses by default for Xen system images, with the command mkdir /xen