Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Xen on CentOS4

Just in case any­one is won­der­ing if you can in­stall the Xen hy­per­vi­sor on a Cen­tOS box:

  1. Sure. It works just fine.

  2. Ok, there are a cou­­ple of glitch­es in the in­­stal­l.

Here's how I did it, on a Cen­tOS 4.2 box:

  • Get the in­­stall script for RHEL 4.1

  • Fix the val­i­­date_os_ver­­sion func­­tion:

validate_os_version() {
    #grep "Red Hat Enterprise Linux AS release 4 (Nahant Update 1)" /etc/redhat-release 2>/dev/null >/dev/null
   true
}
  • Run it

  • Fix your grub.­­conf adding this :

title Xen 3.0 / XenLinux 2.6
  kernel /boot/xen-3.0.gz dom0_mem=262144
  module /boot/vmlinuz-2.6-xen root=/dev/hda1 ro console=tty0
  module /boot/initrd-2.6-xen.img
  • Fix your glibc by do­ing this:

mv /lib/tls/ /lib/tls.disabled
  • Boot on the Xen op­­tion from Grub, and you al­ready have a Cen­­tOS Dom0. Quite sim­­ple, was­n't it? :-)

Main prob­lem: The Xen ker­nel you are boot­ing suck­s, be­cause it sup­ports no un­usu­al hard­ware. So, it would be a good idea to hack a de­cent Xen-lin­ux-k­er­nel sim­i­lar to Cen­tOS un­sup­port­ed one.

Now it's time to start toy­ing with Cen­tOS par­ti­tion­s, but they are sup­posed to be sim­ple.


Contents © 2000-2024 Roberto Alsina