Date: Fri, 27 Nov 2015 08:58:32 +0100 From: =?UTF-8?Q?Carsten_B=c3=a4cker?= <carbaecker@gmx.de> To: freebsd-hackers@freebsd.org Subject: Re: Hierarchical Jails Message-ID: <56580D28.4060107@gmx.de> In-Reply-To: <trinity-c10493ba-34d0-4b72-b38a-6b917ab1cb17-1448610875468@3capp-gmx-bs24> References: <trinity-2934d8e1-c138-4f4b-9347-aa091134bbe2-1448610700266@3capp-gmx-bs24> <trinity-c10493ba-34d0-4b72-b38a-6b917ab1cb17-1448610875468@3capp-gmx-bs24>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 27.11.2015 um 08:54 schrieb "Carsten Bäcker": > Sorry... something's wrong with GMX webmailer. Secont time this happens. > Hi Hackers, > i'm running into problems creating hierarchical jails. > First of all: this is my first try with *hierarchical* jails (in favor > of creating a bunch of VMs for software-testing). > I aliased lo0 with 127.0.1.1 - 127.0.1.3 > --- HOST jail.conf --- > exec.start = "/bin/sh /etc/rc"; > exec.stop = "/bin/sh /etc/rc.shutdown"; > exec.clean; > mount.devfs; > persist; > > allow.socket_af=1; > allow.raw_sockets=1; > path = "/usr/local/jails/$name"; > mount.fstab = "/usr/local/jails/fstab.$name"; > core { > host.hostname="jail_core"; > children.max=2; > ip4.addr = > ue0|192.168.42.90,lo0|127.0.1.1,lo0|127.0.1.2,lo0|127.0.1.3; > } > --- "jail_core" jail.conf --- > exec.start = "/bin/sh /etc/rc"; > exec.stop = "/bin/sh /etc/rc.shutdown"; > exec.clean; > mount.devfs; > persist; > path = "/usr/local/jails/$name"; > mount.fstab = "/usr/local/jails/fstab.$name"; > dev1 { > host.hostname="jail_dev1"; > ip4.addr = lo0|127.0.1.1; > } > jail_core starts up fine, but "children.max" seems to have no effect > when checked within the jail. > root@jail_core:/ # sysctl security.jail.param.children > security.jail.param.children.max: 0 > security.jail.param.children.cur: 0 > I'm not sure if this is related to the following problem, but when i > try to create a child-jail in this jailed environment i run into the > following error. > root@jail_core:/ # jail -c dev1 > ifconfig: ioctl (SIOCAIFADDR): permission denied > jail: dev1: /sbin/ifconfig lo0 inet 127.0.1.1 netmask 255.255.255.255 > alias: failed > What am i doing wrong? Any suggestions? > Unfortunately i didn't find too much information concerning > hierarchical jails. > Running CURRENT -r290973. > Best Regards > Carsten Bäcker > *Gesendet:* Freitag, 27. November 2015 um 08:51 Uhr > *Von:* "Carsten Bäcker" <carbaecker@gmx.de> > *An:* freebsd-hackers@freebsd.org > *Betreff:* Hierarchical Jails > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56580D28.4060107>