Web Hosting Talk







View Full Version : /sbin/service vz start -- problem starting


miltongoh
06-17-2006, 12:59 PM
Hi,

I have some problem while issuing the command. "/sbin/service vz start"

Some information

Server Type: i386

Server files downloaded from OpenVZ

ovzkernel-2.6.8-022stab077.1.i686.rpm
vzctl-lib-3.0.10-1.i386.rpm
vzquota-3.0.8-1.i386.rpm

=======================================================

ERROR

[root@halo ~]# /sbin/service vz start
vz: unrecognized service
[root@halo ~]#

=======================================================

# 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/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title OpenVZ (2.6.8-022stab077.1)
root (hd0,0)
kernel /vmlinuz-2.6.8-022stab077.1 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.8-022stab077.1.img
title CentOS-4 i386 (2.6.9-34.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-34.EL ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.9-34.EL.img

"/boot/grub/grub.conf" 21L, 748C

=======================================================

# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
#net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 1

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0

"/etc/sysctl.conf" 24L, 720C

=======================================================

Any kind soul out there please assist me. Thank you!

cmimrie
06-17-2006, 01:09 PM
Have you rebooted into the new kernel yet?

EDIT: remove this line from your grub.conf

default=0

miltongoh
06-17-2006, 01:27 PM
but i thought default = 0 will boot into the 1st segment/sentence which is set as OpenVZ?

miltongoh
06-17-2006, 01:31 PM
To add on, after rebooting.

I can't issue "shutdown -r now" command now. Is this normal?

cmimrie
06-17-2006, 01:58 PM
As per what i said, remove the line i quoted earlier then issue;

reboot

miltongoh
06-17-2006, 09:14 PM
As per what i said, remove the line i quoted earlier then issue;

reboot

Hi,

I have done the configuration as per stated by you. Did a physical reboot of the server. The problem still persists.

After which I try setting it as "default = 1" where it should be my CentOS 4.3 kernel.

I still can't get VZ to start. Anyone can clear my doubts?