From nobody Thu Mar 28 10:24:31 2024 X-Original-To: freebsd-net@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 4V506J1CMRz5FW9V for ; Thu, 28 Mar 2024 10:25:12 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (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)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V506H09Qzz4H4l for ; Thu, 28 Mar 2024 10:25:11 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b="YoGazg/q"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::535 as permitted sender) smtp.mailfrom=marietto2008@gmail.com Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-56c12c73ed8so938489a12.2 for ; Thu, 28 Mar 2024 03:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711621509; x=1712226309; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RaUMx98CG+ZnDBK6GknF9Kmsu7CFceWHgFbR1J0Ajqg=; b=YoGazg/qFUpuP182Yy12S714XiDOu7+6DiqWjzRffMaw0VX+Q810iKLEkchyuKB79l HChxglIFaFjrLVDaIScaqJCAylJOarxiFiHeR+OJxSYpSGYI2GC2d9g3DHXwENmvhGsp OdGv6YHu6pxJvjyav6AoxSLmlW1o1onnLxgZfEo614ULLL8dexjAwrrJiwd+ZcGj5zee uq+yqWZ024pHrJ0u0BKVi32UcMYks70w2ap5Gth0AMHQFRy+vVtpgyp2kHAFT8rCzIJZ 84mu3Q3zEu9fOgWxvihGXeV0nVHFjrkpXoX7KdVRdT0oBDjWIDg138nNoOeUnVrkz7uT WT7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711621509; x=1712226309; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RaUMx98CG+ZnDBK6GknF9Kmsu7CFceWHgFbR1J0Ajqg=; b=LIdYUhPjSF3rmwUpfiLDxZ9haenatd/ruLaq1ZXcrRIEFzLK2VT+gxWlaNjqXRw/o5 HsR3IZdP2mOVJTHmAsEurvRakq0DIv4ThuiM+lx7QAuL7ij1JIiVC4F1EKQJd8JB5iol Uqa9B+R7armpN4qLagQPKu7lIICS3Ljvm4thjpetDFhYLUsEQzvNlWEFzVFR1h2q2QbY srV6+ljt0hjrIIY44R7JgTlL9Yjv87dKhdPY3cZW51JxTIikaqk1BkCTRNTwll6l232J ILjGBpz+7W71gFPoQJSh/PnYkWeLVu/sIlWQkRuWa4vrDOV9IpFzz4vn2NpSIatjKjrj SPOg== X-Forwarded-Encrypted: i=1; AJvYcCW4VvXLge1iO0RFF/P7FEA1zWiPmZznq/k3HxOZdlat2kwbozT0XahHS29Rt0aLQifEfdEMB5PrGsVHWY0mwKjFs5Cf9A4/mg== X-Gm-Message-State: AOJu0YwIVaIZ6L8EIUFUMINHsySqb6x+KvBi+us9L4oakaoCX552VkTs O6iP9PkYVm81L/d6PVLm/X9s3NxhozSKzKgbyEvRFJU0NspiSjhR+Oc8GxCmLGjsfPG5qS7XkT6 eplrCN0JWN0mqJWNBJHHEgMlSaGQ= X-Google-Smtp-Source: AGHT+IHdULjqFc6pgWVYdnxJoX9me0mwE4A1Qgc/0h9c1Q3RsTDrB8joA8mAJInt+WZhs7MB/Xw+SX7SxS5ENH3mqCQ= X-Received: by 2002:a17:906:2609:b0:a46:2ac1:c3f4 with SMTP id h9-20020a170906260900b00a462ac1c3f4mr1557133ejc.75.1711621508604; Thu, 28 Mar 2024 03:25:08 -0700 (PDT) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Marietto Date: Thu, 28 Mar 2024 11:24:31 +0100 Message-ID: Subject: Re: vnet with interfaces To: Tomek CEDRO Cc: Benoit Chesneau , "freebsd-net@FreeBSD.org" Content-Type: multipart/alternative; boundary="00000000000002aa9e0614b5f0a0" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.93 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.93)[-0.928]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; MISSING_XM_UA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::535:from]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com] X-Rspamd-Queue-Id: 4V506H09Qzz4H4l --00000000000002aa9e0614b5f0a0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ---> A very simple and elegant shell management tool to play with bhyve is vm-bhyve I never use it. I created my own elegant script that in my opinion works better than vm-bhyve. And I think that I can improve it.... I will... On Tue, Mar 26, 2024 at 8:30=E2=80=AFPM Tomek CEDRO wrot= e: > On Tue, Mar 26, 2024 at 7:32=E2=80=AFPM Benoit Chesneau > wrote: > > How does work VNET with interfaces? Is this as efficient as using pci > passtrough in a vm ? > > Beno=C3=AEt > > Vnet allows you to control networks by the system and make various > configurations networks jails etc, example here: > > > https://klarasystems.com/articles/virtualize-your-network-on-freebsd-with= -vnet/ > > PCI passthrough would skip all kernel networking and give your vm > access to the physical cable attached to a NIC. Note that passthrough > needs entry in /boot/loader.conf and disables that device for use in > system. I have a dedicated USB 3.0 controller working that way. > > A very simple and elegant shell management tool to play with bhyve is > vm-bhyve: > > https://www.freshports.org/sysutils/vm-bhyve/ > > Have fun :-) > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > > --=20 Mario. --00000000000002aa9e0614b5f0a0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
---> A very simple and elegant shell management to= ol to play with bhyve is vm-bhyve

I never use it. = I created my own elegant script that in my opinion works better than vm-bhy= ve. And I think that I can improve it....
I will...
=

= On Tue, Mar 26, 2024 at 8:30=E2=80=AFPM Tomek CEDRO <tomek@cedro.info> wrote:
On Tue, Mar 26, 2024 at = 7:32=E2=80=AFPM Benoit Chesneau
<benoitc= @enki-multimedia.eu> wrote:
> How does work VNET with interfaces? Is this as efficient as using pci = passtrough in a vm ?
> Beno=C3=AEt

Vnet allows you to control networks by the system and make various
configurations networks jails etc, example here:

https://klarasystems.= com/articles/virtualize-your-network-on-freebsd-with-vnet/

PCI passthrough would skip all kernel networking and give your vm
access to the physical cable attached to a NIC. Note that passthrough
needs entry in /boot/loader.conf and disables that device for use in
system. I have a dedicated USB 3.0 controller working that way.

A very simple and elegant shell management tool to play with bhyve is vm-bh= yve:

https://www.freshports.org/sysutils/vm-bhyve/

Have fun :-)

--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



--
Mario.
--00000000000002aa9e0614b5f0a0--