Not booting into CloudLinux Kernel
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Harry Perks
  2. Friday, 01 April 2011
  3.  Subscribe via email
Issue when installing CloudLinux on cPanel Xen VPS
Rate this post:
  1. 01.04.2011 14:04:52
  2. # 1
Harry Perks Accepted Answer
Posts: 4
Joined: 01.04.2011
0
Votes
Undo
Hi,

I have successfully upgraded my entire fleet to CloudLinux. However, there is an issue with a cPanel Xen CentOS VPS I have.

After running the CloudLinux install script with a legitimate license and rebooting, the kernel is not switching to CloudLinux:

[email protected] [~]# uname -r
2.6.18-194.26.1.el5xen

Can somebody please provide assistance here? I am relatively new to this so assistance is greatly appreciated.

Thanks, Harry.
  1. 01.04.2011 14:04:09
  2. # 2
Igor Seletskiy Accepted Answer
Posts: 1201
Joined: 09.02.2010
0
Votes
Undo
Could you post content of:
/boot/grub/grub.conf

Most likely you are on paravirtualized VM, and you will need to use PvGrub or PyGrub to get it working.
  1. 01.04.2011 14:04:30
  2. # 3
Harry Perks Accepted Answer
Posts: 4
Joined: 01.04.2011
0
Votes
Undo
Hi Igor,

Thanks for a very speedy response. This seems to be a very strange one and sometimes I get the feeling this server is running CL, but the kernel suggests otherwise.

--
[email protected] [~]# cat /boot/grub/grub.conf
default=0
timeout=10
title CloudLinux Server (2.6.18-294.26.1.el5.lve0.8.18xen)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-294.26.1.el5.lve0.8.18xen console=xvc0 root=/dev/sda1 ro
initrd /boot/initrd-2.6.18-294.26.1.el5.lve0.8.18xen.img
title CloudLinux Server (2.6.18-294.26.1.el5.lve0.7.49xen)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-294.26.1.el5.lve0.7.49xen console=xvc0 root=/dev/sda1 ro
initrd /boot/initrd-2.6.18-294.26.1.el5.lve0.7.49xen.img
title CentOS (2.6.18-194.26.1.el5xen)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-194.26.1.el5xen console=xvc0 root=/dev/sda1 ro
initrd /boot/initrd-2.6.18-194.26.1.el5xen.img
--

However, despite uname -r showing 2.6.18-194.26.1.el5xen, in WHM it\'s reporting the following:

CLOUDLINUX 5.5 x86_64 xenpv on cpanel013
  1. 01.04.2011 14:04:56
  2. # 4
Igor Seletskiy Accepted Answer
Posts: 1201
Joined: 09.02.2010
0
Votes
Undo
is there control panel for starting/stopping VM?

I think there should be a way to specify if it is using pygrub, or not in there.
So, sometimes when you restart without pygrub -- it would go into using host kernel.
Yet, when running with pygrub -- it would run ours.
Can that be the case?
  1. 01.04.2011 14:04:37
  2. # 5
Harry Perks Accepted Answer
Posts: 4
Joined: 01.04.2011
0
Votes
Undo
I\'m running SolusVM... are you referring to this part of the VPS\' configuration file? I manage this node and virtualize it so I have full access.

kernel = \'/boot/solus-vmlinuz\'
ramdisk = \'/boot/solus-initrd.img\'
#bootloader = \'/usr/bin/pygrub\'

Excuse my incompetence here.
  1. 01.04.2011 14:04:28
  2. # 6
Igor Seletskiy Accepted Answer
Posts: 1201
Joined: 09.02.2010
0
Votes
Undo
yep, that is the one. Uncomment bootloader line and try restarting.
  1. 01.04.2011 14:04:03
  2. # 7
Harry Perks Accepted Answer
Posts: 4
Joined: 01.04.2011
0
Votes
Undo
Igor, this is genius stuff, thank you so much!

