From nobody Sat Dec 7 22:45:10 2024 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y5NW81Fzhz5gKq3 for ; Sat, 07 Dec 2024 22:45:24 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y5NW76dGzz4Qt2 for ; Sat, 7 Dec 2024 22:45:23 +0000 (UTC) (envelope-from bakul@iitbombay.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-2ee8ecb721dso525355a91.3 for ; Sat, 07 Dec 2024 14:45:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay.org; s=google; t=1733611522; x=1734216322; darn=freebsd.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GR98mdbI38N+3JqT9XW7yqcmfE9FmejkMU8DQyeF28A=; b=OXqCJbprpW2lx2RXQYtJo2/wg/CIVFL8HkH8OHXWUzF7eOPoLlEOeo5mTgWnFhBxl5 Q9Jbm65JuezdD+irzRc7y9+KRcKDDMtvyl8cDy/4Qm/JuJLU0gqt9ipAN9H7rGYUP2LW mHj4Aaur2Xw3Dc80jP7wnqhVU0MxAIBBBLgQs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733611522; x=1734216322; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GR98mdbI38N+3JqT9XW7yqcmfE9FmejkMU8DQyeF28A=; b=aR8ijptGVsyuCqlbsEHmVVbhiqwg89767xyEz4QvvC893NN6Xn8CxilDyTF/PdqAbr QIzMU5UHN9+HzUQmYhMLL/gUrNZq1sFF4n6bLs34HKuhiLan4cwj0mgYWheiw9DmBmK+ xcl4R00DtsOS8VIc7/nNuAc//1zN0Akm078EUGG7vRf0H6Vw9OjKyS+jGSy9OTGmADSO VcxMTs1CrQYIkFeY6nghZ7uhWfWbpyi6GealwSvG8TI898nIdJeVYXd9QR99WJAQAg17 XsqESpHyHxKRx3l/1FoNFadZu28iXhTa+EjWmQ4RHuICrMTu86jEmmlNCmyyn1EXERHN tC0A== X-Gm-Message-State: AOJu0Yztj/WZsF/G1aItPBXiRy37WRn6b7EZz3Gev11wMLV9hHCTiUX2 DhsK6BM07R7wDezCuSX/E6nyQXo8WtH4wQi2Bu/y3wEWWJgzvnCvuuw6UYUzcAQ6HmzPSrC8JOY = X-Gm-Gg: ASbGncsu/G56pXl+pCOK3by6+B48TyfcFwfkXcwtpCo4THLmFWA1Ozcdo5YDKbCvNA4 kINDycVtfihzNaZ6X5Lgqo08LiN3dmvlrIkrsGw/kqSPM8Ka2AJm6IvLAycsLhWxnenSGYNB060 t+WYBx8kqrHZ0RioQNpPk+vIKq9Z0I5Bgeifv19uOISk7QynWbGlSN9WRGVhtjbci7xw0YPzgiH kjpZSHs7NVcGLZZxuStxLgwBXuYEW/4Vf+wLVvonArsIrEcJVDXP9ENwO9h4bQztLOFDo2o882f Id9hIM8WEMKecN45Ws77HQ6hBLvdWf07LJf5uQIq/lHYsVk= X-Google-Smtp-Source: AGHT+IFglO76m/u9rahcaUqNFCwx9uh5GdkR7UEKaXjuHGsbjYzdR56NPsQ/55RTJFCLTn+Y2VJV5A== X-Received: by 2002:a17:90b:3803:b0:2ee:d4ed:13a7 with SMTP id 98e67ed59e1d1-2ef6ab12974mr4618729a91.7.1733611522434; Sat, 07 Dec 2024 14:45:22 -0800 (PST) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ef6ef14312sm3418320a91.46.2024.12.07.14.45.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Dec 2024 14:45:21 -0800 (PST) Content-Type: text/plain; charset=utf-8 List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.200.121\)) Subject: Re: Tap device problem on FreeBSD 14.2-RELEASE From: Bakul Shah In-Reply-To: <0fc1d487-b254-4c64-9db1-a982169924e4@acm.org> Date: Sat, 7 Dec 2024 14:45:10 -0800 Cc: freebsd-virtualization@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <0fc1d487-b254-4c64-9db1-a982169924e4@acm.org> To: Thomas Laus X-Mailer: Apple Mail (2.3826.200.121) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Y5NW76dGzz4Qt2 X-Spamd-Bar: ---- $ uname -v FreeBSD 14.2-RELEASE releng/14.2-n269506-c8918d6c7412 GENERIC $ kldstat |grep 'if_.*tap' $ kldstat -v |grep 'if_.*tap' 388 if_tap 386 if_tuntap $ ifconfig tap5 ifconfig: interface tap5 does not exist $ ls -l /dev/tap5 ls: /dev/tap5: No such file or directory $ sudo ls -l /dev/tap5 crw------- 1 uucp dialer 0x89 Dec 7 14:40 /dev/tap5 $ ifconfig tap5 tap5: flags=3D8802 metric 0 mtu 1500 options=3D80000 ether 58:9c:fc:10:ff:80 groups: tap media: Ethernet 1000baseT status: no carrier nd6 options=3D29 /dev/tap is created on access (if you have the permission to do so) and then ifconfig works. You may be able to trigger this by adding tap related lines to /etc/devfs.conf such as own tap0 $user:$group # replace with user and group you want ... > On Dec 7, 2024, at 1:37=E2=80=AFPM, Thomas Laus = wrote: >=20 > I used FreeBSD-update to go from 14.1-RELEASE to 14.2-RELEASE and = there is an issue with creating and using the tap device. The device = doesn't get created during the boot process and can't be created or used = after the system is up. The UPDATING file has just one entry concerning = the tap device and that is change the 'tap' name in all configuration = files with 'tuntap'. I did that and get an invalid device reply. I = installed the latest package for vm-bhyve which did not make any = difference. I also deleted /usr/obj/* and checked out a fresh /usr/src = and rebuilt FreeBSD-14.2-RELEASE from source without anything working = differently. >=20 > If anyone has a working tap device using FreeBSD 14.2-RELEASE, I would = appreciate you sharing your bhyve portions of /etc/rc.conf, = /etc/sysctl.conf and /boot/loader.conf files. >=20 > Thanks >=20 > Tom >=20 >=20 > --=20 > Public Keys: > PGP KeyID =3D 0x5F22FDC1 > GnuPG KeyID =3D 0x620836CF >=20 >=20