Date: Sun, 20 Jul 2008 14:11:31 -0400 From: Mikhail Goriachev <mikhailg@webanoide.org> To: =?UTF-8?B?0JXQstCz0LXQvdC40Lkg0KjQsNC/0L7QstCw0Ls=?= <jeno.kiev@gmail.com>, freebsd-jail@freebsd.org Subject: Re: getpwnam: root: No such file or directory Message-ID: <48837FD3.6020308@webanoide.org> In-Reply-To: <f1eca1b20807200759v4352c6adyee9547461213d1f2@mail.gmail.com> References: <f1eca1b20807190529i523c22bbp7f20bfc2561d11bc@mail.gmail.com> <488233B0.1000904@webanoide.org> <f1eca1b20807191319t4969901aya8c7b06c8f81c9dc@mail.gmail.com> <48825D18.1010001@webanoide.org> <f1eca1b20807191455w1deddd63jb63a4ea049647b2c@mail.gmail.com> <48828965.5000802@webanoide.org> <f1eca1b20807192302t4b322dcdr2d26b684817ddb5f@mail.gmail.com> <4882F53C.6060604@webanoide.org> <f1eca1b20807200759v4352c6adyee9547461213d1f2@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48837FD3.6020308>