[email protected] [~]# uname -r
2.6.18-294.26.1.el5.lve0.8.18xen

Not sure why I didn\'t come here before, lovely support. :)

Have a nice day.
  1. 16.06.2011 02:06:35
  2. # 8
Nguyen Bao Accepted Answer
Posts: 3
Joined: 16.06.2011
0
Votes
Undo
I also have a similar problem but I am using the HyperVM control panel with XEN virtualization. I\'ve added \"bootloader = \'/usr/bin/pygrub\'\" to VPS\' configuration file but VPS not boot !

Help me !
  1. 16.06.2011 02:06:23
  2. # 9
Nguyen Bao Accepted Answer
Posts: 3
Joined: 16.06.2011
0
Votes
Undo
Harry Perks wrote:
Hi,



I have successfully upgraded my entire fleet to CloudLinux. However, there is an issue with a cPanel Xen CentOS VPS I have.



After running the CloudLinux install script with a legitimate license and rebooting, the kernel is not switching to CloudLinux:



[email protected] [~]# uname -r

2.6.18-194.26.1.el5xen



Can somebody please provide assistance here? I am relatively new to this so assistance is greatly appreciated.



Thanks, Harry.


I also have a similar problem but I am using the HyperVM control panel with XEN virtualization. I\'ve added \"bootloader = \'/usr/bin/pygrub\'\" to VPS\' configuration file but VPS not boot !

Help me !
  1. 16.06.2011 10:06:39
  2. # 10
Mike Hoffs Accepted Answer
Posts: 3
Joined: 07.06.2011
0
Votes
Undo
do u have a valid /boot/grub/menu.lst file ?

If not try:
# yum install grub
# yum install kernel-xen

After that reinstall cloudlinux kernel and make it default.
  1. 16.06.2011 11:06:41
  2. # 11
Igor Seletskiy Accepted Answer
Posts: 1201
Joined: 09.02.2010
0
Votes
Undo
HyperV is different. It doesn\'t use PyGrub, but usually fails on new install due to lack of integration components. More info here:
https://helpdesk.cloudlinux.com/index.php?/Knowledgebase/Article/View/59/0/hyper-v--vm-fails-to-boot-after-it-was-converted-to-cloudlinux
  1. 18.06.2011 03:06:04
  2. # 12
Nguyen Bao Accepted Answer
Posts: 3
Joined: 16.06.2011
0
Votes
Undo
Content file \"/boot/grub/menu.lst\" :

default=0
timeout=5
hiddenmenu
title CloudLinux (2.6.18-338.12.1.el5.lve0.8.34)
root (hd0)
kernel /boot/vmlinuz-2.6.18-338.12.1.el5.lve0.8.34 ro root=/dev/sda1 selinux=0
initrd /boot/initrd-2.6.18-338.12.1.el5.lve0.8.34.img
title CentOS (2.6.18-194.32.1.el5)
root (hd0)
kernel /boot/vmlinuz-2.6.18-194.32.1.el5 ro root=/dev/sda1
initrd /boot/initrd-2.6.18-194.32.1.el5.img
title CentOS (2.6.18-194.32.1.el5xen)
root (hd0)
kernel /boot/vmlinuz-2.6.18-194.32.1.el5xen ro root=/dev/sda1
initrd /boot/initrd-2.6.18-194.32.1.el5xen.img
title CentOS (2.6.18-194.8.1.el5xen)
root (hd0)
kernel /boot/vmlinuz-2.6.18-194.8.1.el5xen ro root=/dev/sda1
initrd /boot/initrd-2.6.18-194.8.1.el5xen.img


I\'ve added \"bootloader = \'/usr/bin/pygrub\'\" to VPS\' configuration file but VPS not boot !

How do I switch pygrub mode on HyperVM settings ?
  1. 17.08.2011 07:08:56
  2. # 13
