Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Sep 2017 08:54:45 +0200
From:      Giulio Ferro <auryn@zirakzigil.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: devd in jail
Message-ID:  <da552407-fb13-677b-f514-c3bfacc83e73@zirakzigil.org>
In-Reply-To: <20170906221947.Horde.RITHvdc1wVE9v0-3nBavR0Z@webmail.leidinger.net>
References:  <e03a6040-1322-c82c-0e96-49c474188d5c@zirakzigil.org> <CAOtMX2g7PR9S7v%2BrUXwBeQUPDFfJy2zZwAvg7q5ze99jDF4hmA@mail.gmail.com> <20170810225439.Horde.1s8Qi_dlNtxgEigsNKbdrer@webmail.leidinger.net> <4a1a99a5-35ea-19c9-7ac8-77875ac6f71f@zirakzigil.org> <20170905151537.Horde.10cHNOX1OVri7mGaUcDeX1l@webmail.leidinger.net> <7ca865ee-b613-2f0c-daf0-d828884b5e74@zirakzigil.org> <1C181EF2-B8B1-4F42-BF80-ABEA0593DD43@dsl-only.net> <c17afdad-6bf0-3c4b-6325-2417fb0d18d7@zirakzigil.org> <20170906122556.Horde.5OdDwtii7HXPNArY77YUyBi@webmail.leidinger.net> <D5C4EF81-BCF7-496E-8CD4-2C053607D20C@zirakzigil.org> <20170906221947.Horde.RITHvdc1wVE9v0-3nBavR0Z@webmail.leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 06/09/2017 22:19, Alexander Leidinger wrote:
>
> Quoting Giulio Ferro <auryn@zirakzigil.org> (from Wed, 6 Sep 2017 
> 14:13:52 +0200):
>
>> Hi Alexander,
>>
>> I've installed everything after my custom kernel was installed. And 
>> as I said, it differs from GENERIC only for the addition of VIMAGE 
>> and bridge.
>>
>> What I can try to do is installing your patches so to remove the devd 
>> issue, and see if it starts like this.
>>
>> Can you point me to patches for 11.1 stable?
>
> Attached, patch against releng-11.1. Beware, this is not even 
> compile-tested. And you need the modifications described in a previous 
> mail for /etc/devfs.rules.
>
> Bye,
> Alexander.
>

Hi Alexander,


I've applied the patch, compiled and install the new kernel.


Here's my jail.conf


------------------------------------------------------------

exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
mount.devfs;
devfs_ruleset=1;
allow.kmem_access;


path = "/usr/home/jails/$name";

xx {
         host.hostname = "xx.xx.xx";
         vnet;
         vnet.interface = epair0b, epair1b;
         persist;
      }


------------------------------------------------------------


But the problem now is that the jail doesn't start, if fact it seems it 
doesn't recognise the parameter:


# /etc/rc.d/jail start
Starting jails:jail: wsj: unknown parameter: allow.kmem_access


I've tried both putting it in the general section and in the xx jail 
section, but same result.


Should I put it somewhere else?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?da552407-fb13-677b-f514-c3bfacc83e73>