{"id":19,"date":"2009-09-13T16:20:09","date_gmt":"2009-09-13T20:20:09","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=19"},"modified":"2013-03-20T08:39:00","modified_gmt":"2013-03-20T12:39:00","slug":"enter-into-container-veid-failed","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/enter-into-container-veid-failed","title":{"rendered":"VPS login problem: enter into Container VEID failed"},"content":{"rendered":"<p>You may receive the following message on accessing a VPS from the host server:<\/p>\n<blockquote>\n<pre><strong><span style=\"color: #0000ff;\"># vzctl enter 101<\/span><\/strong>\r\n<strong><span style=\"color: #0000ff;\">enter into VE 101 failed<\/span><\/strong>\r\n<strong><span style=\"color: #0000ff;\">Unable to open pty: No such file or directory<\/span><\/strong><\/pre>\n<\/blockquote>\n<p>The reason behind is the <strong>missing tty\/pty files OR the udev devices<\/strong>.<\/p>\n<p>There are two ways of creating them, <strong>using the &#8216;MAKEDEV&#8217; program OR copy the files from the host server itself.<\/strong><\/p>\n<p><strong>Solution 1.<\/strong><\/p>\n<p>To create using the MAKEDEV program, execute the following commands on the host server:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># vzctl exec VEID \/sbin\/MAKEDEV tty<\/span>\r\n<span style=\"color: #0000ff;\"># vzctl exec VEID \/sbin\/MAKEDEV pty<\/span><\/pre>\n<\/blockquote>\n<p>You may need to update the startup files as well, so execute:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># vzctl exec VEID update-rc.d -f udev remove<\/span><\/pre>\n<\/blockquote>\n<p>Once the files are created, restart the VPS.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># vzctl restart VEID<\/span><\/pre>\n<\/blockquote>\n<p><strong>Solution 2.<\/strong><\/p>\n<p>Directly copy the tty\/pty files from the host server to a VPS with the following steps:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># cd \/vz\/root\/&lt;veid&gt;\/dev\/<\/span>\r\n<span style=\"color: #0000ff;\"># rsync -a \/dev\/*\u00a0 .<\/span><\/pre>\n<\/blockquote>\n<p>and restart the VPS.\u00a0 You should now be able to enter the VPS.<\/p>\n<ul>\n<li><strong>To fix the issue permanently,<\/strong><\/li>\n<\/ul>\n<p><strong>1.<\/strong> Edit the file \/etc\/rc.sysinit of the VPS server:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># vi \/etc\/rc.sysinit<\/span><\/pre>\n<\/blockquote>\n<p><strong>2.<\/strong> Search the line &#8220;\/sbin\/start_udev&#8221; and comment it<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># \/sbin\/start_udev<\/span><\/pre>\n<\/blockquote>\n<p><strong>3. <\/strong> Add the following lines after \/sbin\/start_udev commented line:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># \/sbin\/MAKEDEV tty<\/span>\r\n<span style=\"color: #0000ff;\"># \/sbin\/MAKEDEV pty<\/span><\/pre>\n<\/blockquote>\n<p><strong>4. <\/strong>Now, reboot your VPS<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># vzctl restart VEID<\/span><\/pre>\n<\/blockquote>\n<p>where, VEID is the VPS id of the vps in question.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may receive the following message on accessing a VPS from the host server:<\/p>\n<p># vzctl enter 101<br \/>\nenter into VE 101 failed<br \/>\nUnable to open pty: No such file or directory<\/p>\n<p>The reason behind is the missing tty\/pty files OR the udev devices.<br \/>\nThere are two ways of creating them, using the &#8216;MAKEDEV&#8217; program OR copy the files from the host server itself.<br \/>\nSolution 1.<br \/>\nTo create using the MAKEDEV program, execute the following commands on the host server:<\/p>\n<p># vzctl exec VEID \/sbin\/MAKEDEV tty<br \/>\n# vzctl exec VEID \/sbin\/MAKEDEV pty<\/p>\n<p>You may need to update the [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[30,29,25,712,711,1302],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/19"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":15,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":58,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions\/58"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}