| vzdev will be removed by udev?! [message #30331] |
Wed, 21 May 2008 11:41  |
drups Messages: 5 Registered: September 2005 Location: Germany |
Junior Member |
From: *bi.fraunhofer.de
|
|
After installing CentOS 5 (x86_64) from http://download.openvz.org/contrib/template/precreated/cento s-5-x86_64-default.tar.gz everything work perfectly.
But when I install some software (ImageMagick) by using 'yum' the package 'vzdev' will be removed and I am no longer able to login into the VE! When I try to login ('vzctl enter NNN') I am receiving the error
enter into VE NNN failed
Unable to open pty: No such file or directory
After some research I discovered that the package 'udev' (udev-095-14.9.el5.x86_64.rpm) is the reason for this! When I install a clean CentOS 5 and invoke 'yum -y install udev' I see
[...]
Running Transaction
Installing: udev ######################### [1/2]
Removing : vzdev ######################### [2/2]
Installed: udev.x86_64 0:095-14.9.el5
Complete!
and I am unable to login...
When taking a closer look at 'vzdev' I see:
# rpm -q --provides vzdev
dev
udev = 084-13
vzdev = 3.3.13-1.4.swsoft
Hm, what is that for? There is an older 'udev' inside this package! Is there a newer version of 'vzdev' somewhere?
Any ideas?
--drups
|
|
|
|
| Re: vzdev will be removed by udev?! [message #35589 is a reply to message #30337 ] |
Tue, 07 April 2009 07:46  |
Kako Messages: 1 Registered: April 2009 |
Junior Member |
From: 213.240.177*
|
|
Another option would be the following script, which should create all missing devices on boot. It should be simply registered in /etc/rc.d/rc.local for work.
#!/bin/bash
#
# This script creates all missing devices on the VPS (openVZ),
# that are removed do updates on udev
# @author Claudio Thomas, 2009
# @filename /etc/rc.d/make_vzdev
#
# At first check if recreation is needed
if [ -c /dev/ptyp0 ]; then
# All seems to be ok, so we are already finished
exit 0;
fi
# VPS seems to forgot all vzdevices
# force recreation
# ptmx and pty's are needed to enter the VPS with vzctl enter <VPS> and other, so this are the first we will need!
MAKEDEV /dev/ptmx
MAKEDEV /dev/pty
# .../dev/pzyzf
# weitere
MAKEDEV /dev/core
# MAKEDEV /dev/fd would create a lot more than we need, so only make a symlink
ln -sf /proc/self/fd /dev/fd
MAKEDEV /dev/full
MAKEDEV /dev/kmem
MAKEDEV /dev/mem
MAKEDEV /dev/port
MAKEDEV /dev/ptmx
MAKEDEV /dev/ram
#... and also many other /dev/ram...
MAKEDEV /dev/random
MAKEDEV /dev/shm
# is needed for example ssh-connections!
MAKEDEV /dev/urandom
MAKEDEV /dev/zero
|
|
|