From nobody Wed Apr 05 21:21:36 2023 X-Original-To: freebsd-current@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 4PsHdB3wkmz44BMw for ; Wed, 5 Apr 2023 21:21:50 +0000 (UTC) (envelope-from jonasbsd@gmail.com) Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 4PsHd94tlvz3H4p for ; Wed, 5 Apr 2023 21:21:49 +0000 (UTC) (envelope-from jonasbsd@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=gLUD4mdz; spf=pass (mx1.freebsd.org: domain of jonasbsd@gmail.com designates 2a00:1450:4864:20::333 as permitted sender) smtp.mailfrom=jonasbsd@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wm1-x333.google.com with SMTP id j18-20020a05600c1c1200b003ee5157346cso24515889wms.1 for ; Wed, 05 Apr 2023 14:21:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680729708; x=1683321708; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=L+3jTx4Nvv/3SfQKzI25rNmVXVoXLh+kjsQv4wyiUVI=; b=gLUD4mdzeAyakgDYimFS33E430/qmcBR5AiwTh2/qpVvkR3Sih3Tio9bI5j9/psd0M I6JmKYWUrSc3uxTWlVecqkKyezLpgWQZWVDsYeyuhDd8X5/7O4x1+GJuZPTviOCDLw3F aumaVbpop+Yx3Mt0kSQbtlQGLuJMQxkNE82WseYD8anAcacrwtWhoi5uhJrtot0J3caO lgh7geK+lu0+rhRinP2A6aVj8S3T9kSNIDFzZnpn+d8+paFb3oRRHZqZW/EDqOz/50rB buQsrldeMbEAqUZcllVnAe9SllZ5t+SgJuTP39KCsktWoqP94WxrnqTXMYcmrRzqz+rI J/Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680729708; x=1683321708; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=L+3jTx4Nvv/3SfQKzI25rNmVXVoXLh+kjsQv4wyiUVI=; b=indcK1MVaQlN1AP87h2nivHU5MF0ZZ7uzTGz4dm00KYRcH/KGzYcTJCafj3Hm+e/+l CXDYEOXl0ERdFYbdUgdmYzyg04ZCvATBrbetRd3nYYvRVdrCZpBg5dqH9pLEExLaKl99 z6qOP7jRweLxQQdf0Uxjh/NB283Kw5AeU3oz4SQrBcnBBUtBSapvkewTZgrq9e3FN6jj dWq3PthZoOvsZwfKL8jFCmSbDNLjjJA9xPvPcFtW3bOm3Wq5VwjZdSHulx4q041EeVR5 gNuR3dofrC+rb0YCJIE1bmiTFNmDrSzFwORafkETXcgyOfohSy//2qOsz9DwBRYROQ5J /LKw== X-Gm-Message-State: AAQBX9fTTShz0P3x03EJaclTZOZr3ERXZ6jMP7dvjnknTKqrn58QKVmz f6JP+Owt1YGc/m8DW2dXxf9lGtFAed+UV0xijtEX/mW7NUM= X-Google-Smtp-Source: AKy350biXEqm3CIP4LhQ1Blud0pHIdE8WOp1M2LqJnOI50q4BGZk38R7d6zmN6xnzn5hy1+ApNidFFlOpQ0Jqyhpdhg= X-Received: by 2002:a05:600c:2202:b0:3ed:6979:3ab with SMTP id z2-20020a05600c220200b003ed697903abmr1981818wml.4.1680729707632; Wed, 05 Apr 2023 14:21:47 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 From: Jonas Lopes Date: Wed, 5 Apr 2023 18:21:36 -0300 Message-ID: Subject: Lost connection using bhyve + netmap/VALE To: freebsd-current@freebsd.org Content-Type: multipart/alternative; boundary="0000000000002fdbf705f89d61d5" X-Spamd-Result: default: False [-0.34 / 15.00]; HTTP_TO_IP(1.00)[]; URI_COUNT_ODD(1.00)[3]; NEURAL_HAM_SHORT(-0.97)[-0.970]; NEURAL_HAM_MEDIUM(-0.96)[-0.965]; NEURAL_SPAM_LONG(0.60)[0.600]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::333:from]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4PsHd94tlvz3H4p X-Spamd-Bar: / X-ThisMailContainsUnwantedMimeParts: N --0000000000002fdbf705f89d61d5 Content-Type: text/plain; charset="UTF-8" Hello everybody. I had a lot of problems with the vm-bhyve NAT network on 14-CURRENT. That's why I looked for alternatives and took the opportunity to study Netgraph, netmap/VALE with bhyve(8). However, I think I found other bugs. When I virtualize Windows using bhyve with TAP, the system works perfectly. bhyve -c 2 -m 4G -w -H \ > -s 0, hostbridge \ > -s 2,nvme,/vm/windows/disk0.img \ > -s 5,virtio-net,tap0 \ > -s 29,fbuf,tcp=0.0.0.0:5900,w=1280,h=720,no \ > -s 30,xhci,tablet \ > -s 31,lpc -l com1,stdio \ > -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ > Windows > But when I virtualize Windows using bhyve with netmap/VALE, at some point the laptop loses connectivity. I am completely without a network. Within VALE connectivity continues, but everything else loses connectivity. Including the internet. -s 5,virtio-net,vale0:windows \ If I restart wlan0's network service, the computer freezes. If I delete the VALE connection with wlan0, after the PC loses connectivity, it crashes too. In a moment I follow the steps below: - 1. After some time away from the PC, there is a disconnection with the > WiFi network. It looks like it's connected, but it doesn't work; > > - 2. I enter the command: service netif restart wlan0 > > - 3. The network works again; > > - 4. When I delete a VALE network that was connected to wlan0 before > disconnecting the network, FreeBSD freezes; > I've tested it several times, and the same thing happens. FreeBSD version: % uname -a > FreeBSD mithrandir 14.0-CURRENT FreeBSD 14.0-CURRENT #5 > main-n261959-cfccc7f30a01: Mon Apr 3 07:57:49 -03 2023 root@mithrandir:/usr/obj/usr/src/amd64.amd64/sys/GENERIC > amd64 > Some details: - I don't have another network card. I'm on Ideapad s145. It does not have a cable network card. - In a moment it crashes completely. In another it freezes, but I notice that the keyboard is still working. I go to another tty even without an image, I enter with the root user and reboot. It works! - I tested it with a USB/Network and so far it only crashed 1 time. Unlike WiFi, which freezes a few minutes (sometimes hours) after creating the VALE connections with the virtual machine. -- Jonas Lopes --0000000000002fdbf705f89d61d5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello everybody.

I had a lot of problems with the v= m-bhyve NAT network on 14-CURRENT. That's why I looked for alternatives= and took the opportunity to study Netgraph, netmap/VALE with bhyve(8).
=
However, I think I found other bugs. When I virtualize Windows using bh= yve with TAP, the system works perfectly.

bhyve -c 2 -m 4G -w -H \
-s 0, hostbridge \
-= s 2,nvme,/vm/windows/disk0.img \
-s 5,virtio-net,tap0 \
-s 29,fbuf,tc= p=3D0.0.0.0:5900,w=3D= 1280,h=3D720,no \
-s 30,xhci,tablet \
-s 31,lpc -l com1,stdio \
-l= bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
Windows

But when I virtualize Windows using bhyve with netmap/VALE, at = some point the laptop loses connectivity. I am completely without a network= . Within VALE connectivity continues, but everything else loses connectivit= y. Including the internet.

-s 5,virtio-net,vale0:windows \

If I restart wlan0's network service, the comput= er freezes. If I delete the VALE connection with wlan0, after the PC loses = connectivity, it crashes too.

In a moment I follow= the steps below:

= - 1. After some time away from the PC, there is a disconnection with the Wi= Fi network. It looks like it's connected, but it doesn't work;
<= br>- 2. I enter the command: service netif restart wlan0

- 3. The ne= twork works again;

- 4. When I delete a VALE network that was connec= ted to wlan0 before disconnecting the network, FreeBSD freezes;

I've tested it several times, and the sa= me thing happens.

FreeBSD version:

<= /div>
% uname -a
F= reeBSD mithrandir 14.0-CURRENT FreeBSD 14.0-CURRENT #5 main-n261959-cfccc7f= 30a01: Mon Apr =C2=A03 07:57:49 -03 2023 =C2=A0 =C2=A0 root@mithrandir:/usr= /obj/usr/src/amd64.amd64/sys/GENERIC amd64

Some details:

- I don't have another network card. I'm= on Ideapad s145. It does not have a cable network card.
- In a moment i= t crashes completely. In another it freezes, but I notice that the keyboard= is still working. I go to another tty even without an image, I enter with = the root user and reboot. It works!
- I tested it with a USB/Netw= ork and so far it only crashed 1 time. Unlike WiFi, which freezes a few min= utes (sometimes hours) after creating the VALE connections with the virtual= machine.

--
Jonas Lopes <jonasbsd <= a href=3D"http://gmail.com" target=3D"_blank">gmail.com>
=
--0000000000002fdbf705f89d61d5--