Changes

Jump to: navigation, search

Container enter failed

600 bytes added, 16:04, 27 March 2008
new solutions
</pre>
'''Another solutionOther solutions''':
1) enter the VE manually creating the LEGACY_PTYS devices
<pre>
</pre>
To 2A) If you want udev in VE, save the changes force forcing udev to make LEGACY_PTYS:
<pre>
tty2
tty3
tty4tty5tty6tty7tty8tty9....
ttyp0
ttyp1
ttyp2
ttyp3
ttyp4ttyp5ttyp6....
ptyp0
ptyp1
ptyp2
ptyp3
ptyp4....ptyp5</pre>
 
2B) If you think is better disable udev in VE, comment out in the VE the line:
<pre>
/sbin/start_udev
</pre>
in
<pre>
/etc/rc.d/rc.sysinit
</pre>
 
Restart the VE and make the devices with MAKEDEV:
<pre>
vzctl exec 101 /sbin/MAKEDEV tty
vzctl exec 101 /sbin/MAKEDEV pty
vzctl enter 101
</pre>
I have used this method also to create zap dummy devices for asterisk in VE:
<pre>
/dev/zap/ctl
/dev/zap/pseudo
/dev/zap/channel
/dev/zap/timer
</pre>
 
2C) The devices can be setup also with a line in VE config
 
<pre>
grep DEV /etc/vz/conf/101.conf
DEVNODES="zap/ctl:rw zap/channel:rw zap/pseudo:rw zap/timer:rw "
</pre>
3
edits

Navigation menu