← Back to team overview

marionnet-dev team mailing list archive

Re: Marionnet in LTSP

 

Hi Simon,

It's a pleasure to answer to a well detailed question, even if the solution is not simple.

7. I assumed that having DISPLAY set to <IP of thin-terminal>:7 on
hosting site may require setting DISPLAY from within Marionnet's host
to 172.23.0.254:7 but it doesn't fix the problem. Actually it fixes
(removes) the first part of the error message related to refused
connection, so the new error message looks like:
-----------8<----------
(wireshark:5076) Gtk-WARNING **:cannot open display: 172.23.0.254:7

This is reasonable, but it doesn't work. (I think that if it had been enough, we would have introduced it in Marionnet). Actually, I think that you have to transmit the server's X11 cookie to all virtual machines... Suppose that you start an ssh connection from the (thin) client to the server. In this connection, your $DISPLAY doesn't correspond to a real X11 server (it's the ssh -X tunneling):

server# echo $DISPLAY
localhost:7.0

However, this information is useful to get the related cookie:

server# xauth list :7
server/unix:7  MIT-MAGIC-COOKIE-1  34409ca90323311c437495112c060bda

Now you have to send this cookie to the virtual machine (for instance "m1", with IP 172.23.0.1):

m1# echo $DISPLAY
172.23.0.254:0

server# ssh root@172.23.0.1 xauth add 172.23.0.254:0 . 34409ca90323311c437495112c060bda
root@172.23.0.1's password:

or directly in your virtual machine:

m1# xauth add $DISPLAY . 34409ca90323311c437495112c060bda
xauth:  creating new authority file /root/.Xauthority

m1# xeyes  # should appear on your thin client

Best regards,
Jean-Vincent

On Tue, 2 Apr 2013 11:55:28 -0400, Simon Baev wrote:
Hello All,

 Background:
 --
 I'm trying to run Marionnet in LTSP environment (ltsp.org [1])
installed
 on top of Lubuntu 12.10 (Ubuntu + LXDE) with  several thin-terminals
 (http://www.disklessworkstations.com/1700-series-thin-clients.html
[2]).
This LTSP server is virtualized in VMware ESXi but it should play any
 difference.

 Setup:
 --
 1. The LTSP server has IP 168.18.104.142 and latest version of
 Marionnet installed using the script.
 2. A thin-terminal utilizes PXE boot, gets IP address from the same
 LAN, i.e. 168.18.104..128/25 [3] and starts LDM session to LTSP
server
 3. As soon as LDM session gets authenticated on LSP server it
 (thin-terminal) starts X session so I can run Marionnet on it. In
 console of the thin-terminal I can see the value of DISPLAY which is
 set to :7
 4. When I create new project in Marionnet with at least one host and
 start up the project, it adds a NIC (one per each Marionnet's host)
 with IP address set to 172.23.0.254/255.255.255.255 [4] so I assume
it is
 sort of P2P tunnel between hosting machine and a host within
Marionnet
 environment.
5. Once Marionnet's host started I can check the value of its DISPLAY
 which is set to 172.23.0.254:0 [5]
 6. When I try to start wireshark in Marionnet's host I'm getting
error:
 -----------8

Links:
------
[1] http://ltsp..org
[2] http://www.disklessworkstations.com/1700-series-thin-clients.html
[3] http://168.18.104.128/25
[4] http://172.23.0.254/255.255.255.255
[5] http://172.23.0.254:0
[6] http://172.23.0.254:0
[7] http://172.23.0.254:7
[8] http://172.23.0.254:7


Follow ups

References