Date: Tue, 2 Mar 2010 16:55:22 +0300 From: "Alexey V. Degtyarev" <alexey@renatasystems.org> To: Panagiotis Christias <christias@gmail.com> Cc: freebsd-jail@freebsd.org Subject: Re: How could a jail learn which is its parent host? Message-ID: <20100302135521.GF23214@hs-4.renatasystems.org> In-Reply-To: <e4b0ecef1003020037v79d0c334sedc65ffae094e29a@mail.gmail.com> References: <e4b0ecef1003020037v79d0c334sedc65ffae094e29a@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10:37 Tue 02 Mar, Panagiotis Christias wrote: > I am looking for a simple way so each jail could know at any time in > which (physical) server is hosted. Any suggestions? You may push a kernel environment on physical server so it will be available from within jail. To achieve it, on the mainhost (physical server) add to /boot/loader.conf: x.mainhost="physical.example.com" after reboot the mainhost server, you can use x.mainhost env from within jail (and mainhost as well): [root@jail1 ~]# kenv x.mainhost physical.example.com Check kenv(1) and loader.conf(5) for details. -- Alexey V. Degtyarev
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100302135521.GF23214>