From owner-freebsd-questions@FreeBSD.ORG Fri Nov 4 10:13:03 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43B4116A41F for ; Fri, 4 Nov 2005 10:13:03 +0000 (GMT) (envelope-from dvorakv@vdsoft.org) Received: from mail.vdsoft.org (poseidon.vdsoft.org [193.85.147.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id D353643D45 for ; Fri, 4 Nov 2005 10:13:02 +0000 (GMT) (envelope-from dvorakv@vdsoft.org) Received: from [10.0.0.132] (laptop.home.deltaeng.com [10.0.0.132]) by mail.vdsoft.org (Postfix) with ESMTP id 25E5E47E017; Fri, 4 Nov 2005 11:12:59 +0100 (CET) Message-ID: <436B3431.1070901@vdsoft.org> Date: Fri, 04 Nov 2005 11:13:05 +0100 From: Vladimir Dvorak User-Agent: Debian Thunderbird 1.0.6 (X11/20050802) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vladimir Dvorak References: <436B2AE5.6010908@vdsoft.org> In-Reply-To: <436B2AE5.6010908@vdsoft.org> X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: cannot jkill JAIL X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2005 10:13:03 -0000 Vladimir Dvorak wrote: >Hi, > >cannot jkill jail. > >I have in /etc/rc.conf this: > >jail_enable=yes >jail_list="firma1" >jail_set_hostname_allow="NO" > >jail_firma1_rootdir="/mnt/JAILS/10.0.0.166" >jail_firma1_hostname="company1.domain.com" >jail_firma1_ip="10.0.0.166" >jail_firma1_exec_start="/bin/sh /etc/rc" >jail_firma1_exec_stop="/bin/sh /etc/rc.shutdown" >jail_firma1_exec_devfs_enable="YES" > >After boot process I ssh to host system and look for jail like this: > >root@ultrahost# jls > JID IP Address Hostname Path > 1 10.0.0.166 company1.domain.com >/mnt/JAILS/10.0.0.166 > >And the problem ? I cannot jkill this jail > >root@ultrahost# jkill -r 1 >jkill: couldn't connect to kernel: bad namelist - no kernbase >root@ultrahost# jkill -k 1 >jkill: couldn't connect to kernel: bad namelist - no kernbase >root@ultrahost# jkill -f -k 1 >jkill: couldn't connect to kernel: bad namelist - no kernbase > >No chance. :-( ( but as you can see, jls reports jail running and I can >via SSH connect to) > >What I am doing wrong ? > >Thank you, > >Vladimir > > > Now it is solved. I should mount devfs into the jail also. ('mount_devfs devfs /mnt/JAILS/10.0.0.167/dev') Vladimir