OpenVZ Forum


Home » General » Support » Ubuntu stopped working with 2.6.18-14-fza-686-bigmem
Ubuntu stopped working with 2.6.18-14-fza-686-bigmem [message #34714] Tue, 27 January 2009 15:10 Go to next message
turexy is currently offline  turexy
Messages: 4
Registered: January 2009
Location: UK
Junior Member
Hi,

I've just upgraded my HN (Debian4.0 Etch) from 2.6.18-12-fza-686-bigmem to 2.6.18-14-fza-686-bigmem. After I rebooted to the new kernel all VMs came back online apart of ubuntu ones (intrepid, hardy). After quick investigation found out that ssh daemon doesn't start any more, it fails giving:

# /etc/init.d/ssh restart
PRNG is not seeded


I did some googling and bingo, two devices, random and urandom are not being created during the VM startup what makes ssh failing to start.

To make sure there nothing wrong with containers them self I rebooted the HN to the old 2.6.18-12-fza-686-bigmem kernel and everything worked just fine.

Has anyone else got the same problem with that kernel?
Any help will be much appreciated.

Raf
Re: Ubuntu stopped working with 2.6.18-14-fza-686-bigmem [message #34721 is a reply to message #34714] Wed, 28 January 2009 07:27 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

udev enabled/running insinde ubuntu containers ?

Bye,
Thorsten
Re: Ubuntu stopped working with 2.6.18-14-fza-686-bigmem [message #34723 is a reply to message #34721] Wed, 28 January 2009 10:21 Go to previous messageGo to next message
turexy is currently offline  turexy
Messages: 4
Registered: January 2009
Location: UK
Junior Member
Hi Thorsten,


Thanks for reply.

No udev is not running inside the container and it is also not running when I use old kernel.

I tried to start it but still no joy.

Raf
Re: Ubuntu stopped working with 2.6.18-14-fza-686-bigmem [message #34724 is a reply to message #34723] Wed, 28 January 2009 12:26 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi Raf,

can't reproduce this error

... rebooted a OpenVZ kernel 2.6.18-14-fza-686-bigmem on a testserver:

$ cat /proc/vz/version
028stab056.1

... fetched the precreated ubuntu os template

http://download.openvz.org/template/precreated/contrib/ubunt u-8.10-i386-minimal.tar.gz

... create a ct, and start it

only the sshd doesn't start due there's no script to setup the ssh keys - a "vzctl exec <CTID> dpkg-reconfigure openssh-server" solved the issue ...

... and all sshd connection

$ vzctl exec 104 /etc/init.d/ssh restart
* Restarting OpenBSD Secure Shell server sshd
...done.

Can you please put the used ostemplate on a site for downloading ?

Bye,
Thorsten
Re: Ubuntu stopped working with 2.6.18-14-fza-686-bigmem [message #34725 is a reply to message #34714] Wed, 28 January 2009 13:04 Go to previous messageGo to next message
turexy is currently offline  turexy
Messages: 4
Registered: January 2009
Location: UK
Junior Member
Hi Thorsten,

Yeah you were right, I downloaded the pre-created template provided in the link and it worked like a charm. No doubts there must be something wrong with my template. Just to let you know I use vzpkg2 to build my templates

# vzpkgcache --no-pkg-cacher -f TEMPLATENAME


Here is my template:
http://78.129.151.210/ubuntu-intrepid-i386-minimal.tar.gz

Thanks a lot for looking at this...

Raf
Re: Ubuntu stopped working with 2.6.18-14-fza-686-bigmem [message #34726 is a reply to message #34725] Wed, 28 January 2009 14:21 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

your os template is buggy, it uses the udev for populating the /dev files, but urandom and random doesn't exist ...

workaround for udev on debian and also ubuntu :

$ vzctl exec <CTID> 'cd /lib/udev/devices/; /dev/MAKEDEV urandom; /dev/MAKEDEV random; /dev/MAKEDEV pty;'

after a restart sshd is ready ...

or on your post-create create process the dev files should be created like above ...

I've update and corrected the os template ... you can fetch it at
http://debian.systs.org/ostemplates/ubuntu-8.10-i386-minimal .tar.gz

Bye,
Thorsten
Re: [SOLVED] Ubuntu stopped working with 2.6.18-14-fza-686-bigmem [message #34727 is a reply to message #34726] Wed, 28 January 2009 15:32 Go to previous message
turexy is currently offline  turexy
Messages: 4
Registered: January 2009
Location: UK
Junior Member
Hi Thorsten,

Thanks a lot for sorting out my problem, much appreciated.
I've updated the file /vz/template/ubuntu/config/install-post
and changed
$VZCTL exec $VEID '(cd /lib/udev/devices; MAKEDEV ptyp ttyp ptmx)'

to
$VZCTL exec $VEID '(cd /lib/udev/devices; MAKEDEV ptyp ttyp ptmx urandom random pty)'


Everything works fine now !!!

All the best
Raf
Previous Topic: TCP Packets get lost under moderate network load
Next Topic: Centos 5.2 HN, Ubuntu 8.04 VE, Networking issue [Solved]
Goto Forum:
  


Current Time: Sun Jul 27 17:49:42 GMT 2025

Total time taken to generate the page: 0.60102 seconds