Sahil Chugh Accepted Answer
Posts: 1
Joined: 17.08.2011
0
Votes
Undo
Hi,

I am trying to install CloudLinux on a cPanel VPS running on a XEN PV virtualization. As discussed above, I tried to use PyGrub kernel in VPS. But after changing the kernel, VPS does not boot.
When I change the kernel back, it boots again.

I cannot find the grub.conf and menu.lst files on the VM. But still VM boots.

The following error is encountered with PyGrub:
Traceback (most recent call last):
File \"/usr/bin/pygrub\", line 691, in ?
chosencfg = run_grub(file, entry, fs)
File \"/usr/bin/pygrub\", line 545, in run_grub
g = Grub(file, fs)
File \"/usr/bin/pygrub\", line 203, in __init__
self.read_config(file, fs)
File \"/usr/bin/pygrub\", line 402, in read_config
if self.cf.filename is None:
AttributeError: Grub instance has no attribute \'cf\'
No handlers could be found for logger \"xend\"
Error: Boot loader didn\'t return any data!


Any help would be really appreciated!

Thanks!
  1. 26.04.2012 07:04:41
  2. # 14
mark johnson Accepted Answer
Posts: 1
Joined: 04.09.2011
0
Votes
Undo
Hi,

I too have the same problem.

I have a VPS running in Xen (SolusVM).

I uncommented the bootloader in VM config as such:
kernel = \'/boot/solus-vmlinuz\'
ramdisk = \'/boot/solus-initrd.img\'
bootloader = \'/usr/bin/pygrub\'

My grub says this:

# cat /etc/grub.conf
default=0
timeout=5
title CloudLinux Server (2.6.18-408.el5.lve0.8.58xen)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-408.el5.lve0.8.58xen console=xvc0 root=/dev/sda1 ro
initrd /boot/initrd-2.6.18-408.el5.lve0.8.58xen.img


However it is still says:
# uname -r
2.6.18-308.el5xen

I did follow the guide here:
https://helpdesk.cloudlinux.com/index.php?/Knowledgebase/Article/View/78/0/how-do-i-configure-cloudlinux-kernel-on-pv-xen

Although, I have quite a few kernel\'s installed, so I don\'t know which ones to remove.
# rpm -qa|grep kernel
kernel-xen-2.6.18-308.4.1.el5
kernel-xen-2.6.18-408.el5.lve0.8.58
kernel-headers-2.6.18-408.el5.lve0.8.58
kernel-xen-2.6.18-308.1.1.el5

Any help will be appreciated.
  1. 02.12.2019 06:12:33
  2. # 15
Vixen Accepted Answer
Posts: 0
Joined: 02.04.2020
0
Votes
Undo
It's strange that this issue is not fixed yet by Cloudlinux !
I also have a Xen VPS on SolusVM. Cloudlinux has installed successfully on the server but as OP said, after rebooting, the kernel is not switching to CloudLinux.

I couldn't find #bootloader = \'/usr/bin/pygrub\' . Where is it exactly?
Any idea how to use Cloudlinux on a Xen server ?
  1. 02.12.2019 11:12:24
  2. # 16
Sergey Khristich Accepted Answer
Posts: 263
Joined: 20.05.2019
0
Votes
Undo
It's strange that this issue is not fixed yet by Cloudlinux !
I also have a Xen VPS on SolusVM. Cloudlinux has installed successfully on the server but as OP said, after rebooting, the kernel is not switching to CloudLinux.

I couldn't find #bootloader = \'/usr/bin/pygrub\' . Where is it exactly?
Any idea how to use Cloudlinux on a Xen server ?

Hello Vixen! Thank you for reaching out! To help you with this question we need a little bit more information, please create a ticket here https://cloudlinux.zendesk.com/hc/en-us/requests/new and technical experts will help you asap.
If you have any other questions, feel free to ask here.
Thank you for contacting us.
Marketing Manager
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.