From nobody Sun Mar 31 19:07:14 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 4V73YV0GjDz5GCpS for ; Sun, 31 Mar 2024 19:07:26 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4V73YT5TjCz4Pcn for ; Sun, 31 Mar 2024 19:07:25 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711912045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DbmTWi3w+vNZm/dGi50dCdWj0hcl8RfMssJBO4O0I0E=; b=FBoYw5qjIdNBcCS/F0qk2TCLFrvuKYQ5lIBfxR2b7wpUOzDjdxzytnrBf7XDLqCPSu7CY1 LazX3b3uGDLahNpV4TG9byn4eN2LRvO25afRCt2nWJiAeNlc4suDwnT0l2vY9RogI6t0fo qp1OblrDpsF5RZ9F1vStR0+2kxWkNFVoT8SRDmZxoMy5S7o5okDjO+a5lQsQeFlmDamCb/ 30If9/RK3Om4wmGWsS8Bw7eWPP5Ds3Y494ANbX629aW1gU+l8TnCeZOfyHd6eL93rzQdoe 3iaVjn6yFZWvtPD3PyiGmPC08s9T5OpOM4I9T5OE0dsPsG84E6IWFv1vsFM0uw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711912045; a=rsa-sha256; cv=none; b=Gy2ih5++8Av35VgREkJp2rJWrs9UAHUep32/uT/QKgFUpbbYMhBQYVwv18xyzdW+NYsQbn dVWFW2J25VMEQNd7+b4z/L65UYzdvWKfELT8IAEWY+P0DI79SeWblJhgEfYPdmLz2zYunL UxABpAhfn1bJWR5XQqAUqLUNfyvYNeT0S8Ct8/LC9fRoc0DiuQSa9rKTGORANZ0ernao6f wc9QUZkOwzxtkGp4UfV4m91qs9tHrKKY4dspjT0rCIoWMMp2r8ieI/1Af8JG8AJR1sjep+ +oHXg1RlsQmBuiyDwq0JdJ7TJ+TrFEF5Pag4cVLcMdOiApdVLK9B2UmkNl7v6Q== 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=1711912045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DbmTWi3w+vNZm/dGi50dCdWj0hcl8RfMssJBO4O0I0E=; b=A45zZK6Vv5FxAgIAd+yxsXhSFm41rgfKPw50i/0iK69yuaQVgLcIUxfpCa59JRxlAU5QoN ExLQdFKK0yOa0jYo88z8d3Ik/vmC8cH/XGnEs2+07+j5IFpDQAeqEpS/45fbDvwE0gBvug HRlmtosZfB2nysqFos70gXlzeGinFvVbGip1Bd38Ipe6Zw/tT/vqi4HcKdIWlxhbqjIuPA qNmuF5z+WTmZCdB/8bv9jTqjrq5xMemvaihyRjoD1ZTZb7Gjqq5CMLOhFgIM6wpsEYh1QX ppWNPhhmmSXLoql78UE7CfVaPy/Lw7I0I2uJutjoqJFugJmipF8xOyAIHUMt+Q== Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (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 4V73YT4xcmzY03 for ; Sun, 31 Mar 2024 19:07:25 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qt1-f181.google.com with SMTP id d75a77b69052e-432f05352f4so848791cf.3 for ; Sun, 31 Mar 2024 12:07:25 -0700 (PDT) X-Gm-Message-State: AOJu0Ywt7JejbHnbXBgoFSGCO2fE6U15y5TLPuZ5LeZuAr3hLOOPvNFQ cJyZ7/vnXvPTnly7lGTo6CrFQpuhGMXAicCt0tVIOgFEPA2hEmu58s228GZGDPr+HDYPNYwk7NI vMak51TDqGsZy6eXuU/IJVgFTau4= X-Google-Smtp-Source: AGHT+IGG/EtolJKa/xJUFg41+cO1YxxtVFCp2i8C9AzDygCMy8LvzY27NQMqzqvNHzy9E0PDCPxrBZWetylpCJGRky8= X-Received: by 2002:ac8:5884:0:b0:432:d216:8599 with SMTP id t4-20020ac85884000000b00432d2168599mr5078411qta.11.1711912045189; Sun, 31 Mar 2024 12:07:25 -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 References: In-Reply-To: From: Nuno Teixeira Date: Sun, 31 Mar 2024 20:07:14 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Use aditional network card for vm To: FreeBSD virtualization Content-Type: multipart/alternative; boundary="0000000000005727400614f995c5" --0000000000005727400614f995c5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable (...) Ok I think I get it: - Use wifi card for laptop internet connection. - passtrhu re0 - edit vm/.config/system.info and remove bridge to re0. Nice manual about it: http://empt1e.blogspot.com/2016/10/bhyve-networking-options.html Nuno Teixeira escreveu (domingo, 31/03/2024 =C3=A0(s) 15:40): > 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-bhyv= e > 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=3D1008943 > metric 0 mtu 1500 > > options=3D8209b > 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=3D29 > lo0: flags=3D1008049 metric 0 mtu > 16384 > options=3D680003 > inet 127.0.0.1 netmask 0xff000000 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > groups: lo > nd6 options=3D21 > vm-public: flags=3D1008843 > metric 0 mtu 1500 > options=3D0 > 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=3D143 > ifmaxaddr 0 port 1 priority 128 path cost 20000 > groups: bridge vm-switch viid-4c918@ > nd6 options=3D9 > ----- > > -- > Nuno Teixeira > FreeBSD Committer (ports) > --=20 Nuno Teixeira FreeBSD Committer (ports) --0000000000005727400614f995c5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(...)

Ok I think I get it:

- Use wifi card for laptop internet connection.
= - passtrhu re0
- edit vm/.config/system.info and remove bridge to re0.


Nuno Teixeira <ed= uardo@freebsd.org> escreveu (domingo, 31/03/2024 =C3=A0(s) 15:40):
=
Hello all,

My laptop have re0 and iwlwifi0 ne= twork cards with only re0 at use.
vm-bhyve sets it to ifconfig be= llow.

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

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

Thanks,

=
-----
re0: flags=3D1008943<UP,BROADCAST,RUNNING= ,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 options=3D8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_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 0xffff= ff00 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 options=3D29<PERFORMNU= D,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=3D1008049<UP,LOOPBACK,RUNN= ING,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 options=3D21<PERFORMNU= D,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 ether 02:f4:ac:f8:d6:be=C2=A0 =C2=A0 =C2=A0 =C2=A0 id 00:00:00:00:00:00 priority 32768 hellotime= 2 fwddelay 15
=C2=A0 =C2=A0 =C2=A0 =C2=A0 maxage 20 holdcnt 6 proto rst= p 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 mem= ber: re0 flags=3D143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ifmaxaddr 0 port 1 priorit= y 128 path cost 20000
=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: bridge vm-swit= ch viid-4c918@
=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options=3D9<PERFORMNUD= ,IFDISABLED>
-----

--
Nuno Teixeira
FreeBSD Committ= er (ports)


--
Nuno Teixeira
FreeBSD Committ= er (ports)
--0000000000005727400614f995c5--