kern/54163: Non-existing Jails in jls?!
Mário Freitas
sub_0 at netcabo.pt
Sun Jul 6 19:10:18 PDT 2003
>Number: 54163
>Category: kern
>Synopsis: Non-existing Jails in jls?!
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 06 19:10:15 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Mário Freitas
>Release: FreeBSD 5.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD testmachinex.example.org 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Wed Jul 2 15:58:50 WEST 2003 sub_0 at testmachinex.example.org:/usr/obj/usr/src/sys/TEST i386
>Description:
I folks
I've noticed a couple of days ago some problems(?) in jail implementation.
Sometimes(I'm not sure under what kind of circunstances this happens),
I can't kill jails which do not seem to exist. Below I wrote what happened
today(this is the second time the issue occurs):
root# jls
JID IP Address Hostname Path
8 192.168.1.44 testmachine.example.org /usr/jail/192.168.1.44
6 192.168.1.44 testmachine.example.org /usr/jail/192.168.1.44
root#
root# killall -j 8
No matching processes were found
root# killall -j 6
No matching processes were found
root# killall -j 1 ( this does not exist but the output is different)
killall: jail_attach(): 1: Invalid argument
No jail ID processes running and jls lists 6,8?! :
root# ps -ax | grep J
root#
Also "sh /etc/rc.d/jail stop" does not work.
I always mount this at startup(fstab):
devfs /usr/jail/192.168.1.44/dev devfs rw
pocfs /usr/jail/192.168.1.44/proc procfs rw
host environment's rc.conf:
jail_enable="YES"
jail_list=testmachine
jail_testmachine_hostname="testmachine.example.org"
jail_testmachine_ip="192.168.1.44"
jail_testmachine_rootdir="/usr/jail/192.168.1.44"
jail_testmachine_exec="/bin/sh /etc/rc"
jail_set_hostname_allow="0"
jail_sysvipc_allow="0"
jail environment's rc.conf:
root# cat /usr/jail/192.168.1.44/etc/rc.conf
rpcbind_enable="NO"
network_interfaces=""
sshd_enable="YES"
sendmail_enable="NONE"
linux_enable="YES"
inetd_enable="YES"
inetd_flags="-wW -a 192.168.1.44"
I also binded sshd in address 192.168.1.44.
Do you know what's going on?
Thanks in advance.
>How-To-Repeat:
No idea.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list