From owner-freebsd-virtualization@FreeBSD.ORG Wed Dec 2 16:17:31 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E631106566C for ; Wed, 2 Dec 2009 16:17:31 +0000 (UTC) (envelope-from jmnwong@gmail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id AC6278FC22 for ; Wed, 2 Dec 2009 16:17:30 +0000 (UTC) Received: by ewy26 with SMTP id 26so401441ewy.3 for ; Wed, 02 Dec 2009 08:17:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=r0jfA3SR469ae679QKhrK3PUbqx3sKljsT36NPly1Ms=; b=HHJKeW2EUuVzPSKKFmJ6u8LM5xIs1Tw9FmFDprPo370bRymhh2Kd/gMVCdVnXBIRDc iBz9hOypK6CvOlsd/o1XndU8VuSQWISdj7mgap1w7hCGXqtpv2WatgtHBW3cGHAdhW4I hAS0Brfl9g2kunCSnK00cz6IJdU18GuW20IsM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Q63dAEJgWNf9avrJ1x2LzqVtQTsNpADM0Rw6z0OvzTWtx4qF7fZuWKnu+TmCihfz9c q6xaW7TpxFSdPtzq8jNaD9uhxCCVvQdC8rIBIJjpdEcfKNcNGw3BVAvPW5jfD1qtCS3S 10/nuNn4yH+xnWObRt0uAgEzKCfxnsZYxCl50= MIME-Version: 1.0 Received: by 10.213.96.195 with SMTP id i3mr267200ebn.97.1259770635130; Wed, 02 Dec 2009 08:17:15 -0800 (PST) Date: Wed, 2 Dec 2009 11:17:15 -0500 Message-ID: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> From: Justin Wong To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2009 16:17:31 -0000 I am having trouble getting ppp to work within vimages. Without vimages, my box is able to connect (via vr0 interface) and assign it to tun0. With vimages, I assign vr0 to it (continuing with the name vr0 instead of eth0) and ppp cannot detect it therefore I am unable to request for an IP. I am wondering whether this is a limitation on vimages/jails running ppp. Here is the error I am receiving: Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: PPPoE: unknown host Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: PPPoE: unknown host Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: Device (PPPoE:vr0) must bee gin with a '/', a '!' or contain at least one ':' Dec 1 09:24:53 n2 ppp[1481]: tun0: Phase: deflink: Enter pause (0) for redialinn g. Here is my ppp.conf: default: set log phase lcp ipcp ccp tun command set speed sync set mru 1492 set mtu 1492 set ctsrts off enable lqr set timeout 0 set redial 0 0 set device PPPoE:vr0 set authname username set authkey password set dial set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR I also attempted to assign tun0 to a vimage, but it seems to lose its IP. -J From owner-freebsd-virtualization@FreeBSD.ORG Wed Dec 2 18:05:11 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1C221065670 for ; Wed, 2 Dec 2009 18:05:11 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outM.internet-mail-service.net (outm.internet-mail-service.net [216.240.47.236]) by mx1.freebsd.org (Postfix) with ESMTP id 9714D8FC08 for ; Wed, 2 Dec 2009 18:05:11 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id D4175961CA; Wed, 2 Dec 2009 10:05:10 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 4341E2D6013; Wed, 2 Dec 2009 10:05:10 -0800 (PST) Message-ID: <4B16AC5A.9030009@elischer.org> Date: Wed, 02 Dec 2009 10:05:14 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Justin Wong References: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> In-Reply-To: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization@freebsd.org Subject: Re: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2009 18:05:11 -0000 Justin Wong wrote: > I am having trouble getting ppp to work within vimages. Without vimages, my > box is able to connect (via vr0 interface) and assign it to tun0. With > vimages, I assign vr0 to it (continuing with the name vr0 instead of eth0) > and ppp cannot detect it therefore I am unable to request for an IP. I am > wondering whether this is a limitation on vimages/jails running ppp. > > Here is the error I am receiving: > > Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: PPPoE: unknown host > Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: PPPoE: unknown host > Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: Device (PPPoE:vr0) > must bee > gin with a '/', a '!' or contain at least one ':' > Dec 1 09:24:53 n2 ppp[1481]: tun0: Phase: deflink: Enter pause (0) for > redialinn > g. > > > Here is my ppp.conf: > > default: > set log phase lcp ipcp ccp tun command > set speed sync > set mru 1492 > set mtu 1492 > set ctsrts off > enable lqr > set timeout 0 > set redial 0 0 > set device PPPoE:vr0 > set authname username > set authkey password > set dial > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 > add default HISADDR > > > I also attempted to assign tun0 to a vimage, but it seems to lose its IP. It may be that there is an interaction between netgraph and vimage that is not yet worked out.. by chance I have a vimage kernel on my soekris 5501 with a pppoe link using ppp. I may try switching it over to another vimage and see what it does. (tonight after work) it's possible that the negraph pppoe node is only looking in the base vimage for the interface. > > > -J > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" From owner-freebsd-virtualization@FreeBSD.ORG Wed Dec 2 22:55:10 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 703DC1065703 for ; Wed, 2 Dec 2009 22:55:10 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [IPv6:2001:4068:10::3]) by mx1.freebsd.org (Postfix) with ESMTP id 1E1078FC16 for ; Wed, 2 Dec 2009 22:55:08 +0000 (UTC) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 90F7941C69F; Wed, 2 Dec 2009 23:55:06 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([192.168.74.103]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id LL31R9JCDnWa; Wed, 2 Dec 2009 23:55:06 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id EDA0941C6A7; Wed, 2 Dec 2009 23:55:05 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id 77A8F4448EC; Wed, 2 Dec 2009 22:52:06 +0000 (UTC) Date: Wed, 2 Dec 2009 22:52:06 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Justin Wong In-Reply-To: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> Message-ID: <20091202224841.O83957@maildrop.int.zabbadoz.net> References: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD virtualization mailing list Subject: Re: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2009 22:55:10 -0000 On Wed, 2 Dec 2009, Justin Wong wrote: Hi. > I am having trouble getting ppp to work within vimages. Without vimages, my > box is able to connect (via vr0 interface) and assign it to tun0. With Which version of FreeBSD are you using? > vimages, I assign vr0 to it (continuing with the name vr0 instead of eth0) > and ppp cannot detect it therefore I am unable to request for an IP. I am > wondering whether this is a limitation on vimages/jails running ppp. > > Here is the error I am receiving: > > Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: PPPoE: unknown host > Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: PPPoE: unknown host > Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: Device (PPPoE:vr0) > must bee > gin with a '/', a '!' or contain at least one ':' This sounds more like if you had some special charater in the config file somewhere? > Dec 1 09:24:53 n2 ppp[1481]: tun0: Phase: deflink: Enter pause (0) for > redialinn > g. > > Here is my ppp.conf: which I just started inside a vimage (with a different interface name) and it started just fine in -foreground, even though I don't have a single netgraph module loaded (in base system). > I also attempted to assign tun0 to a vimage, but it seems to lose its IP. What you would do if you have ppp running in base and want the data inside a vimage is to use a bridge. If you move an interface between network stacks basically all upper layer configuration is reset and initialized as if the interface was just created. -- Bjoern A. Zeeb It will not break if you know what you are doing. From owner-freebsd-virtualization@FreeBSD.ORG Thu Dec 3 14:16:22 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07864106566C for ; Thu, 3 Dec 2009 14:16:22 +0000 (UTC) (envelope-from jmnwong@gmail.com) Received: from mail-ew0-f216.google.com (mail-ew0-f216.google.com [209.85.219.216]) by mx1.freebsd.org (Postfix) with ESMTP id 77C1C8FC22 for ; Thu, 3 Dec 2009 14:16:21 +0000 (UTC) Received: by ewy8 with SMTP id 8so1537119ewy.35 for ; Thu, 03 Dec 2009 06:16:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=okQA4ej8u4UZJNNQKDv61vMFMBgWFpN8+JaC/GXhh/o=; b=WHcBE5WdowBKGGORaDcKQPfGfI325tDIXBiJ+0Uay3Ub5azOeNVuJBq9yCJ6JjcKwZ KRf9e9/WasqffbP9mVHKRzeLO4nY/9B5X0gI2MtijHTdy7tRz81kQfWnoOTMK30Rwttc 4MJPz/RnkGg7wyyXvvvpsNjRrNPj89ACK1Bnc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=JJGSsv1C4aTnldtrsYOWG9lAP8b2kuJnfj7EyRZjtEcXk0MQP0fzto08/JQ0/ZhG69 B9oHmXdymsGxLVZVtzSYN4aKLDLSUJ1hiRBYypB4knCrO1QoxtlFguJgyXTGZ0UAcYKS KC/jS4ZkYii6zyk/OKtdOHmv8dxllumBNKxKg= MIME-Version: 1.0 Received: by 10.213.57.19 with SMTP id a19mr3017524ebh.11.1259849779839; Thu, 03 Dec 2009 06:16:19 -0800 (PST) In-Reply-To: <20091202224841.O83957@maildrop.int.zabbadoz.net> References: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> <20091202224841.O83957@maildrop.int.zabbadoz.net> Date: Thu, 3 Dec 2009 09:16:19 -0500 Message-ID: <66313f8d0912030616h691b149ay64dac79214336c45@mail.gmail.com> From: Justin Wong To: "Bjoern A. Zeeb" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD virtualization mailing list Subject: Re: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 14:16:22 -0000 > > I am having trouble getting ppp to work within vimages. Without vimages, >> my >> box is able to connect (via vr0 interface) and assign it to tun0. With >> > > > Which version of FreeBSD are you using? FreeBSD 8.0 RC3. I upgraded it after experiencing some kernel panics with 7.1 (Thanks for the tip Julian!). Seems to be working well so far. > vimages, I assign vr0 to it (continuing with the name vr0 instead of eth0) >> and ppp cannot detect it therefore I am unable to request for an IP. I am >> wondering whether this is a limitation on vimages/jails running ppp. >> >> Here is the error I am receiving: >> >> Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: PPPoE: unknown host >> Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: PPPoE: unknown host >> Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: Device (PPPoE:vr0) >> must bee >> gin with a '/', a '!' or contain at least one ':' >> > > This sounds more like if you had some special charater in the config > file somewhere? My ppp.conf has the line "set device PPPoE:vr0". So I do not believe I am putting in any extra characters. Adding the '/', '!', or ':' doesn't seem to work either. vr0 is just the name of my interface. > > Dec 1 09:24:53 n2 ppp[1481]: tun0: Phase: deflink: Enter pause (0) for >> redialinn >> g. >> > > >> Here is my ppp.conf: >> > > which I just started inside a vimage (with a different interface name) > and it started just fine in -foreground, even though I don't have a > single netgraph module loaded (in base system). Interesting. Perhaps there is a conflict with netgraph. > I also attempted to assign tun0 to a vimage, but it seems to lose its IP. >> > > What you would do if you have ppp running in base and want the data > inside a vimage is to use a bridge. If you move an interface between > network stacks basically all upper layer configuration is reset and > initialized as if the interface was just created. > Ah, I overlooked that. So the result in that case is correct. I've also attempted to use mpd with no luck. It seems mpd specifically calls command '/sbin/ifconfig' and checks for vr0 and it does not find it. This is likely because it is looking in the base image instead of within my vimage. From owner-freebsd-virtualization@FreeBSD.ORG Thu Dec 3 18:29:50 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED80D106566B for ; Thu, 3 Dec 2009 18:29:49 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outB.internet-mail-service.net (outb.internet-mail-service.net [216.240.47.225]) by mx1.freebsd.org (Postfix) with ESMTP id CF1BA8FC16 for ; Thu, 3 Dec 2009 18:29:49 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 31654D4E0; Thu, 3 Dec 2009 10:29:50 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 751B52D6013; Thu, 3 Dec 2009 10:29:48 -0800 (PST) Message-ID: <4B1803A0.6000403@elischer.org> Date: Thu, 03 Dec 2009 10:29:52 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Justin Wong References: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> <20091202224841.O83957@maildrop.int.zabbadoz.net> <66313f8d0912030616h691b149ay64dac79214336c45@mail.gmail.com> In-Reply-To: <66313f8d0912030616h691b149ay64dac79214336c45@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Bjoern A. Zeeb" , FreeBSD virtualization mailing list Subject: Re: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 18:29:50 -0000 Justin Wong wrote: >> I am having trouble getting ppp to work within vimages. Without vimages, >>> my >>> box is able to connect (via vr0 interface) and assign it to tun0. With >>> >> >> Which version of FreeBSD are you using? > > > FreeBSD 8.0 RC3. I upgraded it after experiencing some kernel panics with > 7.1 (Thanks for the tip Julian!). Seems to be working well so far. > > >> vimages, I assign vr0 to it (continuing with the name vr0 instead of eth0) >>> and ppp cannot detect it therefore I am unable to request for an IP. I am >>> wondering whether this is a limitation on vimages/jails running ppp. >>> >>> Here is the error I am receiving: >>> >>> Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: PPPoE: unknown host >>> Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: PPPoE: unknown host >>> Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: Device (PPPoE:vr0) >>> must bee >>> gin with a '/', a '!' or contain at least one ':' >>> >> This sounds more like if you had some special charater in the config >> file somewhere? > > > My ppp.conf has the line "set device PPPoE:vr0". So I do not believe I am > putting in any extra characters. Adding the '/', '!', or ':' doesn't seem > to work either. vr0 is just the name of my interface. > > >> Dec 1 09:24:53 n2 ppp[1481]: tun0: Phase: deflink: Enter pause (0) for >>> redialinn >>> g. >>> >> >>> Here is my ppp.conf: >>> >> which I just started inside a vimage (with a different interface name) >> and it started just fine in -foreground, even though I don't have a >> single netgraph module loaded (in base system). > > > Interesting. Perhaps there is a conflict with netgraph. > possibly. but try running 'ngctl list' in the jail to list all the nodes it can see there. as well as ifconfig there might be an order dependency: try this: reboot with no netgraph nodes loaded. make the jail move vr0 to teh jail using ifconfig kldload ng_ether kldload ng_pppoe (in the jail) run ngctl list (in the jail) run ifconfig and see if the result is different if so then the trick would be to have the interfsce alreday in the right jail when the ng_ether nodes are created. if you do it the other way around it is possible that moving theinterfaces to a new jail doesn't move the netgraph nodes associated, leaving them behind in the old jail. > > I've also attempted to use mpd with no luck. It seems mpd specifically > calls command '/sbin/ifconfig' and checks for vr0 and it does not find it. > This is likely because it is looking in the base image instead of within my > vimage. it should not be if you are running in a jail as the jail is inherited by ifconfig. > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" From owner-freebsd-virtualization@FreeBSD.ORG Fri Dec 4 15:40:13 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72AF81066015 for ; Fri, 4 Dec 2009 15:40:13 +0000 (UTC) (envelope-from nvass9573@gmx.com) Received: from mailout-eu.gmx.com (mailout-eu.gmx.com [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id B98AD8FC12 for ; Fri, 4 Dec 2009 15:40:12 +0000 (UTC) Received: (qmail invoked by alias); 04 Dec 2009 15:40:11 -0000 Received: from adsl-252.91.140.44.tellas.gr (EHLO [169.254.0.102]) [91.140.44.252] by mail.gmx.com (mp-eu004) with SMTP; 04 Dec 2009 16:40:11 +0100 X-Authenticated: #46156728 X-Provags-ID: V01U2FsdGVkX1+POsBONg2P4il1R+1QHTrqtwzD8p9MI0iEY8kpRl 3MglDuJy4TTQtn Message-ID: <4B192D38.6020309@gmx.com> Date: Fri, 04 Dec 2009 17:39:36 +0200 From: Nikos Vassiliadis User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Julian Elischer References: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> <20091202224841.O83957@maildrop.int.zabbadoz.net> <66313f8d0912030616h691b149ay64dac79214336c45@mail.gmail.com> <4B1803A0.6000403@elischer.org> In-Reply-To: <4B1803A0.6000403@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71 Cc: FreeBSD virtualization mailing list Subject: Re: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2009 15:40:13 -0000 Julian Elischer wrote: > > possibly. but try running 'ngctl list' in the jail to list all the nodes > it can see there. > > as well as ifconfig > > there might be an order dependency: > try this: > reboot with no netgraph nodes loaded. > make the jail > move vr0 to teh jail using ifconfig > kldload ng_ether > kldload ng_pppoe > (in the jail) run ngctl list > (in the jail) run ifconfig > > and see if the result is different > > if so then the trick would be to have the interfsce alreday in > the right jail when the ng_ether nodes are created. > > if you do it the other way around it is possible that moving > theinterfaces to a new jail doesn't move the netgraph nodes > associated, leaving them behind in the old jail. Sorry for the chipping in, What you describe Julian, works as expected. The problem is that this can work in a static setup, where one builds the physical topology and kldloads the ng_ether module. I am very interested in doing network simulations using vimage/vnet, thus want to be able to create and destroy topologies as wanted. Can I somehow overcome this? Thanks, Nikos From owner-freebsd-virtualization@FreeBSD.ORG Fri Dec 4 16:41:38 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B65D61065695 for ; Fri, 4 Dec 2009 16:41:38 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outK.internet-mail-service.net (outk.internet-mail-service.net [216.240.47.234]) by mx1.freebsd.org (Postfix) with ESMTP id 9C70B8FC30 for ; Fri, 4 Dec 2009 16:41:38 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 314192DA6E; Fri, 4 Dec 2009 08:41:38 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 970202D6017; Fri, 4 Dec 2009 08:41:37 -0800 (PST) Message-ID: <4B193BC5.9040707@elischer.org> Date: Fri, 04 Dec 2009 08:41:41 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Nikos Vassiliadis References: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> <20091202224841.O83957@maildrop.int.zabbadoz.net> <66313f8d0912030616h691b149ay64dac79214336c45@mail.gmail.com> <4B1803A0.6000403@elischer.org> <4B192D38.6020309@gmx.com> In-Reply-To: <4B192D38.6020309@gmx.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD virtualization mailing list Subject: Re: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2009 16:41:38 -0000 Nikos Vassiliadis wrote: > Julian Elischer wrote: >> >> possibly. but try running 'ngctl list' in the jail to list all the >> nodes it can see there. >> >> as well as ifconfig >> >> there might be an order dependency: >> try this: >> reboot with no netgraph nodes loaded. >> make the jail >> move vr0 to teh jail using ifconfig >> kldload ng_ether >> kldload ng_pppoe >> (in the jail) run ngctl list >> (in the jail) run ifconfig >> >> and see if the result is different >> >> if so then the trick would be to have the interfsce alreday in >> the right jail when the ng_ether nodes are created. >> >> if you do it the other way around it is possible that moving >> theinterfaces to a new jail doesn't move the netgraph nodes >> associated, leaving them behind in the old jail. > > Sorry for the chipping in, > > What you describe Julian, works as expected. The problem is > that this can work in a static setup, where one builds the physical > topology and kldloads the ng_ether module. I am very interested > in doing network simulations using vimage/vnet, thus want to > be able to create and destroy topologies as wanted. Can I > somehow overcome this? > > Thanks, Nikos we would expect it to work the way you wish but it appears that we have left that out in oversight. We'll see what we can do.. (remember in 8.0 vimage is just s technology review feature and you should not be trying to use it in production.) I'll look at what it will take to fix this by 8.1 :-) Julian From owner-freebsd-virtualization@FreeBSD.ORG Fri Dec 4 17:05:30 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE9C8106566B for ; Fri, 4 Dec 2009 17:05:30 +0000 (UTC) (envelope-from nvass9573@gmx.com) Received: from mailout-eu.gmx.com (mailout-eu.gmx.com [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id 2F05D8FC15 for ; Fri, 4 Dec 2009 17:05:30 +0000 (UTC) Received: (qmail invoked by alias); 04 Dec 2009 17:05:28 -0000 Received: from adsl-252.91.140.44.tellas.gr (EHLO [169.254.0.102]) [91.140.44.252] by mail.gmx.com (mp-eu002) with SMTP; 04 Dec 2009 18:05:28 +0100 X-Authenticated: #46156728 X-Provags-ID: V01U2FsdGVkX1/T25BbF/vTM0Vq1VL5Cp7KLbQMLsxbo+IpXnKelk U2N2/LTTa3PmM0 Message-ID: <4B19413B.9090902@gmx.com> Date: Fri, 04 Dec 2009 19:04:59 +0200 From: Nikos Vassiliadis User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Julian Elischer References: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> <20091202224841.O83957@maildrop.int.zabbadoz.net> <66313f8d0912030616h691b149ay64dac79214336c45@mail.gmail.com> <4B1803A0.6000403@elischer.org> <4B192D38.6020309@gmx.com> <4B193BC5.9040707@elischer.org> In-Reply-To: <4B193BC5.9040707@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6899999999999999 Cc: FreeBSD virtualization mailing list Subject: Re: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2009 17:05:30 -0000 Julian Elischer wrote: > we would expect it to work the way you wish but it appears that we have > left that out in oversight. > > We'll see what we can do.. > > (remember in 8.0 vimage is just s technology review feature and you > should not be trying to use it in production.) > I'll look at what it will take to fix this by 8.1 :-) Thanks a lot! Completely irrelevant to this thread, but is there any in-kernel NAT mechanism that is known to work with vnets at this time? I was trying to use ng_nat, but it seems that it fails for probably similar reasons. Nikos From owner-freebsd-virtualization@FreeBSD.ORG Fri Dec 4 17:48:09 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD94C106566C for ; Fri, 4 Dec 2009 17:48:09 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outF.internet-mail-service.net (outf.internet-mail-service.net [216.240.47.229]) by mx1.freebsd.org (Postfix) with ESMTP id A2F0B8FC08 for ; Fri, 4 Dec 2009 17:48:09 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 03384CB13; Fri, 4 Dec 2009 09:48:09 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 935492D6016; Fri, 4 Dec 2009 09:48:08 -0800 (PST) Message-ID: <4B194B5C.6040603@elischer.org> Date: Fri, 04 Dec 2009 09:48:12 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Nikos Vassiliadis References: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> <20091202224841.O83957@maildrop.int.zabbadoz.net> <66313f8d0912030616h691b149ay64dac79214336c45@mail.gmail.com> <4B1803A0.6000403@elischer.org> <4B192D38.6020309@gmx.com> <4B193BC5.9040707@elischer.org> <4B19413B.9090902@gmx.com> In-Reply-To: <4B19413B.9090902@gmx.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD virtualization mailing list Subject: Re: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2009 17:48:09 -0000 Nikos Vassiliadis wrote: > Julian Elischer wrote: >> we would expect it to work the way you wish but it appears that we >> have left that out in oversight. >> >> We'll see what we can do.. >> >> (remember in 8.0 vimage is just s technology review feature and you >> should not be trying to use it in production.) >> I'll look at what it will take to fix this by 8.1 :-) > > Thanks a lot! > > Completely irrelevant to this thread, but is there any > in-kernel NAT mechanism that is known to work with vnets > at this time? ipfw nat? (same library, different interface) I've never used it though so I don't know how it's done. > > I was trying to use ng_nat, but it seems that it fails for > probably similar reasons. > > Nikos From owner-freebsd-virtualization@FreeBSD.ORG Fri Dec 4 17:55:48 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D034F106566C for ; Fri, 4 Dec 2009 17:55:48 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outA.internet-mail-service.net (outa.internet-mail-service.net [216.240.47.224]) by mx1.freebsd.org (Postfix) with ESMTP id B57A18FC14 for ; Fri, 4 Dec 2009 17:55:48 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 3E16B2DA6E; Fri, 4 Dec 2009 09:55:48 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id AB7B52D6018; Fri, 4 Dec 2009 09:55:47 -0800 (PST) Message-ID: <4B194D28.4040205@elischer.org> Date: Fri, 04 Dec 2009 09:55:52 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Nikos Vassiliadis References: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> <20091202224841.O83957@maildrop.int.zabbadoz.net> <66313f8d0912030616h691b149ay64dac79214336c45@mail.gmail.com> <4B1803A0.6000403@elischer.org> <4B192D38.6020309@gmx.com> <4B193BC5.9040707@elischer.org> <4B19413B.9090902@gmx.com> In-Reply-To: <4B19413B.9090902@gmx.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD virtualization mailing list Subject: Re: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2009 17:55:48 -0000 Nikos Vassiliadis wrote: > Julian Elischer wrote: >> we would expect it to work the way you wish but it appears that we >> have left that out in oversight. >> >> We'll see what we can do.. >> >> (remember in 8.0 vimage is just s technology review feature and you >> should not be trying to use it in production.) >> I'll look at what it will take to fix this by 8.1 :-) > > Thanks a lot! > > Completely irrelevant to this thread, but is there any > in-kernel NAT mechanism that is known to work with vnets > at this time? > > I was trying to use ng_nat, but it seems that it fails for > probably similar reasons. I don't think ng_nat would fail in that way. It's not the same. You create it in the vnet in which you want to use it. it may have some DIFFERENT reason to fail, but that wouldn't be it.. Just to be sure, you should examine the output of 'ngctl list' and check the connections as well (ngctl show [ID]:) in each jail when it is 'failing' to see what is connected to what. > > Nikos From owner-freebsd-virtualization@FreeBSD.ORG Fri Dec 4 17:55:49 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A2861065670 for ; Fri, 4 Dec 2009 17:55:49 +0000 (UTC) (envelope-from nvass9573@gmx.com) Received: from mailout-eu.gmx.com (mailout-eu.gmx.com [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id 7EF788FC13 for ; Fri, 4 Dec 2009 17:55:48 +0000 (UTC) Received: (qmail invoked by alias); 04 Dec 2009 17:55:46 -0000 Received: from adsl-252.91.140.44.tellas.gr (EHLO [169.254.0.102]) [91.140.44.252] by mail.gmx.com (mp-eu004) with SMTP; 04 Dec 2009 18:55:46 +0100 X-Authenticated: #46156728 X-Provags-ID: V01U2FsdGVkX18mniQZ6agm/vg2Tl0zZbiO3PGtVV62mrZJ72zTgp 8/3/1tS5KUsDNi Message-ID: <4B194D06.2010705@gmx.com> Date: Fri, 04 Dec 2009 19:55:18 +0200 From: Nikos Vassiliadis User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Julian Elischer References: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> <20091202224841.O83957@maildrop.int.zabbadoz.net> <66313f8d0912030616h691b149ay64dac79214336c45@mail.gmail.com> <4B1803A0.6000403@elischer.org> <4B192D38.6020309@gmx.com> <4B193BC5.9040707@elischer.org> <4B19413B.9090902@gmx.com> <4B194B5C.6040603@elischer.org> In-Reply-To: <4B194B5C.6040603@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.67 Cc: FreeBSD virtualization mailing list Subject: Re: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2009 17:55:49 -0000 Julian Elischer wrote: > Nikos Vassiliadis wrote: >> Julian Elischer wrote: >>> we would expect it to work the way you wish but it appears that we >>> have left that out in oversight. >>> >>> We'll see what we can do.. >>> >>> (remember in 8.0 vimage is just s technology review feature and you >>> should not be trying to use it in production.) >>> I'll look at what it will take to fix this by 8.1 :-) >> >> Thanks a lot! >> >> Completely irrelevant to this thread, but is there any >> in-kernel NAT mechanism that is known to work with vnets >> at this time? > > ipfw nat? (same library, different interface) > I've never used it though so I don't know how it's done. > Tried that, but unfortunately the ipfw nat module panics the kernel on loading... Nikos From owner-freebsd-virtualization@FreeBSD.ORG Fri Dec 4 21:09:49 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0380106566B for ; Fri, 4 Dec 2009 21:09:49 +0000 (UTC) (envelope-from jmnwong@gmail.com) Received: from mail-ew0-f216.google.com (mail-ew0-f216.google.com [209.85.219.216]) by mx1.freebsd.org (Postfix) with ESMTP id 29E968FC0A for ; Fri, 4 Dec 2009 21:09:48 +0000 (UTC) Received: by ewy8 with SMTP id 8so3306104ewy.35 for ; Fri, 04 Dec 2009 13:09:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=lxaSb9B22JwCPV0hkf2B6SH5csNjanKsZZ8k4YDM8TU=; b=InF1uSBSkYavOi/lIZfvLLuPqwxkvPZUpxkjLkTZ708WQZMhKuK4mN2muhrxQS1SrU ANin+zyO/B0BmZdSdkdthHZFk+ItgMISfcjqsofZz8e6vt+v8UsiTdA1Gm5qOrnjtuBc PzPrkJVdOq3Tmsm1thrt+YlRTLquP/HiD19ng= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=FI3PiLhnGB+mbk0blnF8Y4QbmZyqOLzbT/P+qr8t7nNp2SYGh213ZhFFa82R9TEirk ys1fOFpcs60cvuLKl385XkdTSXwGcGTdZAnFOefPGKGEs1njaGzwsOs2/DYaK5G4H8/y 20E8Hmlp/h7aKXCwkYvPp+AEFX/0aLkadMe9o= MIME-Version: 1.0 Received: by 10.213.43.195 with SMTP id x3mr5845854ebe.19.1259960988166; Fri, 04 Dec 2009 13:09:48 -0800 (PST) In-Reply-To: <4B1803A0.6000403@elischer.org> References: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> <20091202224841.O83957@maildrop.int.zabbadoz.net> <66313f8d0912030616h691b149ay64dac79214336c45@mail.gmail.com> <4B1803A0.6000403@elischer.org> Date: Fri, 4 Dec 2009 16:09:48 -0500 Message-ID: <66313f8d0912041309x6eea076ofb1b2454a3aabefa@mail.gmail.com> From: Justin Wong To: Julian Elischer Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "Bjoern A. Zeeb" , FreeBSD virtualization mailing list Subject: Re: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2009 21:09:49 -0000 That did it! Thanks. Justin Wong wrote: > >> I am having trouble getting ppp to work within vimages. Without vimages, >>> >>>> my >>>> box is able to connect (via vr0 interface) and assign it to tun0. With >>>> >>>> >>> Which version of FreeBSD are you using? >>> >> >> >> FreeBSD 8.0 RC3. I upgraded it after experiencing some kernel panics with >> 7.1 (Thanks for the tip Julian!). Seems to be working well so far. >> >> >> vimages, I assign vr0 to it (continuing with the name vr0 instead of >>> eth0) >>> >>>> and ppp cannot detect it therefore I am unable to request for an IP. I >>>> am >>>> wondering whether this is a limitation on vimages/jails running ppp. >>>> >>>> Here is the error I am receiving: >>>> >>>> Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: PPPoE: unknown >>>> host >>>> Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: PPPoE: unknown >>>> host >>>> Dec 1 09:24:53 n2 ppp[1481]: tun0: Warning: deflink: Device (PPPoE:vr0) >>>> must bee >>>> gin with a '/', a '!' or contain at least one ':' >>>> >>>> This sounds more like if you had some special charater in the config >>> file somewhere? >>> >> >> >> My ppp.conf has the line "set device PPPoE:vr0". So I do not believe I am >> putting in any extra characters. Adding the '/', '!', or ':' doesn't seem >> to work either. vr0 is just the name of my interface. >> >> >> Dec 1 09:24:53 n2 ppp[1481]: tun0: Phase: deflink: Enter pause (0) for >>> >>>> redialinn >>>> g. >>>> >>>> >>> Here is my ppp.conf: >>>> >>>> which I just started inside a vimage (with a different interface name) >>> and it started just fine in -foreground, even though I don't have a >>> single netgraph module loaded (in base system). >>> >> >> >> Interesting. Perhaps there is a conflict with netgraph. >> >> > possibly. but try running 'ngctl list' in the jail to list all the nodes it > can see there. > > as well as ifconfig > > there might be an order dependency: > try this: > reboot with no netgraph nodes loaded. > make the jail > move vr0 to teh jail using ifconfig > kldload ng_ether > kldload ng_pppoe > (in the jail) run ngctl list > (in the jail) run ifconfig > > and see if the result is different > > if so then the trick would be to have the interfsce alreday in > the right jail when the ng_ether nodes are created. > > if you do it the other way around it is possible that moving > theinterfaces to a new jail doesn't move the netgraph nodes > associated, leaving them behind in the old jail. > > > > > > > >> I've also attempted to use mpd with no luck. It seems mpd specifically >> calls command '/sbin/ifconfig' and checks for vr0 and it does not find it. >> This is likely because it is looking in the base image instead of within >> my >> vimage. >> > > it should not be if you are running in a jail as the jail is inherited > by ifconfig. > > > _______________________________________________ >> freebsd-virtualization@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >> To unsubscribe, send any mail to " >> freebsd-virtualization-unsubscribe@freebsd.org" >> > > From owner-freebsd-virtualization@FreeBSD.ORG Fri Dec 4 21:42:46 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00A361065676 for ; Fri, 4 Dec 2009 21:42:46 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outA.internet-mail-service.net (outa.internet-mail-service.net [216.240.47.224]) by mx1.freebsd.org (Postfix) with ESMTP id D8CBD8FC15 for ; Fri, 4 Dec 2009 21:42:45 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id A4B54B3E6; Fri, 4 Dec 2009 13:42:45 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 374062D6015; Fri, 4 Dec 2009 13:42:45 -0800 (PST) Message-ID: <4B198259.4060209@elischer.org> Date: Fri, 04 Dec 2009 13:42:49 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Justin Wong References: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> <20091202224841.O83957@maildrop.int.zabbadoz.net> <66313f8d0912030616h691b149ay64dac79214336c45@mail.gmail.com> <4B1803A0.6000403@elischer.org> <66313f8d0912041309x6eea076ofb1b2454a3aabefa@mail.gmail.com> In-Reply-To: <66313f8d0912041309x6eea076ofb1b2454a3aabefa@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Bjoern A. Zeeb" , FreeBSD virtualization mailing list Subject: Re: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2009 21:42:46 -0000 Justin Wong wrote: > That did it! Thanks. great! When I get time I'll look at making the netgraph nodes move with the interface. From owner-freebsd-virtualization@FreeBSD.ORG Sat Dec 5 20:55:24 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40EEC106568B for ; Sat, 5 Dec 2009 20:55:24 +0000 (UTC) (envelope-from nvass9573@gmx.com) Received: from mailout-eu.gmx.com (mailout-eu.gmx.com [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id 85C368FC18 for ; Sat, 5 Dec 2009 20:55:23 +0000 (UTC) Received: (qmail invoked by alias); 05 Dec 2009 20:55:21 -0000 Received: from adsl-252.91.140.44.tellas.gr (EHLO [169.254.0.102]) [91.140.44.252] by mail.gmx.com (mp-eu003) with SMTP; 05 Dec 2009 21:55:21 +0100 X-Authenticated: #46156728 X-Provags-ID: V01U2FsdGVkX1+wpmY6rO6w7jX6Mgg7OVTvq1BbbHRXN9Xh7gLbfK IZjahyyNwlGD81 Message-ID: <4B1AC892.3090402@gmx.com> Date: Sat, 05 Dec 2009 22:54:42 +0200 From: Nikos Vassiliadis User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Julian Elischer , FreeBSD virtualization mailing list References: <66313f8d0912020817x5839715ake916804d61dea730@mail.gmail.com> <20091202224841.O83957@maildrop.int.zabbadoz.net> <66313f8d0912030616h691b149ay64dac79214336c45@mail.gmail.com> <4B1803A0.6000403@elischer.org> <4B192D38.6020309@gmx.com> <4B193BC5.9040707@elischer.org> <4B19413B.9090902@gmx.com> <4B194B5C.6040603@elischer.org> <4B194D06.2010705@gmx.com> <4B195537.6060203@elischer.org> In-Reply-To: <4B195537.6060203@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.77 Cc: Subject: Re: ppp in vimages? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2009 20:55:24 -0000 Julian Elischer wrote: >> Tried that, but unfortunately the ipfw nat module panics the >> kernel on loading... > > try compiling it in.. It's working this way. I am about to build a new NanoBSD for my soekris which was collecting dust and put it in "production". Thanks, Nikos