[Users] Unable to open pty

Christian Blaich christian.blaich at 1und1.de
Tue Feb 16 17:57:55 EST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 16.02.10 14:31, schrieb Javier Navarro:
> On Tue, Feb 16, 2010 at 9:41 AM, Dietmar Maurer <dietmar at proxmox.com> wrote:
>>> when i start my container i got an error "Unable to open pty: No such
>>> file or directory."
>>>
>>> I tried to fix it with the following:
>>>
>>> - - copied /dev from a working comtainer
>>> - - vzctl exec 600 update-rc.d -f udev remove
>>> - - vzctl exec 600 'dpkg --force-depends --purge udev'
>>>
>>> - - vzctl exec 600 /sbin/MAKEDEV tty
>>> - - vzctl exec 600 /sbin/MAKEDEV pty => /sbin/MAKEDEV: warning: can't
>>> read
>>> /proc/devices
>>>
>>> Copied /proc/devices from the hn to vm.
>>> No error, but still does not work.
>>>
>>> The problems started after a dist upgrade in the vm from ubuntu 8.04.4
>>> to 9.10.
>>>
>>> Any ideas ?
>>
>> Try to run MAKEDEV on the host (cd /var/lib/vz/private/...).
>>
>> ubuntu 9.10 is not very container friendly :-/
>>
>> - Dietmar
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openvz.org
>> https://openvz.org/mailman/listinfo/users
>>
> 
> 
> check this: http://blog.bodhizazen.net/linux/download-ubuntu-9-10-openvz-templates
> 
> 

Hey,

works awesome with the conf file ;)
Here again, just create /etc/init/openvz.conf and put that in:

# OpenVZ . Fix init sequence to have OpenVZ working with upstart

description "Fix OpenVZ"

start on startup

task
pre-start script
mount -t proc proc /proc
mount -t devpts devpts /dev/pts
mount -t sysfs sys /sys
mount -t tmpfs varrun /var/run
mount -t tmpfs varlock /var/lock
mkdir -p /var/run/network
#cat /proc/mounts > /etc/mtab
touch /var/run/utmp
chmod 664 /var/run/utmp
chown root.utmp /var/run/utmp
if [ "$(find /etc/network/ -name upstart -type f)" ]; then
chmod -x /etc/network/*/upstart || true
fi
end script

script
start networking
initctl emit filesystem --no-wait
initctl emit local-filesystems --no-wait
initctl emit virtual-filesystems --no-wait
init 2
end script

Greets
chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLeyLzAAoJENzPm0AOTN5b1hsH/32DO6P+4Bb/KnhXig3yVEM+
NUa7H0xCGiOo1uYK6cWUvl5KMi+HFENek2NLyc9VrFpws3dgtksp43PFBfF+6+9q
xKuMr+i9aFwQe4jmZURlk0AOe75hYHY1ZGf55gTe/RAXlP/cbVn2dw11iu/3of/n
rzuescQw8CzXv0ZNJIKYa3qvgBmxS/iTutYsbTfiRc2ktMTvnY8SnIT8IJWIN1Oj
Vglz4xFEg6nEbOKemgeXDYprA2MZuzxGalconL0ln9DqYIaV+XWvlZCSzhEPEQLR
d/p3aTztgYG/hqDJq+zLHvmGBzEepUy7kZtuzjs5nVdZh0ZsCnYWQc8VGs7NwYA=
=r5Wz
-----END PGP SIGNATURE-----


More information about the Users mailing list