<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      If I call correctly you can not run a X-server inside the
      container as you do not have a graphical display device in OpenVZ.<br>
      <br>
      But you are able to export your display to an external machine. If
      xauth is in your PATH it will create or update .Xauthority upon
      login invoked by the ssh daemon. xauth only needed then tunneling
      X over SSH. You can always invoke X programs directly by using the
      parameter "-display" or better yet settting the DISPLAY
      environment variable to point to your remote X-server.<br>
      <br>
      Regards,<br>
      Bjorn<br>
      <br>
      On 02/02/2013 08:48 PM, Linpeng Tang wrote:<br>
    </div>
    <blockquote
cite="mid:CAL_rV8V50XyEVXfkmb9a1txGaTsbPbYmwHPujXbO+g_aLz7a=A@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi, recently I have installed a Ubuntu 12.04
        machine inside OpenVZ on a CentOS 5 server, almost everything
        works fine except that I can't use X11 forwarding.
        <div><br>
        </div>
        <div>I have installed xauth, and enabled X11forwarding in
          ssh_config, but it still doesn't work.</div>
        <div><br>
        </div>
        <div>Specifically, I find that I don't have ~/.Xauthority file
          generated, and running startx results in:</div>
        <div>
          <div><i>Fatal server error:</i></div>
          <div><i>xf86OpenConsole: Cannot open /dev/tty0 (No such file
              or directory)</i></div>
          <div><br>
          </div>
          <div style="">More curiously,<i> when I run "who" command, the
              ouput is empty</i>. while I have logged in via ssh at the
            time.</div>
          <div style=""><br>
          </div>
          <div style="">Does any one have any clues what's causing the
            problem?</div>
          <div style=""><br>
          </div>
          <div style="">Thanks in advance.</div>
          <div style=""><br>
          </div>
          <div style="">--&nbsp;<br>
          </div>
          -----------------------------------
          <div>
            <div>Princeton University</div>
            <div>Computer Science Department</div>
            <div>Linpeng Tang</div>
            <br>
          </div>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openvz.org">Users@openvz.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openvz.org/mailman/listinfo/users">https://lists.openvz.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>