From owner-freebsd-emulation@freebsd.org Wed Aug 9 18:51:20 2017 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76A59DD36A7 for ; Wed, 9 Aug 2017 18:51:20 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from mx1.etoilesoft.fr (mx1.etoilesoft.fr [52.57.51.18]) by mx1.freebsd.org (Postfix) with ESMTP id 408FC81166 for ; Wed, 9 Aug 2017 18:51:19 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from mx1.etoilesoft.fr (localhost [127.0.0.1]) by mx1.etoilesoft.fr (Postfix) with ESMTP id 4736E9C945 for ; Wed, 9 Aug 2017 18:45:06 +0000 (UTC) Received: from [172.25.59.64] (localhost [127.0.0.1]) (Authenticated sender: auryn@zirakzigil.org) by mx1.etoilesoft.fr (Postfix) with ESMTPA id 953949C944 for ; Wed, 9 Aug 2017 18:45:05 +0000 (UTC) To: freebsd-emulation@freebsd.org From: Giulio Ferro Subject: devd in jail Message-ID: <19e30279-8941-0041-5a62-bc812d645727@zirakzigil.org> Date: Wed, 9 Aug 2017 20:44:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: fr X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Aug 2017 18:51:20 -0000 Hello all, Setup : 11.1-STABLE FreeBSD 11.1-STABLE #0 r321925M amd64 I'm trying to create a fully virtualized desktop enviroment in a jail by means of installing there a xrdp-devel server + Xorg installation (xorg + xorgrdp). Everything seems to work until the moment when the X server actually tries to come up (after I choose session=xorg, username + password) In the X logs in the jail, in fact, I have this error: ... [ 9768.824] (EE) config/devd: fail to connect to devd [ 9768.824] [config] failed to initialise devd I've checked on the host machine, and I don't have that error as everything works fine there... In my jail, I've setup the devfs like this (/etc/jail.conf in the host): --- exec.start="/bin/sh /etc/rc"; exec.stop="/bin/sh /etc/rc.shutdown"; exec.clean; mount.devfs; devfs_ruleset=1; path="/usr/home/jail/$name"; myjail { host.hostname="myjail.me.com"; vnet; vnet.interface = epair0b, epair1b; persist; } --- and in the /etc/devfs.conf everythink is commented out. In the /dev directory in the jail, I get both the devctl and devctl2 devices. As the devd demon is not running in the jail, I've tried adding devd_enable="YES" in the rc.conf (jail), but when I try to start it, I get: # /etc/rc.d/devd start Starting devd. devd: Can't open devctl device /dev/devctl: Device busy /etc/rc.d/devd: WARNING: failed to start devd Do you know if I'm doing something wrong, or there's a proper way to have devd running in the jail? I've thought that maybe I should use the devtcl2 device, as the devctl is used by the host, but I don't know how to specify that to devd... Thanks in advance for your help. Giulio