Henry Pepper
2009-Sep-17 11:32 UTC
Any idea on how to install a hvm on a remote system. -- unable to open display
Hi I''m been trying to install an xvm instance on a remote system, but I keep running into variations on ''unable to open display'' I''ve tried to use ssh -X but I''ve not been able to get it to forward when su''d to root. 1) ssh -X -l xadmin virtbox running cload etc works fine. 2a i. su - ii. cp .Xauthority ~xadmin/.Xauthority iii. setenv DISPLAY localhost:10 iv. xload Fails: X11 connection rejected because of wrong authentication. X connection to localhost:11.0 broken (explicit kill or server shutdown). 2b i. sudo su - ii. xload X11 connection rejected because of wrong authentication. X connection to localhost:11.0 broken (explicit kill or server shutdown). 2c i. su - ii. setenv DISPLAY laptop:0 iii. xload Error: Can''t open display: laptop:0 (''xhost +'' had been run on the laptop) Any ideas of where I might find an explanation or hint to how to fix this. When I run the virt-install as root then I can''t connect to the ''localhost:5900'' as xadmin. -- vncviewer localhost:5900 VNC Viewer Free Edition 4.1.3 for X - built Aug 18 2009 19:15:06 Copyright (C) 2002-2008 RealVNC Ltd. See http://www.realvnc.com for information on VNC. Thu Sep 17 13:03:50 2009 CConn: connected to host localhost port 5900 main: End of stream -- Hints are warmly welcomed. Henry
Fajar A. Nugraha
2009-Sep-17 11:50 UTC
Re: Any idea on how to install a hvm on a remote system. -- unable to open display
On Thu, Sep 17, 2009 at 6:32 PM, Henry Pepper <henrypepr@gmail.com> wrote:> Hi > > I''m been trying to install an xvm instance on a remote system, but I > keep running into variations on ''unable to open display'' > > I''ve tried to use ssh -X but I''ve not been able to get it to forward > when su''d to root.I haven''t played around much with it, but doing one of these : - ssh root@... - ssh as normal user, then "sudo virt-install ..." (instead of "su -" or "sudo -s") should work. As an alternative you could also modify domU config file (or xend-config.sxp) to have vnc listen on 0.0.0.0 instead of localhost. -- Fajar
Andrew Chester
2009-Sep-17 11:53 UTC
Re: Any idea on how to install a hvm on a remote system. -- unable to open display
Think this works well unless I''m mistaken: http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/xauth_f__home_${log -Andrew Fajar A. Nugraha wrote:> On Thu, Sep 17, 2009 at 6:32 PM, Henry Pepper <henrypepr@gmail.com> wrote: > >> Hi >> >> I''m been trying to install an xvm instance on a remote system, but I >> keep running into variations on ''unable to open display'' >> >> I''ve tried to use ssh -X but I''ve not been able to get it to forward >> when su''d to root. >> > > I haven''t played around much with it, but doing one of these : > - ssh root@... > - ssh as normal user, then "sudo virt-install ..." (instead of "su -" > or "sudo -s") should work. > > As an alternative you could also modify domU config file (or > xend-config.sxp) to have vnc listen on 0.0.0.0 instead of localhost. > >
John Levon
2009-Sep-17 12:06 UTC
Re: Any idea on how to install a hvm on a remote system. -- unable to open display
On Thu, Sep 17, 2009 at 01:32:56PM +0200, Henry Pepper wrote:> I''m been trying to install an xvm instance on a remote system, but I > keep running into variations on ''unable to open display''This is a general XAUTHORITY problem, even with xhost +, you can''t access the display as a different user. I''m not sure, but copying the user''s ~/.Xauthority to /root and chowning it might help. regards john