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"