| kernel Problem [message #33752] | 
			Sat, 08 November 2008 11:35   | 
		 
		
			
				
				
				
					
						  
						aoscentral
						 Messages: 29 Registered: November 2008 
						
					 | 
					Junior Member  | 
					 | 
		 
		 
	 | 
 
	
		Hi , my openvz server kernel have problem  
 
i removed that with rpm -e . so now when i install kernel get this error mesage :  
 
 
[root@serverd608 dl]# rpm -ihv ovzkernel-PAE-2.6.18-92.1.13.el5.028stab059.3.i686.rpm 
Preparing...                ########################################### [100%] 
   1:ovzkernel-PAE          ########################################### [100%] 
grubby fatal error: unable to find a suitable template 
[root@serverd608 dl]# 
[root@serverd608 dl]# 
[root@serverd608 dl]# rpm -qa | grep kernel 
kernel-2.6.18-53.el5 
kernel-headers-2.6.18-92.1.17.el5 
ovzkernel-PAE-2.6.18-92.1.13.el5.028stab059.3 
 
 
 
so openvz boot menu config lines not added in grub.conf : 
 
 
# grub.conf generated by anaconda 
# 
# Note that you do not have to rerun grub after making changes to this file 
# NOTICE:  You have a /boot partition.  This means that 
#          all kernel and initrd paths are relative to /boot/, eg. 
#          root (hd0,0) 
#          kernel /vmlinuz-version ro root=/dev/sda2 
#          initrd /initrd-version.img 
#boot=/dev/sda 
timeout=5 
splashimage=(hd0,0)/grub/splash.xpm.gz 
hiddenmenu 
title CentOS (2.6.18-53.el5) 
        root (hd0,0) 
        kernel /vmlinuz-2.6.18-53.el5 ro 
        initrd /initrd-2.6.18-53.el5.img 
 
where is the problem ? 
 
thanks
		
		
		[Updated on: Sat, 08 November 2008 11:39] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	
		
		
			| Re: kernel Problem [message #33757 is a reply to message #33756] | 
			Sat, 08 November 2008 17:03    | 
		 
		
			
				
				
				
					
						  
						aoscentral
						 Messages: 29 Registered: November 2008 
						
					 | 
					Junior Member  | 
					 | 
		 
		 
	 | 
 
	
		Hi , ThanQ 
 
[root@serverd608 ~]# rpm -V grub 
[root@serverd608 ~]# rpm -V mkinitrd 
 
[root@serverd608 ~]# yum install grub 
Loading "fastestmirror" plugin 
Loading mirror speeds from cached hostfile 
 * lxlabsupdate: download.lxlabs.com 
 * lxlabslxupdate: download.lxlabs.com 
 * base: mirrors.serveraxis.net 
 * openvz-kernel-rhel5: download.openvz.org 
 * updates: centos.mirrors.tds.net 
 * addons: yum.singlehop.com 
 * openvz-utils: download.openvz.org 
 * extras: yum.singlehop.com 
Setting up Install Process 
Parsing package install arguments 
Package grub - 0.97-13.2.i386 is already installed. 
Nothing to do 
 
and 
 
 
[root@serverd608 ~]# yum install mkinitrd 
Loading "fastestmirror" plugin 
Loading mirror speeds from cached hostfile 
 * lxlabsupdate: download.lxlabs.com 
 * lxlabslxupdate: download.lxlabs.com 
 * base: mirrors.serveraxis.net 
 * openvz-kernel-rhel5: download.openvz.org 
 * updates: centos.mirrors.tds.net 
 * addons: yum.singlehop.com 
 * openvz-utils: download.openvz.org 
 * extras: yum.singlehop.com 
Setting up Install Process 
Parsing package install arguments 
Package mkinitrd - 5.1.19.6-28.i386 is already installed. 
Nothing to do 
 
 
what should i do now ? 
 
| kir wrote on Sat, 08 November 2008 09:15 |   I doubt the problem is ovzkernel-specific/related. So 
 
1. check if grub and mkinitrd are installed correctly: 
 
rpm -V grub 
rpm -V mkinitrd 
 
2. check if you get the same error from stock centos kernels, i.e. try to run rpm -ihv on some centos kernel (e.g. from centos updates).
  |  
  
		
		
		[Updated on: Sat, 08 November 2008 17:04] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	
		
		
			| Re: kernel Problem [message #33765 is a reply to message #33763] | 
			Sat, 08 November 2008 22:57    | 
		 
		
			
				
				
				
					
						  
						aoscentral
						 Messages: 29 Registered: November 2008 
						
					 | 
					Junior Member  | 
					 | 
		 
		 
	 | 
 
	
		Hi , Reloaded my server os and kernel problem solved . now for use apf on vpses , i changed config by this kb : http://kb.parallels.com/en/875 
 
after add lines in iptables-config and vz . see this error messages when restart vz : 
 
 
[root@serverd608 /]# service vz restart 
: command not foundne 6: 
: command not foundne 12: 
: command not foundne 16: 
: command not foundne 20: 
: command not foundne 23: 
: command not foundne 26: 
: command not foundne 32: 
: command not foundne 35: 
: command not foundne 39: 
: command not foundne 42: 
Bringing down interface venet0:                            [  OK  ] 
Stopping OpenVZ:                                           [  OK  ] 
/etc/init.d/vz: line 200: echo: write error: Broken pipe 
/etc/init.d/vz: line 200: echo: write error: Broken pipe 
/etc/init.d/vz: line 200: echo: write error: Broken pipe 
/etc/init.d/vz: line 200: echo: write error: Broken pipe 
/etc/init.d/vz: line 200: echo: write error: Broken pipe 
Starting OpenVZ:                                           [  OK  ] 
Bringing up interface venet0:                              [  OK  ] 
Configuring interface venet0:                              [  OK  ] 
 failed: Bad parameter for --cpuunits: 1000                [FAILED] 
[root@serverd608 /]# 
 
where is the problem ? 
 
| kir wrote on Sat, 08 November 2008 14:17 |   See, this is why I asked you about it in the first place. The problem is not OpenVZ-specific. 
 
I do want to help but I don't know the details of how grubby works. I recommend you to ask on some CentOS forum (and maybe post the solution here).
  |  
  
		
		
		[Updated on: Sat, 08 November 2008 22:58] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	
		
		
			| Re: kernel Problem [message #33767 is a reply to message #33766] | 
			Sun, 09 November 2008 00:46    | 
		 
		
			
				
				
				
					
						  
						aoscentral
						 Messages: 29 Registered: November 2008 
						
					 | 
					Junior Member  | 
					 | 
		 
		 
	 | 
 
	
		hi , 
 
[root@serverd608 /]# rpm -q vzctl 
vzctl-3.0.22-1 
[root@serverd608 /]# rpm -V vzctl 
SM5....T c /etc/sysconfig/vz 
S.5....T c /etc/sysconfig/vz-scripts/ve-vps.basic.conf-sample 
S.5....T c /etc/vz/vz.conf 
[root@serverd608 /]# cat /etc/*release 
CentOS release 5.2 (Final) 
[root@serverd608 /]#sh -x /etc/init.d/vz restart 
 
### ATACHED IN TXT FILE ### 
 
thanks 
 
 
 
| kir wrote on Sat, 08 November 2008 18:38 |   Weird. Please provide the output of 
 
rpm -q vzctl 
rpm -V vzctl 
cat /etc/*release 
 
sh -x /etc/init.d/vz restart (this one will be long)
  |  
  
		
	- 
	
 
	Attachment: txt.txt.txt
	 
	(Size: 281.33KB, Downloaded 495 times)
 
 
		
		[Updated on: Sun, 09 November 2008 00:47] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 |