Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2013 07:45:28 -0800 (PST)
From:      =?iso-8859-1?Q?Leonardo_M=2E_Ram=E9?= <martinrame@yahoo.com>
To:        "freebsd-questions@FreeBSD.org" <freebsd-questions@FreeBSD.org>
Subject:   Re: Jails
Message-ID:  <1358091928.24135.YahooMailNeo@web126204.mail.ne1.yahoo.com>
In-Reply-To: <50F287BD.7030708@aboutsupport.com>
References:  <50F0297B.3020604@aboutsupport.com> <20130111163129.47e44ce4@mr129166> <50F03DB9.4020209@aboutsupport.com> <20130111131913.049ad0b0@tech304.office.supranet.net> <50F1113C.3090703@aboutsupport.com> <27B0EF0C-CC6D-46E4-960A-ABCAA157D2CD@fisglobal.com> <50F287BD.7030708@aboutsupport.com>

next in thread | previous in thread | raw e-mail | index | archive | help

>________________________________

> From: "Zyumbilev, Peter" <peter@aboutsupport.com>
>To: freebsd-questions@FreeBSD.org 
>Cc: Mark Felder <feld@feld.me>; Devin Teske <dteske@freebsd.org>; Devin Teske <devin.teske@fisglobal.com> 
>Sent: Sunday, January 13, 2013 7:09 AM
>Subject: Re: Jails
> 
>
>On 12/01/2013 18:41, Devin Teske wrote:
>> 
>> On Jan 11, 2013, at 11:31 PM, Zyumbilev, Peter wrote:
>> 
>>> Hi,
>>>
>>> I have not tested it, but so far things do not look promising...
>>>
>>> I cannot even run "netstat -nvatp" properly, however sopcast seemed to
>>> run, but have not tested it, for plex - have not tried yet.
>>>
>> 
>> netstat isn't allowed in traditional jails (but is allowed in "vimage" jails which have their own network stack).
>> 
>> If you're able/willing to compile a new kernel to enable the "VIMAGE" feature, then this can be improved so that you can indeed use netstat within the jail.
>> 
>> NOTE: netstat is not allowed within traditional (non-VIMAGE) jails due to security restrictions.
>> 
>
>My  host os is Nas4Free and is stripped version of freebsd - e.g I
>cannot even compile ports - that is why I use jails - so no new kernel
>for me there :)
>
>So far I am quite happy with it  - I use it mainly as DLNA
>server(Serviio), ZFS,UPS support & Transmission made it quite good
>platform - would take plenty of time to get all this in plain FreeBSD
>install.
>
>The only thing that I might be missing is Plex, but due to lack "browser
>per folder feature", I will stick to open standard - DLNA.
>
>Peter


Hi, I've installed debian 6 in a jail, from FreeBsd 9.1 x86-64 by following the instructions from this thread. However, I also updated my /etc/resolv.conf inside the jail, but I get this error when I do ping:


server# /etc/rc.d/jail start debian
Configuring jails:.
Starting jails: debian.


server# jls
   JID  IP Address      Hostname                      Path
    13  192.168.0.250   debian                        /usr/home/jails/debian


server# jexec 13 bash
root@debian:/# uname -a
Linux debian 2.6.32 FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012 i686 GNU/Linux


root@debian:/# ping www.google.com
WARNING: 
WARNING: your kernel is veeery old. No problems.
PING www.google.com (173.194.42.17) 56(84) bytes of data.
ping: recvmsg: Invalid argument
ping: recvmsg: Invalid argument

Apart from getting those ping errors, I cannot "apt-get update":

root@debian:/# apt-get update
Get:1 http://security.debian.org squeeze/updates Release.gpg [836 B]
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en
Get:2 http://ftp.debian.org squeeze Release.gpg [1672 B]
Ign http://ftp.debian.org/debian/ squeeze/contrib Translation-en
99% [Working]FATAL -> Could not set non-blocking flag Bad file descriptor
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (100)

I need apt-get to install g++, to be able to compile a linux c++ app from FreeBsd.

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1358091928.24135.YahooMailNeo>