From nobody Sun Mar 31 14:40:32 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 4V6xdm3Y63z5G9nZ for ; Sun, 31 Mar 2024 14:40:44 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V6xdm0S63z4gp5 for ; Sun, 31 Mar 2024 14:40:44 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711896044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=3gik/u2TqCmaKNKq1I+v7MwyRD+3Ek8zZAkWfMjqA/0=; b=qHfNqWtyRLPyT8zyqp+XoK8qnqpoA3D28b3gue95okKwajv2uztSnGdxEcbUVE0+GXpZga NbDLYZDfyGymTdA5jdM3+Ny69/yenhghRyoF4qHPi28IxBgAgLzy7reSVl38xsjDEHWYs0 sZ1MzCmhvb2iRBq62REyrTPf5jxYKvWpmwr4RaY6avdeV4BQEl0aVN6stUEIb/7UiiuS8V KnQYE1iKwcAL1NkYE4e5agnPxt3Y0ZeesPlGqRFVtK2+1XLDYMFMZ5ZHmIVtRt21QlxwqE iGOBiAyD4skBaZ5ynxfugAAnT1ze5cUVjLmIy+uBm9+RD6Uwe66cR4epQDhyEg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711896044; a=rsa-sha256; cv=none; b=TG8izwBuh9w98nJvoYyTMo4BH8w40hVoYrsCpXjQ0SXK1X7nKkrVa4Lf/vR4x6wxhD5qnN dqac4Tgs1iFr7ugwhdu24ANtr2s4De6gr+c+ygWDcZv/9v1GHAMYh+n5J/0bRAnu2EAPTZ 4sSA5dcZmWgBrn+C1APyDF/W2M4YSEJsguOZJndrlbD0OhU9DnerSlBpxTstGMSjTTyIJi p/rlGbfCTibLT/d7WypAGjS/KCwLCFoq7iYb4tzCgfoJKr1TwlKQB+ZDBsn2i/zNvj4jXj Pg5emEo1NoGyf1oVMSbc0GnRNolq/8e/rsNI6XDJ/sjf/Potqg1eohw9fX9jFg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711896044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=3gik/u2TqCmaKNKq1I+v7MwyRD+3Ek8zZAkWfMjqA/0=; b=bBNQ0fWx1tUe5fgvmXBB9KwCLSYgVRz5iWiTjxLZNVb2LMZZAcFeWa8CbfDkv8YpMez3AT xGPcQiSMpC5zLhMEDRqd8RH+3Z//iZnrctz/nQKWByCT4ZwZWvK0q9qdI3/zS+g5Fmx6aC gDR8igcJ+3P4c28zlnpFe0FR1ig7nqZXGzW1DNtZzOXL4boKQ1x3hF52LBLzxMgf2Yx8r+ uv686/Qp48/Wr40YGy3p7WJokiM8aFGh0AkrQXHLNRw0YuzZwoIgsEFBdk32xf9fCz68hY tA9fVmQuwRFfEpS0vElAKDCglwkZVrxZ0IuKmvVD1mvPRXWzKG9vB2pdDXFlYg== Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) (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 "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4V6xdl700wzSSv for ; Sun, 31 Mar 2024 14:40:43 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-4317aff5cfdso21617201cf.2 for ; Sun, 31 Mar 2024 07:40:43 -0700 (PDT) X-Gm-Message-State: AOJu0YzYEX46D+kO2BzWjnsrtmjGPEZiSipnGYIUeUbYOyni+4O5wV5q Qrj8zYtcqunlBy36ClAq0FNJdbLHsGjBkcLMN5Ja2h7YSFsBymaEpvPRciobWYB93F3acSXLhIv /4E/VgsQbCN54uDsESTA4O3LaAAw= X-Google-Smtp-Source: AGHT+IEHoraY8ekwwv5UoRpSmnvwZB4hnjGi4MS8FmnqrEaM2DXIutzd1CF3CzDRCzfW4s1fvf5BBZsXYdQeTQtqC9A= X-Received: by 2002:a05:622a:50a:b0:42e:e13c:dc30 with SMTP id l10-20020a05622a050a00b0042ee13cdc30mr8225950qtx.29.1711896043192; Sun, 31 Mar 2024 07:40:43 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 From: Nuno Teixeira Date: Sun, 31 Mar 2024 14:40:32 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Use aditional network card for vm To: FreeBSD virtualization Content-Type: multipart/alternative; boundary="0000000000008c10400614f5db5f" --0000000000008c10400614f5db5f Content-Type: text/plain; charset="UTF-8" Hello all, My laptop have re0 and iwlwifi0 network cards with only re0 at use. vm-bhyve sets it to ifconfig bellow. I suspect that re0 being in promiscous mode, it will originate some network problems with backup programs like restic when reading too much files (restic check --read-data) and to fix this issue I turn off vm-bhyve network setting. Is it possible to have a card just to be in use by bhyve, e.g. usb external ethernet dongle or even laptop wifi card? Thanks, ----- re0: flags=1008943 metric 0 mtu 1500 options=8209b ether 00:2b:67:df:c6:73 inet 192.168.1.67 netmask 0xffffff00 broadcast 192.168.1.255 media: Ethernet autoselect (1000baseT ) status: active nd6 options=29 lo0: flags=1008049 metric 0 mtu 16384 options=680003 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 groups: lo nd6 options=21 vm-public: flags=1008843 metric 0 mtu 1500 options=0 ether 02:f4:ac:f8:d6:be 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: re0 flags=143 ifmaxaddr 0 port 1 priority 128 path cost 20000 groups: bridge vm-switch viid-4c918@ nd6 options=9 ----- -- Nuno Teixeira FreeBSD Committer (ports) --0000000000008c10400614f5db5f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all,

My laptop have re= 0 and iwlwifi0 network cards with only re0 at use.
vm-bhyve sets = it to ifconfig bellow.

I suspect that re0 being in= promiscous mode, it will originate some network problems with backup progr= ams like restic when reading too much files (restic check --read-data) and = to fix this issue I turn off vm-bhyve network setting.

Is= it possible to have a card just to be in use by bhyve, e.g. usb external e= thernet dongle or even laptop wifi card?

Thanks,

-----
re0: flags=3D1008943<UP,= BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500<= br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 options=3D8209b<RXCSUM,TXCSUM,VLAN_MTU,VL= AN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 ether 00:2b:67:df:c6:73
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet 192.168.= 1.67 netmask 0xffffff00 broadcast 192.168.1.255
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 media: Ethernet autoselect (1000baseT <full-duplex>)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 status: active
=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 opti= ons=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=3D100804= 9<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM= _IPV6,TXCSUM_IPV6>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet 127.0.0.1 netmask= 0xff000000
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet6 ::1 prefixlen 128
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 groups: lo
=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 opti= ons=3D21<PERFORMNUD,AUTO_LINKLOCAL>
vm-public: flags=3D1008843<= UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 options=3D0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ethe= r 02:f4:ac:f8:d6:be
=C2=A0 =C2=A0 =C2=A0 =C2=A0 id 00:00:00:00:00:00 pri= ority 32768 hellotime 2 fwddelay 15
=C2=A0 =C2=A0 =C2=A0 =C2=A0 maxage 2= 0 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 member: re0 flags=3D143<LEARNING,DISCOVER,AUTOEDGE,= AUTOPTP>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ifma= xaddr 0 port 1 priority 128 path cost 20000
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = groups: bridge vm-switch viid-4c918@
=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 opt= ions=3D9<PERFORMNUD,IFDISABLED>
-----

--
Nuno Teixeira
FreeBSD Committer (ports)
--0000000000008c10400614f5db5f--