From owner-freebsd-current@freebsd.org Tue Aug 9 14:09:41 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19015BB4371; Tue, 9 Aug 2016 14:09:41 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B913D16AC; Tue, 9 Aug 2016 14:09:40 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id d196so5352224wmd.0; Tue, 09 Aug 2016 07:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cBOmICYxej69ZJHMLKojdXg0nxKPYj5SSIlYI8FOs14=; b=Pb/HMkIDipiXaIoLdEJzA5DSJjl9a2nV0Tq7vhFqoBZSQHoDoGzvZ4fAzLyEf79n7N PBAIP57RF/uvMOrCE5ml6syGJyDTYTlZ7HZ3KwVpjzZQestBZ3uuuKg3qp8NTdp/GAb4 pV1fgTWtCnOzgZr4OFea7ZMC0+8yW8VypRt+GYtnnNdgpJO5pLLq3DAzc1ohl8xps90K lGVaYsKSX24up2oweVEyAc2ri6XNuPr0jJdjPuneioR0U0ZlF63fH2yBGe7vXJ/zSj4L zTqTKSv0ce5NpTLsxNr8+P2zV9wUdAiZLxzPx5Cj+DXWC++CtBtoyNgXP8Fs+jAmlKtm /arA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cBOmICYxej69ZJHMLKojdXg0nxKPYj5SSIlYI8FOs14=; b=Btx2IffhBShSxlBHJ6qRjNfcgJn4gYBS0Lio9/5SP5cxWe6ohAswmwTGoLiUAghIOA j8DVeedpMak5bFgHtU/5JUxqw2NUguHoLjA5OezjSwFtsnEom6UBmkr2Ki+TyIqAB8QP lCT77TnmxKLLS9IjMl3XW8C1/RAQ/39CXE5M+t7dZRhHlMaxwae7u0X7ZTlDRxiHNlJG K46migLBn7mzP5KLvwoI3cgtdyro+uUvzla9XPWZZa4U5rCg2NANWTfUzDNDyTnFX4y4 OL9yDTXoM/dJp0tkDdemgRhJF7fd3KZDBxg/o9xXES+xrV93N044QfnWUK82SGW+ze5T sJBA== X-Gm-Message-State: AEkoouuvmO88GRYKotzGAsH0O/svIPhCuUMSSKEHlO+AO6pFO3IyWrMdwEFDpyyERLbonDFRJrgf/4ohMKAFiQ== X-Received: by 10.194.18.35 with SMTP id t3mr88847792wjd.174.1470751778681; Tue, 09 Aug 2016 07:09:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.198.201 with HTTP; Tue, 9 Aug 2016 07:09:37 -0700 (PDT) In-Reply-To: <20160809113210.p2rkqmjnypg2iw5l@mac> References: <20160809085523.kow2qbpirzppytv6@mac> <20160809113210.p2rkqmjnypg2iw5l@mac> From: Miguel C Date: Tue, 9 Aug 2016 15:09:37 +0100 Message-ID: Subject: Re: FreeBSD 11 - BETA-1 Xen DOMU loses network when jail (VIMAGE) starts To: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Cc: freebsd-current , "freebsd-xen@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2016 14:09:41 -0000 On Tuesday, August 9, 2016, Roger Pau Monn=C3=A9 wro= te: > On Tue, Aug 09, 2016 at 12:12:34PM +0100, Miguel C wrote: > > Melhores Cumprimentos // Best Regards > > ----------------------------------------------- > > *Miguel Clara* > > *IT - Sys Admin & Developer* > > > > On Tue, Aug 9, 2016 at 9:55 AM, Roger Pau Monn=C3=A9 > > > wrote: > > > > > On Sat, Jul 23, 2016 at 08:46:49PM +0100, Miguel C wrote: > > > > Just as a note using netgraph (with jng script as a workaround) > works.... > > > > > > > > Also manually creating a bridge in the domu and adding xn0 as a > member > > > > makes this fail.... so the issue is indeed related to the bridge. > > > > > > > > I'll open a PR later in case someone want to look into it, but I'm > happy > > > it > > > > works with netgraph. > > > > > > I seem to be able to use xn* interfaces with bridges without problems= : > > > > > > xn0: flags=3D8943 > metric 0 > > > mtu 1500 > > > options=3D3 > > > ether 00:16:3e:74:3d:76 > > > nd6 options=3D29 > > > media: Ethernet manual > > > status: active > > > bridge0: flags=3D8843 metric = 0 > mtu > > > 1500 > > > ether 02:77:3d:4a:18:00 > > > inet 172.16.1.140 netmask 0xffffff00 broadcast 172.16.1.255 > > > nd6 options=3D9 > > > groups: bridge > > > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > > > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 > > > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > > > member: xn0 flags=3D143 > > > ifmaxaddr 0 port 2 priority 128 path cost 2000000 > > > > > > Is this a GENERIC kernel or are you using some custom > > > configuration/patches? > > > Can you provide some more information about how to reproduce this? > > > > > > GENERIC + VIMAGE, but that's just it, no other custom changes or > patches. > > > > Note however that this is under a NetbBSD Dom0, and I see the "vifXX" > > interface disappear in the Dom0 side when the bridge is create on FreeB= SD > > DomU. > > > > I'm actually happy with netgraph, although I've never played with it, a= nd > > seems more complex, the script provide in /share/examples is perfect to > use > > with "jail.conf" and pf seems happy in FreeBSD-11 (which is not CURRENT= , > > should we move this to a different mailing list!?) too, no panics so fa= r. > > > > I suspect the main issue, since it works fine for you is the fact that > this > > is in a NetBSD Dom0. > > Oh, from your previous email I thought that it was the interface inside o= f > the DomU that disappeared. Does then same happen on a NetBSD Dom0 with a > NetBSD DomU? > > Sorry I should have explained better, and no it does not happen with othe= r guests not even FreeBSD 9 or 10, but VIMAGE has major issues there and some have been fixed in 11 (panics while using of for example), and I also needed a patch for xn to even work (also related to NetBSD dom0) but bridge did not give any issues. It seems with 11 when I add xn0 to the bridge the dom0 thinks the interface was disconnected, and when that happens I guess the vif bridge script ( on dom0 ) destroys the interface. Roger. --=20 Miguel Clara, Sent from Gmail Mobile