cannot jkill JAIL

Vladimir Dvorak dvorakv at vdsoft.org
Fri Nov 4 10:13:03 GMT 2005


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 at 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 at ultrahost# jkill -r 1
>jkill: couldn't connect to kernel: bad namelist - no kernbase
>root at ultrahost# jkill -k 1
>jkill: couldn't connect to kernel: bad namelist - no kernbase
>root at 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



More information about the freebsd-questions mailing list