Difference between revisions of "Container enter failed"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(fixed formatting)
Line 1: Line 1:
Problem: VPS created succesfully and started.
+
'''Problem''': VPS created succesfully and started.
But when trying  
+
But when trying to do
 +
<pre>
 
vzctl enter 101  
 
vzctl enter 101  
 +
</pre>
 
you get
 
you get
 +
<pre>
 
VPS enter failed(?)
 
VPS enter failed(?)
strace -ff vzctl enter
+
</pre>
 +
 
 +
Using strace, you see:
 +
<pre>
 +
# strace -ff vzctl enter
 
....
 
....
 
fstat64(...st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0)...) fail
 
fstat64(...st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0)...) fail
 
....
 
....
 +
</pre>
  
 
+
'''Solution''':
Solution:
+
Recompile the kernel with the following option:
 +
<pre>
 
CONFIG_LEGACY_PTYS=y
 
CONFIG_LEGACY_PTYS=y
 
+
</pre>
  
 
[[Category: Troubleshooting]]
 
[[Category: Troubleshooting]]

Revision as of 10:27, 13 June 2006

Problem: VPS created succesfully and started. But when trying to do

vzctl enter 101 

you get

VPS enter failed(?)

Using strace, you see:

# strace -ff vzctl enter
....
fstat64(...st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0)...) fail
....

Solution: Recompile the kernel with the following option:

CONFIG_LEGACY_PTYS=y