How do I configure CloudLinux kernel on pv xen?

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


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:


then you should run

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

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 *