Trying to run remote X (not succeeding)
Walter Dnes
waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org
Sun Jul 25 22:52:20 UTC 2010
OK, I have QEMU-KVM up and running on a 64-bit Gentoo host, running a
32-bit Gentoo guest. I built the 64-built host without 32-bit support,
only to find afterwards that WINE doesn't run on a 64-bit linux<G>. And
I can now run a Windows-only antenna-modelling app in WINE in the 32-bit
guest. The guest has X up and running, but the screen update of X inside
the VM is "somewhat leisurely", to say the least. First, the lineup...
host
====
- hostname "i3"
- IP address 192.168.123.249
guest
=====
- hostname "g32_00"
- it thinks its IP address is 10.0.2.15
[g32_00][waltdnes][~] /sbin/ifconfig eth0
eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:943 errors:0 dropped:0 overruns:0 frame:0
TX packets:532 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:71366 (69.6 KiB) TX bytes:77500 (75.6 KiB)
Interrupt:11 Base address:0xc000
What I would like to do is...
- ssh from the host into the guest
- start WINE on the guest, but...
- display the WINE window on the X session in the host
[g32_00][waltdnes][~] /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
The QEMU-KVM guest is launched with "-redir 5555::22:". To ssh from
the host to the guest, I execute the non-intuitive command...
ssh -p 5555 waltdnes at localhost
>From the guest, I can...
ssh -p 5555 waltdnes-Q0ErXNX1Rub4uyLJKQN6/w at public.gmane.org
scp also works both ways. I've enabled X forwarding in /etc/sss_config
and /etc/sshd_config on both machines, and restarted sshd on both. When
I ssh from host to guest, I get...
waltdnes at i3 ~ $ ssh -p 5555 localhost
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Sun Jul 25 18:19:45 2010 from 10.0.2.2
When I try something simple, like launching xterm from the guest, using
the host's currently-running X session, I get...
[g32_00][waltdnes][~] xterm -display 192.168.123.249
xterm Xt error: Can't open display: 192.168.123.249
* I've checked the logs, and it's not an iptables problem.
* I've gotten rid of "-nolisten tcp" in the X startup script on the host.
* I've bypassed ssh altogether, and from the QEMU-KVM window typed...
[g32_00][waltdnes][~] xterm -display 192.168.123.249
No luck. Any ideas?
--
Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org>
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list