From owner-freebsd-questions@FreeBSD.ORG Tue Nov 29 22:58:49 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7084D106566B for ; Tue, 29 Nov 2011 22:58:49 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id E617B8FC13 for ; Tue, 29 Nov 2011 22:58:48 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so13404580bkb.13 for ; Tue, 29 Nov 2011 14:58:47 -0800 (PST) Received: by 10.204.41.66 with SMTP id n2mr52914040bke.77.1322607527134; Tue, 29 Nov 2011 14:58:47 -0800 (PST) Received: from [192.168.0.12] (did75-17-88-165-130-96.fbx.proxad.net. [88.165.130.96]) by mx.google.com with ESMTPS id z7sm40200715bka.1.2011.11.29.14.58.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Nov 2011 14:58:45 -0800 (PST) References: <4ED4D533.6020103@locolomo.org> <4ED4D6DA.9020604@locolomo.org> <4ED4F30C.3080302@my.gd> <4ED55C41.8010907@locolomo.org> In-Reply-To: <4ED55C41.8010907@locolomo.org> Mime-Version: 1.0 (iPhone Mail 8J2) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Message-Id: X-Mailer: iPhone Mail (8J2) From: Damien Fleuriot Date: Tue, 29 Nov 2011 23:58:36 +0100 To: =?utf-8?Q?Erik_N=C3=B8rgaard?= Cc: "freebsd-questions@freebsd.org" Subject: Re: No network in mixed FBSD81/90 chroot environment X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2011 22:58:49 -0000 On 29 Nov 2011, at 23:27, Erik N=C3=B8rgaard wrote: > On 29/11/2011 15:58, Damien Fleuriot wrote: >=20 >> On 11/29/11 1:58 PM, Erik N=C3=B8rgaard wrote: >>>> Today I finished make build/install world/kernel in /mnt, and now I no >>>> longer have network access, interfaces are visible with ifconfig but >>>> no ip is set and can't be set from within the chroot environment. >>>>=20 >>>> Is this to be expected? How do I get my network access back? >>> Should add: Network on the host FBSD81 system works fine. >>=20 >> When you chroot to your /mnt/ folder you're still using the 8.x kernel >> and thus the 8.x NIC drivers, with a 9.x userland. >>=20 >> This might be your problem. >=20 > That seems strange though, first, drivers are loaded into the kernel so th= ere is no mismatch there, 8.1 drivers in 8.1 kernel. And then, this is the o= utput from ifconfig, first the chroot environment, then the host environment= : >=20 > FreeBSD chroot # ifconfig > re0: flags=3D8943 metric 0= mtu 1500 options=3D389b > ether e0:69:95:77:f1:20 > media: Ethernet autoselect (100baseTX ) > status: active > plip0: flags=3D8810 metric 0 mtu 1500 > lo0: flags=3D8049 metric 0 mtu 16384 > options=3D3 > pflog0: flags=3D141 metric 0 mtu 33200 > FreeBSD chroot # exit >=20 > alpha# ifconfig > re0: flags=3D8943 metric 0= mtu 1500 > options=3D389b > ether e0:69:95:77:f1:20 > inet 192.168.0.1 netmask 0xfffffe00 broadcast 192.168.1.255 > media: Ethernet autoselect (100baseTX ) > status: active > plip0: flags=3D8810 metric 0 mtu 1500 > lo0: flags=3D8049 metric 0 mtu 16384 > options=3D3 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > nd6 options=3D3 > pflog0: flags=3D141 metric 0 mtu 33200 >=20 > So, the devices are there, just no network connectivity. >=20 >> What are you trying to achieve with this, a smooth 8.x -> 9.x transition= ? >=20 > Well, I don't know what happened on the host system, but the kernel fails b= uilding, even kernel 8.2, at if_vlan. Since I decided to migrate to the othe= r disk and upgrade to 9.0 I created a chrooted environment on the new disk a= nd build sources there. >=20 > Now, the tricky part is that this is a headless system and I need it to be= up or at least be sure that I can roll back if something fails. >=20 >> You may want to, instead, install your 9.0 on a different machine >> (possibly a VM), then use dump on the filesystems to inject them >> properly on your new disk on the original machine. >>=20 >> You should then be able to reboot on the new disk just fine. >=20 > Thanks, for the suggestion, but sounds risky, the disks are not identical s= ize. >=20 Disk/slice sizes are not relevant, dunp only injects the actual data (ie fil= es/folders) You can dump a 20gb partition then import it into a 50gb one. > It seems I have a workaround that will get my new disk ready: Using fetch-= recursive I've downloaded the sources of the ports I need installed, so I ca= n build in the chroot without network access. >=20 > BR, Erik >=20 > --=20 > M: +34 666 334 818 > T: +34 915 211 157 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.or= g"