From owner-freebsd-hackers@freebsd.org Thu Apr 22 10:33:02 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 59AB65E9EDA for ; Thu, 22 Apr 2021 10:33:02 +0000 (UTC) (envelope-from dmilith@me.com) Received: from st43p00im-ztdg10061801.me.com (st43p00im-ztdg10061801.me.com [17.58.63.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FQtzd2Cnwz3hHQ for ; Thu, 22 Apr 2021 10:33:01 +0000 (UTC) (envelope-from dmilith@me.com) Received: from [192.168.0.12] (home.verknowsys.com [31.179.184.210]) by st43p00im-ztdg10061801.me.com (Postfix) with ESMTPSA id 617978C09EC; Thu, 22 Apr 2021 10:32:59 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: 32-bit jail on 64-bit host From: Daniel Dettlaff In-Reply-To: Date: Thu, 22 Apr 2021 12:32:56 +0200 Cc: freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <06CAF4FA-CBC1-4F89-9CA9-532A6B370E51@me.com> References: To: Peter Blok X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.391,18.0.761,17.0.607.475.0000000_definitions?= =?UTF-8?Q?=3D2021-04-22=5F04:2021-04-21=5F03,2021-04-22=5F04,2020-04-07?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 mlxscore=0 suspectscore=0 malwarescore=0 spamscore=0 clxscore=1011 bulkscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2104220088 X-Rspamd-Queue-Id: 4FQtzd2Cnwz3hHQ X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.60 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[me.com]; MV_CASE(0.50)[]; RWL_MAILSPIKE_GOOD(0.00)[17.58.63.170:from]; R_SPF_ALLOW(-0.20)[+ip4:17.58.0.0/16]; DKIM_TRACE(0.00)[me.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[me.com,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_LOW(-0.10)[17.58.63.170:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[me.com]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[17.58.63.170:from]; DWL_DNSWL_NONE(0.00)[me.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[me.com:s=1a1hai]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:714, ipnet:17.58.63.0/24, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[17.58.63.170:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2021 10:33:02 -0000 If you need to run 32bit software with 64bit base system just try = creating 64bit jail with lib32 subsystem present. Then 32bit software = should be able to run properly in such jail, but you can't run 32bit = jail on 64bit base as Eugene said. > On 22 Apr 2021, at 10:36, Peter Blok wrote: >=20 > Hi, >=20 > I have created a 32-bit jail on a 64-bit running 12-STABLE. The jail = is also build using the same source. >=20 > The jail gives me a 32-bit environment. I=E2=80=99m getting an IP = address and I can ping others on the same network segment. >=20 > But I can=E2=80=99t set a default route. >=20 > route add default 192.168.1.1 > route: writing to routing socket: Invalid argument > add net default: gateway 192.168.1.1 fib 0: Invalid argument >=20 > # netstat -rn > Routing tables > (0) (0) UH=20 > (0) (0) U=20 > (0) (0) UHS=20 > (0) (0) UH=20 > (0) (0) U=20 > (0) (0) UHS >=20 > # ifconfig -a > lo0: flags=3D8049 metric 0 mtu 16384 > options=3D680003 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 > inet 127.0.0.1 netmask 0xff000000 > groups: lo > nd6 options=3D21 > e0b_websip: flags=3D8843 = metric 0 mtu 1500 > options=3D8 > ether 0e:88:d7:20:99:80 > hwaddr 02:80:ad:6e:79:0b > inet 192.168.1.205 netmask 0xffffff00 broadcast 192.168.1.255 > groups: epair > media: Ethernet 10Gbase-T (10Gbase-T ) > status: active > nd6 options=3D29 >=20 > Any idea how to fix this? >=20 > I=E2=80=99m using vnet bridge >=20 > Peter > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to = "freebsd-hackers-unsubscribe@freebsd.org"