From owner-freebsd-jail@FreeBSD.ORG Sun Jul 20 18:11:48 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFD0E106564A for ; Sun, 20 Jul 2008 18:11:48 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from smtp.tal.navalradio.cl (smtp.tal.navalradio.cl [201.236.67.155]) by mx1.freebsd.org (Postfix) with ESMTP id 37FFB8FC13 for ; Sun, 20 Jul 2008 18:11:47 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from [172.18.64.125] ([172.18.64.125]) (authenticated bits=0) by smtp.tal.navalradio.cl (8.13.8/8.13.8) with ESMTP id m6KI93Ie012175 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 20 Jul 2008 18:09:12 GMT (envelope-from mikhailg@webanoide.org) Message-ID: <48837FD3.6020308@webanoide.org> Date: Sun, 20 Jul 2008 14:11:31 -0400 From: Mikhail Goriachev Organization: Webanoide User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: =?UTF-8?B?0JXQstCz0LXQvdC40Lkg0KjQsNC/0L7QstCw0Ls=?= , freebsd-jail@freebsd.org References: <488233B0.1000904@webanoide.org> <48825D18.1010001@webanoide.org> <48828965.5000802@webanoide.org> <4882F53C.6060604@webanoide.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: Re: getpwnam: root: No such file or directory X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2008 18:11:48 -0000 Please make sure you also reply to the list. Евгений Шаповал wrote: > Mikhail Goriachev, thanks!!! > I remove line "cd /usr/src/etc", make installworld and now all good! =) > root user exists, I add user and login from ssh to jail =) No worries. I'm glad it finally got going for you. > but I have 2 questions: > 1. when I start jail (/etc/rc.d/jail start), I have: > > /etc/rc.conf: //: Permission denied > Configuring jails:. > Starting jails: host1-jail.local. > > how correct error on first line? =\ Check file permissions for both, the jail and main OS: # ls -l /etc/rc.conf # ls -l /usr/local/jails/test/etc/rc.conf They both should be 644. Also check the logs: /var/log/jail_test_console.log /var/log/messages > > 2. MAC in jail and main os identical?! Yes they are identical because they both share the same network card. > how you see MAC "00:14:85:3a:58:90" in jail and main os identical oO > I need internet connection in my jail and main os =( but if jail and > main os have identical mac, it's unreal =( in LAN can't be 2 computers > with one mac =( or I something confuse?! =\ In your case this is only one computer with multiple IPs (aliases). This is normal behaviour. As of sharing the Internet connection, well it all depends on your resources and how you design the system. For instance, in some situations (single interface hosts) I bind my jails to lo0 and then use NAT to share the Internet. If you have access to multiple public IPs then you can bind jails directly to the public interface. +------ eth0 ------+ | | | lo0 | | | +------------------+ In other situations, where jails should be reached from the LAN, I bind them to the interface that faces the LAN (eth1) instead of lo0 or the Internet (eth0) and NAT is also used here. +------ eth0 ------+ | | | lo0 | | | +------ eth1 ------+ Basically everything depends on your needs and goals. Regards, Mikhail. -- Mikhail Goriachev Webanoide