SME Server as Xen Host
Users
SME Versions Supported: SME Server 7 beta series (Centos 4.2) - - Contribs.org certified on: ?
Nav Bar | Documentation | How-to Classification | Users | SME Server as Xen Host |
---|---|---|---|---|
Comments | Please add your comments about this How To |
Author(s): hfwang
Contributor(s): DarkMirage, snoble
License: GPL
Created: | june 2005 | Last updated: | december 8, 2005 |
---|
Notes: Work in progress!!!!! Use at your own risk! I am not a programming or compiling jedi, so use the force ;-)
(local copies of requiered RPM's or sources can be found here)
Procedure:
- You need your box to be connected to the internet
- Download and install devtools-7.0
- Download and install python-twisted
- Download and install curl-devel
- Download Xen 2.0.7 stable source
- Untar xen-2.0.7-src.tgz into the '/usr/src' directory
- Check all requirements before compiling and installing Xen. Change into directory '/usr/src/xen-2.0/tools/check'
- Issue the command './chk build' and './chk install' if anything is wrong, it will be listed in the logfiles within the same directory
- If the checks are ok (no logs), change back to the '/usr/src/xen-2.0' directory
- Prepare some compiling stuff:
cd /usr/src/linux-2.6.9-11.EL (or make sure you are in your source directory) cp configs/config-for-my-kernel .config (find out your correct kernel with 'uname -a') make oldconfig make include/asm make include/linux/version.h make SUBDIRS=scripts
- Change back to the Xen source dir and compile Xen by issueing the 'make world' command (this will download the 2.4 and 2.6 kernels from kernel.org)
- Install Xen by issueing 'make install'
- Add the new Xen kernel to Grub (/boot/grub/grub.conf) to match the below example:
default=0 timeout=10 title Xen 2.0.6 (kernel 2.6) kernel /xen-2.0.gz dom0_mem=512000 module /vmlinuz-2.6-xen0 ro root=/dev/md1 ro console=tty0 title CentOS-3-up (2.4.21-32.0.1.EL) root (hd0,0) kernel /vmlinuz-2.4.21-32.0.1.EL ro root=/dev/md1 initrd /initrd-2.4.21-32.0.1.EL.img title CentOS-3 (2.4.21-32.0.1.ELsmp) root (hd0,0) kernel /vmlinuz-2.4.21-32.0.1.ELsmp ro root=/dev/md1 initrd /initrd-2.4.21-32.0.1.ELsmp.img
where dom0_mem=xxxxxx the amount of memory you assign to the kernel. Do not use all memory, leave about 100Mb free for Xen
- Reboot and select the new kernel which is the new default
There is still an error once the machine has booted, try to do a 'lsmod' (QM_MODULES). I have found some clue:
If you want QM_MODULES to go away install module-init-tools that will take care of it, as far as this... file /lib/modules/2.6.11.10-xenU/modules.dep (No such file or directory) well, its not there, so shut down the domU and .. mount -o loop image.img /mount/point cp -dpR /lib/modules/2.6.11.10-xenU /mount/point/lib/modules/ umount /mount/point rev up the domU and have fun :)
The above is a proof of concept of the use of Xen and SME Server 7.0beta. Upto now, normal SME Server 7.0beta operation is not being infuenced by the Xen kernel. If you do encounter issues, please let them know.
TO DO
- Is it possible to recomplile the stock SME Server 7.0beta kernel with Xen in it so the new kernel becomes the default kernel?
- During the compilation of Xen, it recognises the sepcific hardware/driver and, modules of the machine it is compiled on. How does this effect a stock kernel? Is this anaconda related?
- Testing, testing, testing...
Nav Bar | Documentation | How-to Classification | Users | SME Server as Xen Host |
---|---|---|---|---|
Comments | Please add your comments about this How-To |
Feedback
SME Server as Xen Host Add your comments to this page.
Wiki Links List
Page Name | Hits |
---|---|
SME Server as Xen Host Feedback | 453 |
SME Server as Xen host and guest | 1398 |
Back to SME Server as Xen host and guest