Citrix client within jail

André Olsson Andre.olsson at c2solutions.se
Thu Jan 17 02:57:43 PST 2008


Hi

we are trying to set up a client with FreeBSD 6.2-RELEASE as the host OS and with two jails configured on it.
Each jail is going to run a Citrix-client against two different separated Citrix-systems.

Since the user is going to work locally on the client we need it to be possible to run both the X-server and the 
X-application (citrix client) from within the same jail.

We have the jails installed with Gnome and The citrix client. 

I have read your earlier posts in a similar case and seen that its possible to run a x-server in a jail 
and connect to a x-application in another jail.

Is it possible from within a jail to run both the X-server and the X-application, and do a SSH-connect 
against the jail-localhost to start the Citrix client, or will we get a problem connecting the application to 
a local Display?

Our goal is to connect one jail1 to one Display and the jail2 to another Display and for the User to
to jump inbetween the citrix-sessions ( Ctrl-Alt- F3...Ctrl-Alt-F4).

When starting X we get error:xf86OpenDisplay: No console driver found.


* Section jail in host rc.conf:

jail_enable="YES"
jail_interface="bge0"
jail_devfs_enable="YES"
jail_procfs_enable="YES"
jail_list="myjail"
jail_myjail_rootdir="/usr/jail/myjail"
jail_myjail_hostname="myjail.example.com"
jail_myjail_ip="192.168.0.155"

* Output of mount on host:

devfs on /usr/jail/myjail/dev (devfs, local)
procfs on /usr/jail/myjail/proc (procfs, local)
                                                 
												 
* Output of ls in /dev on jail:

fd      null    ptyp1   stderr  stdout  ttyp1   zero
log     ptyp0   random  stdin   ttyp0   urandom


* Syntax to connect to jail from host:
ssh -X -l root 192.168.0.155

* Output when starting X inside jail:
Fatal server error:
xf86OpenConsole: No console driver found
Supported drivers: pccons (with X support), syscons, pcvt
Check your kernel's console driver configuration and /dev entries

* syntax to start xterm within jail

ssh -f -X -T 192.168.0.155 xterm &

" output from above syntax
xterm Xt error: Cant open display: %s
xterm: DISPLAY is not set


We've never runned any X-applications within a jail before, only bind,apache,mysql and such, but I hope 
I've made my question understandable anyway:) 
Maybe we are barkin up the wrong tree and there is an easier way to connect 2 jails to 2 different
local displays?


Best regards

André


More information about the freebsd-jail mailing list