[opensuse-virtual] Trying to launching any X11 applications from a Xen Guest on my local desktop doesn't open a window, and fails with an error.
From what I've managed to read, I understand I can do that by "enabling X forwarding" on the Guest, opening an SSH session to the Guest, and executing the target application (e.g. 'xterm'), and if all goes well,
Good morning, I'm consolidating a number of separate, physical servers onto a single Xen platform. I have installed OpenSUSE 12.1 as the Xen Host, and, I can install & launch OpenSUSE 12.1 Xen Guests. All of the Guests are accessible using SSH, and are generally functioning as servers as they're intended to. So far, so good. For one of the Guests, I need access to a root X11 application on it. the application's window should appear on (or is it "in"?) my local desktop. Problem is, when I try that, I get the following error in the SSH console window: "xterm Warning: This program is an suid-root program or is being run by the root user. The full text of the error or warning message cannot be safely formatted in this environment. You may get a more descriptive message by running the program as a non-root user or by removing the suid bit on the executable. xterm Xt error: Can't open display: %s" I get the similar error for any application I try to launch. Lots of sites I've read say to "make sure you set the $DISPLAY correctly", but unfortunately don't tell me how. Is this error the result of a bad DISPLAY setting, or something else? How might I go about getting this fixed and working? I'd appreciate any help someone here can provide. Roger -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
rogerhalborn@operamail.com wrote:
Good morning,
I'm consolidating a number of separate, physical servers onto a single Xen platform.
I have installed OpenSUSE 12.1 as the Xen Host, and, I can install & launch OpenSUSE 12.1 Xen Guests.
All of the Guests are accessible using SSH, and are generally functioning as servers as they're intended to.
So far, so good.
For one of the Guests, I need access to a root X11 application on it.
From what I've managed to read, I understand I can do that by "enabling X forwarding" on the Guest, opening an SSH session to the Guest, and executing the target application (e.g. 'xterm'), and if all goes well, the application's window should appear on (or is it "in"?) my local desktop.
Problem is, when I try that, I get the following error in the SSH console window:
"xterm Warning: This program is an suid-root program or is being run by the root user. The full text of the error or warning message cannot be safely formatted in this environment. You may get a more descriptive message by running the program as a non-root user or by removing the suid bit on the executable. xterm Xt error: Can't open display: %s"
Seems you don't have X forwarding enabled. To enable, use the '-X' option when opening your ssh connection, e.g. ssh -X vm-hostname Regards, Jim -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
On Tue, Jan 10, 2012, at 11:02 AM, Jim Fehlig wrote:
Seems you don't have X forwarding enabled. To enable, use the '-X' option when opening your ssh connection, e.g.
ssh -X vm-hostname
That's exactly what I have been doing. The error I get is in one of those "ssh -X" forwarded sessions. Roger -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
That's exactly what I have been doing. The error I get is in one of those "ssh -X" forwarded sessions.
Here's the transcript of my attempt. [rh laptop: /home/rh]$ ssh -X -l rh domU_s2.internal.loc X11 forwarding request failed on channel 0 Last login: Tue Jan 10 10:11:10 2012 from 192.168.1.17 [rh domU_s2: /home/rh]$ xterm Warning: This program is an suid-root program or is being run by the root user. The full text of the error or warning message cannot be safely formatted in this environment. You may get a more descriptive message by running the program as a non-root user or by removing the suid bit on the executable. xterm Xt error: Can't open display: %s -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
rogerhalborn@operamail.com wrote:
That's exactly what I have been doing. The error I get is in one of those "ssh -X" forwarded sessions.
Here's the transcript of my attempt.
[rh laptop: /home/rh]$ ssh -X -l rh domU_s2.internal.loc X11 forwarding request failed on channel 0
What is the ssh client used here? -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
On Tue, Jan 10, 2012, at 11:59 AM, Jim Fehlig wrote:
What is the ssh client used here?
which ssh /usr/bin/ssh rpm -q --whatprovides `which ssh` openssh-5.9p1-20.2.x86_64 zypper info openssh Loading repository data... Reading installed packages... Information for package openssh: Repository: Network Name: openssh Version: 5.9p1-20.2 Arch: x86_64 Vendor: obs://build.opensuse.org/network Installed: Yes Status: up-to-date Installed Size: 2.7 MiB Summary: Secure Shell Client and Server (Remote Login Program) Description: SSH (Secure Shell) is a program for logging into and executing commands on a remote machine. It is intended to replace rsh (rlogin and rsh) and provides openssl (secure encrypted communication) between two untrusted hosts over an insecure network. xorg-x11 (X Window System) connections and arbitrary TCP/IP ports can also be forwarded over the secure channel. I regularly, successfully use this client to x-forward to and from non-xen boxes, with full X environments, and real video hardware. It's to and from the xen guest that's the problem for now. Roger -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
rogerhalborn@operamail.com wrote:
On Tue, Jan 10, 2012, at 11:59 AM, Jim Fehlig wrote:
What is the ssh client used here?
which ssh /usr/bin/ssh
rpm -q --whatprovides `which ssh` openssh-5.9p1-20.2.x86_64
My client is 5.8p2-3.1.3
I regularly, successfully use this client to x-forward to and from non-xen boxes, with full X environments, and real video hardware.
Hmm, I can't reproduce. This sure smells like a configuration issue, but unfortunately I'm not familiar with debugging ssh. Maybe one of the user lists (opensuse@opensuse.org) would be more helpful. Meanwhile, some debug output might point in the right direction, e.g. 'ssh -X -vvv ...'. Regards, Jim -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
participants (2)
-
Jim Fehlig
-
rogerhalborn@operamail.com