How do I configure CloudLinux kernel on pv xen?

1. In /etc/sysconfig/kernel should be following lines:

UPDATEDEFAULT=yes
DEFAULTKERNEL=kernel-xen

If file does not exist, you should create it.

2. Install grub if it’s not installed:

3. Check /etc/modprobe.conf
It usually contains the following:

 

alias eth0 xennet
alias scsi_hostadapter xenblk

If the file does not exist – create it and then,
In case you have not installed kernel yet – continue to step 4.
In case you have already installed kernel: rebuild initrd image:

where ‘xxxx’ should be the same as you newly installed kernel-xen version
and move to step 5.
4. Run

5. Run

If /boot/grub/grub.conf does not exist, create it using template in step 5, and repeat step 3

5. Run

You should remove all kernels except xen kernel. For example, if output looks like this:

kernel-2.6.18-338.5.1.el5.lve0.8.25
kernel-xen-2.6.18-374.3.1.el5.lve0.8.44
kernel-headers-2.6.18-374.3.1.el5.lve0.8.44

then you should run

6. Make sure your /etc/grub.conf looks like this:

default=0
timeout=10
title CloudLinux Server (2.6.18-374.3.1.el5.lve0.8.44xen)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-374.3.1.el5.lve0.8.44xen console=xvc0 root=/dev/sda1 ro
initrd /boot/initrd-2.6.18-374.3.1.el5.lve0.8.44xen.img

! Mind the kernel version on vmlinuz and initrd, they should match version of currently installed kernel.

7. Switch to pygrub mode, and reboot the server. If you don’t know how to switch in pygrub mode, contact your service provider, as they should be able to do it for you.

bootloader = ‘/usr/bin/pygrub’

Leave a Reply

Your email address will not be published. Required fields are marked *