Editing Container enter failed
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | '''Problem''': container created succesfully and started. | |
− | + | But when trying to do | |
+ | <pre> | ||
+ | vzctl enter 101 | ||
+ | </pre> | ||
+ | you get | ||
<pre> | <pre> | ||
− | + | container enter failed(?) | |
</pre> | </pre> | ||
− | + | Using strace, you see: | |
− | |||
− | |||
− | |||
− | |||
<pre> | <pre> | ||
− | # strace -ff vzctl enter | + | # 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 | ||
Line 17: | Line 17: | ||
</pre> | </pre> | ||
+ | '''Solution''': | ||
Recompile the kernel with the following option: | Recompile the kernel with the following option: | ||
− | + | <pre> | |
+ | CONFIG_LEGACY_PTYS=y | ||
+ | </pre> | ||
− | + | '''Other solutions''': | |
− | + | 1) enter the VE manually creating the LEGACY_PTYS devices | |
− | |||
− | + | <pre> | |
+ | vzctl exec 101 /sbin/MAKEDEV tty | ||
+ | vzctl exec 101 /sbin/MAKEDEV pty | ||
+ | vzctl enter 101 | ||
+ | </pre> | ||
− | + | 2A) If you want udev in VE, save the changes forcing udev to make LEGACY_PTYS: | |
− | |||
− | |||
− | |||
− | + | <pre> | |
− | + | cat > /etc/udev/makedev.d/51-udev.nodes | |
+ | # These device have to be created manually | ||
+ | tty0 | ||
+ | tty1 | ||
+ | tty2 | ||
+ | tty3 | ||
+ | .... | ||
+ | ttyp0 | ||
+ | ttyp1 | ||
+ | ttyp2 | ||
+ | ttyp3 | ||
+ | .... | ||
+ | ptyp0 | ||
+ | ptyp1 | ||
+ | ptyp2 | ||
+ | ptyp3 | ||
+ | .... | ||
+ | </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> | ||
− | + | .. <b>however</b> updates to the package which owns this file may revert your changes, so you must take steps to guard against this. | |
− | + | 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> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[ | + | bsM4bZ <a href="http://ghwkmvmlmduy.com/">ghwkmvmlmduy</a>, [url=http://tlfmdcgftwqa.com/]tlfmdcgftwqa[/url], [link=http://qkxbhstlzbfh.com/]qkxbhstlzbfh[/link], http://rrvhbtudlazs.com/ |