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
Could you try installing some CentOS kernel and see if you get the same error?
kir wrote on Sat, 08 November 2008 06:48 Could you try installing some CentOS kernel and see if you get the same error? ovzkernel-PAE-2.6.18-92.1.13.el5.028stab059.3 kernel installed on my server and wokring good !today , after restart server , centos could not be loaded from boot loader . Datacenter Support : copied over kernel 2.6.18-53.el5 and boot server with this kernel . now , i removed ovzkernel-PAE-2.6.18-92.1.13.el5.028stab059.3 kernel with rpm -e and when i reinstall this with rpm see that error messages !
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).
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).
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).
other kernels installed success ! kir wrote on Sat, 08 November 2008 12:18 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).
aoscentral wrote on Sat, 08 November 2008 20:34 other kernels installed success! Have you tried it *after* you saw the fail with ovzkernel? Can I see how your /etc/boot/grub.conf looks like now?
1- yes 2- [root@serverd608 root]# cat /etc/boot/grub.conf cat: /etc/boot/grub.conf: No such file or directory kir wrote on Sat, 08 November 2008 13:09 aoscentral wrote on Sat, 08 November 2008 20:34 other kernels installed success! Have you tried it *after* you saw the fail with ovzkernel? Can I see how your /etc/boot/grub.conf looks like now?
hi , sorry when i install some of kernels see this erro message !!!!! [root@serverd608 root]# rpm -ihv kernel-PAE-2.6.24-ovz006.4.i686.rpm Preparing... ########################################### [100%] 1:kernel-PAE ########################################### [100%] grubby fatal error: unable to find a suitable template aoscentral wrote on Sat, 08 November 2008 13:15 1- yes 2- [root@serverd608 root]# cat /etc/boot/grub.conf cat: /etc/boot/grub.conf: No such file or directory kir wrote on Sat, 08 November 2008 13:09 aoscentral wrote on Sat, 08 November 2008 20:34 other kernels installed success! Have you tried it *after* you saw the fail with ovzkernel? Can I see how your /etc/boot/grub.conf looks like now?
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).
Ok 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).
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).
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)
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)
Thanks. It looks like you were editing /etc/vz/vz.conf with some Windoze text editor. Don't do that since it inserts extra characters ("\r"). For now, try this to fix the file: cat /etc/vz/vz.conf | tr -d '\r' > vz.conf.new && mv vz.conf.new /etc/vz/vz.conf Then rerun /etc/init.d/vz restart and see if the above fix helped. If not, attach your /etc/vz/vz.conf here.
HI , ( : command not foundne errors ) solved ! [root@serverd608 ~]# cat /etc/vz/vz.conf | tr -d '\r' > vz.conf.new && mv vz.conf.new /etc/vz/vz.conf mv: overwrite `/etc/vz/vz.conf'? y [root@serverd608 ~]# /etc/init.d/vz restart Shutting down VE 110 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 ] Starting VE 110: [ OK ] [root@serverd608 ~]# ### /etc/vz/vz.conf Attached ### Thanks kir wrote on Sat, 08 November 2008 21:42 Thanks. It looks like you were editing /etc/vz/vz.conf with some Windoze text editor. Don't do that since it inserts extra characters ("\r"). For now, try this to fix the file: cat /etc/vz/vz.conf | tr -d '\r' > vz.conf.new && mv vz.conf.new /etc/vz/vz.conf Then rerun /etc/init.d/vz restart and see if the above fix helped. If not, attach your /etc/vz/vz.conf here.
You're all set. The error you get ("/etc/init.d/vz: line 200: echo: write error: Broken pipe") is actually not an error but some harmless warning, which is fixed by the following patch: http://git.openvz.org/?p=vzctl;a=commitdiff;h=79f91681e87b352a7511f52283105295c6e3a258 You can either safely ignore it or apply the patch.
Thank You Kir have Nice day kir wrote on Sat, 08 November 2008 22:49 You're all set. The error you get ("/etc/init.d/vz: line 200: echo: write error: Broken pipe") is actually not an error but some harmless warning, which is fixed by the following patch: http://git.openvz.org/?p=vzctl;a=commitdiff;h=79f91681e87b352a7511f52283105295c6e3a258 You can either safely ignore it or apply the patch.