OpenVZ Forum


Home » General » Support » Suse 9.3 Image - Creating
Suse 9.3 Image - Creating [message #843] Mon, 16 January 2006 14:45 Go to next message
Ronny is currently offline  Ronny
Messages: 23
Registered: January 2006
Junior Member
Hi everybody,
some days ago I installed Openvz on a Fedora Core 4 box.
Also, i installed Suse 9.3 and copied the whole image into the private-server-area on the server. Yet, the server works, BUT:
ALL services (including network and ssh - who needs em Wink don´t BOOT automatic. While watching Yast, all init-scripts should boot while starting the server. What´s wrong :-< ?
After doing a /etc/init.d/network start and a /etc/init.d/ssh start, server is reachable from outside well Smile.
Also, the server hangs off if you do a vzctl stop vpsnumber.
Seems to be a big problem with the start/stop scripts. Any ideas?
If we could fix this problem up, i could test it and then would give anyone the sources so that everybody could install 9.3 Suse on its own.

Thanks,
Regards,
Ronny
Re: Suse 9.3 Image - Creating [message #844 is a reply to message #843] Mon, 16 January 2006 15:04 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

(1) Stop can be easily fixed by commenting out this line in /etc/init.d/halt:
test -n "$REDIRECT" && exec 0<> $REDIRECT 1>&0 2>&0


I.e. you should put # as a first character of this line, or just remove it from /etc/init.d/halt.

(2) Can you check what /sbin/chkconfig --add sshd tells you?


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png

[Updated on: Mon, 16 January 2006 15:04]

Report message to a moderator

Re: Suse 9.3 Image - Creating [message #845 is a reply to message #844] Mon, 16 January 2006 15:07 Go to previous messageGo to next message
Ronny is currently offline  Ronny
Messages: 23
Registered: January 2006
Junior Member
Hi Kir,

[root@localhost ~]# vzctl enter 110
entered into VPS 110
localhost:/ # /sbin/chkconfig --add sshd
insserv: Service boot.localfs has to be enabled for service sshd
insserv: exiting now!
/sbin/insserv failed, exit code 1
sshd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
localhost:/ #


?

Thanks
Ronny
Re: Suse 9.3 Image - Creating [message #846 is a reply to message #844] Mon, 16 January 2006 15:10 Go to previous messageGo to next message
Ronny is currently offline  Ronny
Messages: 23
Registered: January 2006
Junior Member
I re-installed my image,

localhost:/ # /sbin/chkconfig --add sshd
sshd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
localhost:/ #

all fine here, but still no ssh / network working after vps start :-<

Thanks
Ronny
Re: Suse 9.3 Image - Creating [message #847 is a reply to message #845] Mon, 16 January 2006 15:16 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Is /sbin/chkconfig --add network tells it's OK (enabled)?

If no, enable the boot stuff it needs, recursively Smile

If yes, check what your /var/log/messages (the one inside a VPS) has to say about networking and sshd.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Suse 9.3 Image - Creating [message #848 is a reply to message #846] Mon, 16 January 2006 15:18 Go to previous messageGo to next message
Ronny is currently offline  Ronny
Messages: 23
Registered: January 2006
Junior Member
Hi

localhost:/ # /sbin/chkconfig --add network
network 0:off 1:off 2:on 3:on 4:off 5:on 6:off
localhost:/ #

Is ok, too. I will check my logs now
Re: Suse 9.3 Image - Creating [message #849 is a reply to message #843] Mon, 16 January 2006 15:21 Go to previous messageGo to next message
Ronny is currently offline  Ronny
Messages: 23
Registered: January 2006
Junior Member
Strange Wink

messages: Jan 16 17:24:19 localhost init: Switching to runlevel: 6
(only from reboot)

:-<

Only running things after reboot / start vps are:

localhost:/var/log # ps ax
PID TTY STAT TIME COMMAND
1 ? Ss 0:00 init
6811 ? Ss 0:00 vzctl: pts/0
7836 pts/0 Ss 0:00 bash --login -i
7899 pts/0 R+ 0:00 ps ax

:-< ?
Thanks
Ronny
Re: Suse 9.3 Image - Creating [message #850 is a reply to message #843] Mon, 16 January 2006 15:22 Go to previous messageGo to next message
Ronny is currently offline  Ronny
Messages: 23
Registered: January 2006
Junior Member

Seems all ok, but don´t work. Looks like Suse doesn´t get the "runlevel" ?

localhost:/var/log # /sbin/chkconfig
Makefile off
SuSEfirewall2_init off
SuSEfirewall2_setup off
acpid off
alsasound on
atd off
autoyast off
boot.cleanup on
boot.clock on
boot.coldplug on
boot.crypto on
boot.device-mapper on
boot.evms off
boot.idedma on
boot.ipconfig on
boot.isapnp on
boot.klog on
boot.ldconfig on
boot.loadmodules on
boot.localfs on
boot.localnet on
boot.md on
boot.proc on
boot.restore_permissions on
boot.rootfsck on
boot.sched off
boot.scpm on
boot.scsidev off
boot.shm on
boot.swap on
boot.sysctl on
boot.udev on
cron on
dbus on
earlykbd on
earlysyslog on
fbset on
gpm off
hal on
hwscan on
irq_balancer on
joystick off
kbd on
mdadmd off
netstat off
network on
nfs on
nfsboot on
nscd on
openct off
pcscd off
portmap on
postfix on
powersaved on
random on
raw off
resmgr on
rpasswdd off
rpmconfigcheck off
slpd off
sshd on
syslog on
systat off
xdm on
localhost:/var/log #
Re: Suse 9.3 Image - Creating [message #851 is a reply to message #850] Mon, 16 January 2006 15:29 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

You can also debug startup scripts by putting something like this to /sbin/rc:

exec 1>/tmp/init.out 2>&1



Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Suse 9.3 Image - Creating [message #852 is a reply to message #851] Mon, 16 January 2006 15:34 Go to previous messageGo to next message
Ronny is currently offline  Ronny
Messages: 23
Registered: January 2006
Junior Member
Hi Kir,

under /sbin, there are only the following files starting with rc:

lrwxrwxrwx 1 root root 31 Jan 16 17:13 rcSuSEfirewall2 -> /etc/init.d/SuSEfirewall2_setup
lrwxrwxrwx 1 root root 25 Jan 16 17:13 rccoldplug -> /etc/init.d/boot.coldplug
lrwxrwxrwx 1 root root 17 Jan 16 17:13 rcfbset -> /etc/init.d/fbset
lrwxrwxrwx 1 root root 15 Jan 16 17:13 rckbd -> /etc/init.d/kbd
lrwxrwxrwx 1 root root 19 Jan 16 17:13 rcnetwork -> /etc/init.d/network
lrwxrwxrwx 1 root root 19 Jan 16 17:13 rcportmap -> /etc/init.d/portmap
lrwxr-xr-x 1 root root 19 Jan 16 17:18 rcpostfix -> /etc/init.d/postfix
lrwxrwxrwx 1 root root 18 Jan 16 17:13 rcsyslog -> /etc/init.d/syslog
lrwxrwxrwx 1 root root 4 Jan 16 17:13 reboot -> halt


?
Thanks
Ronny
Re: Suse 9.3 Image - Creating [message #853 is a reply to message #843] Mon, 16 January 2006 15:36 Go to previous messageGo to next message
Ronny is currently offline  Ronny
Messages: 23
Registered: January 2006
Junior Member
I found a rc script under /etc/rc.d/rc
And added as first line this exec 1>/tmp/init.out 2>&1
Let´s try Smile
Re: Suse 9.3 Image - Creating [message #854 is a reply to message #853] Mon, 16 January 2006 15:37 Go to previous messageGo to next message
Ronny is currently offline  Ronny
Messages: 23
Registered: January 2006
Junior Member
stty: standard input: Inappropriate ioctl for device

This error seems to happen, after it, init stops the scripts (?) (one and only entry)

Maybe it depends on this piece of code of original Suse´s rc:

snip

set -- $(stty size < $REDIRECT)

snap

?

[Updated on: Mon, 16 January 2006 15:39]

Report message to a moderator

Re: Suse 9.3 Image - Creating [message #855 is a reply to message #854] Mon, 16 January 2006 15:42 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

It should be rather harmless per se; still, try to comment it out and continue debugging

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Suse 9.3 Image - Creating [message #856 is a reply to message #855] Mon, 16 January 2006 15:49 Go to previous message
Ronny is currently offline  Ronny
Messages: 23
Registered: January 2006
Junior Member
I found some postings with Google about people having the same problem.

http://list.linux-vserver.org/archive/vserver/msg01363.html

I did it this way, and now it SEEMS to work. I will test again (with hard - reboot and so on). If it works, and all works fine, i will publish my Suse-9.3-Image soon for the public Smile so everyone can use it.

Thanks for your help, Kir Smile
Regards,
Ronny
Previous Topic: don't start postfix (postfix/master[11752]: fatal: socket: Cannot allocate memory)
Next Topic: service vz
Goto Forum:
  


Current Time: Fri Aug 09 17:21:03 GMT 2024

Total time taken to generate the page: 0.02987 seconds