From nobody Mon Mar 11 11:20:05 2024 X-Original-To: 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 4TtZ7V1T5lz5Cmjd for ; Mon, 11 Mar 2024 11:20:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TtZ7V0Jw6z437Q for ; Mon, 11 Mar 2024 11:20:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710156006; a=rsa-sha256; cv=none; b=s3KgFpHXRbK92do9aUcettN9lez/D0daGSe9tnc+2W6g8OK/L5OMkKVrCnW8/edd4XcKwb WMgonPa28Zll6g0W7f3R13Wwty+Ade0cdyhbLMnOTwOqUgnKmLqR74cA7zY3FNc4nfB6z9 tx7NNOaN8yQIgiuhQgVTeZNG+zEd3zl2ZbO17/YAqSAqHIONDqCxDm97p2PM18lD+vuY1l 8Ucbi7wSJZBd6RESmrYObdOfBy/YNQ90KnK5j5OfePI3lWUNnRGyEcT/auGJN7MPyfD3sN yyQKEJ9ypZgXDDNl/H6Yl8Jcb7IpXQndb1YO+cliHyIsH6lQv2HA5fEh+1EujA== 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=1710156006; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gwNHbSyv/+nb4qyY5czA3bKTSf+Qzv0pIagZIiVUCzs=; b=IdGZNY/G5P1hDfyb0qRUnPMcYYrfF/farg7y0DChN/Awerls62tiCixVVVlVEmH6zMEsfr vtzhHzsxT510sP/nFGOG/XT0AmQI1Pg2CLcrS4r4tkVKNquN/anpaVuPLy7r9sR9qriZN9 36pYvpMYv1SV6dUrooJ9EHm5GwJTf86VbqLX8s96vmCFo9xyTZ9c990rxNMVcSVKoJi7H9 BdRTA8ujIVzJbjbUtVtgTFFa6pdhs9w1RKM2Iw4L8+z79N/VA7S5PCC5YuCPrITHIn0USK 25Ru+a91p4dIyVeDD36lhvKipdaKIme0nctCXrI1EnhP8fXJADXjE8gZMEBakw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TtZ7T6wbnzRd9 for ; Mon, 11 Mar 2024 11:20:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42BBK5I3009463 for ; Mon, 11 Mar 2024 11:20:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42BBK5wD009462 for virtualization@FreeBSD.org; Mon, 11 Mar 2024 11:20:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 277627] Passthru NVIDIA GeForce GTX 1080 Ti not work Date: Mon, 11 Mar 2024 11:20:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bubnovky@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277627 Bug ID: 277627 Summary: Passthru NVIDIA GeForce GTX 1080 Ti not work Product: Base System Version: 13.3-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: bubnovky@gmail.com I Have a Rocky 9.3 guest OS with passthru device NVIDIA GeForce GTX 1080 Ti: When the Mother OS was FreeBSD 13.2, everything worked fine. On mother OS: # pciconf -lv | grep -A 4 ppt ppt0@pci0:2:0:0: class=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x1= 0de device=3D0x1b06 subvendor=3D0x10de subdevice=3D0x120f vendor =3D 'NVIDIA Corporation' device =3D 'GP102 [GeForce GTX 1080 Ti]' class =3D display subclass =3D VGA # uname -mbir 13.2-RELEASE amd64 GENERIC 0e4b27630a1402da754c6eb42a22aadad5f80545 # cat /srv/vm/gpu-02/gpu-02.conf=20 loader=3D"grub" cpu=3D1 memory=3D8G wired_memory=3Dyes network0_type=3D"virtio-net" network0_switch=3D"public" disk0_type=3D"virtio-blk" disk0_name=3D"disk0.img" passthru0=3D"2/0/0=3D2:0" grub_install0=3D"linux /isolinux/vmlinuz inst.vnc inst.graphical inst.gpt" grub_install1=3D"initrd /isolinux/initrd.img" grub_run_dir=3D"/grub2" grub_run_partition=3D2 uuid=3D"502f749f-dc87-11ee-b5e0-38d54702d5b9" network0_mac=3D"58:9c:fc:0f:b3:0e" On guest OS: # nvidia-smi Mon Mar 11 13:39:18 2024=20=20=20=20=20=20=20 +--------------------------------------------------------------------------= ---------------+ | NVIDIA-SMI 550.54.14 Driver Version: 550.54.14 CUDA Version: 12.4 | |-----------------------------------------+------------------------+-------= ---------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volati= le Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Ut= il=20 Compute M. | | | |=20=20= =20=20=20=20=20=20=20=20=20 MIG M. | |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D| | 0 NVIDIA GeForce GTX 1080 Ti Off | 00000000:00:02.0 Off |=20=20= =20=20=20=20=20=20=20=20=20 N/A | | 25% 44C P0 60W / 250W | 0MiB / 11264MiB | 0= %=20=20=20 Default | | | |=20=20= =20=20=20=20=20=20=20=20=20 N/A | +-----------------------------------------+------------------------+-------= ---------------+ +--------------------------------------------------------------------------= ---------------+ | Processes:=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 | | GPU GI CI PID Type Process name=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 GPU Memory | | ID ID=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Usage | |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D| | No running processes found=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 | +--------------------------------------------------------------------------= ---------------+ # lspci -vv 00:02.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 10= 80 Ti] (rev a1) (prog-if 00 [VGA controller]) Subsystem: NVIDIA Corporation Device 120f Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=3Dfast >TAbort- SERR- TAbort- SERR- =D0=BC=D0=B0=D1=80 11 14:17:43 cuda-12-3.itspr.ru kernel: NVRM: Can't find = an IRQ for your NVIDIA card! =D0=BC=D0=B0=D1=80 11 14:17:43 cuda-12-3.itspr.ru kernel: NVRM: Please chec= k your BIOS settings. =D0=BC=D0=B0=D1=80 11 14:17:43 cuda-12-3.itspr.ru kernel: NVRM: [Plug & Pla= y OS] should be set to NO =D0=BC=D0=B0=D1=80 11 14:17:43 cuda-12-3.itspr.ru kernel: NVRM: [Assign IRQ= to VGA] should be set to YES=20 =D0=BC=D0=B0=D1=80 11 14:17:43 cuda-12-3.itspr.ru kernel: nvidia: probe of = 0000:00:02.0 failed with error -1 =D0=BC=D0=B0=D1=80 11 14:17:43 cuda-12-3.itspr.ru kernel: NVRM: The NVIDIA = probe routine failed for 1 device(s). =D0=BC=D0=B0=D1=80 11 14:17:43 cuda-12-3.itspr.ru kernel: NVRM: None of the= NVIDIA devices were initialized. I hope you can help me. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Mon Mar 11 11:34:32 2024 X-Original-To: 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 4TtZS857Zfz5Cp5h for ; Mon, 11 Mar 2024 11:34:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TtZS83vzCz44bg for ; Mon, 11 Mar 2024 11:34:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710156872; a=rsa-sha256; cv=none; b=gpRWvGvhbG/2CE5iWnrv6OohY3JmcGHpxAXxwpgejFhhB4QwLaRKr6QoDMFc/tZ3TTRIaO K9E2ryRewkNrvHWn83LXaPRhbn0U55XWjWI4MNCWlCqQnWSJrw4v0r3rInPGqh/X87SoL2 a34id6DKeG42vUEsS+C1UN7gT6v4KNLX12MbVMTDhmhlHCHJ27xtSl84NGrxnxIb/kaxRq D89uGzqtsk3fjkoiTzpt8adGTTo//2RM9OCJuMgMfxQt7eL1IAFqQV5e7jp8PlJk+i+ZNo q2mBKE7/kLi7px+WBI0U2PH2IwnySsXVQ6jU0FkTC+Th8Bxd1h05ZM+5OFLu0A== 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=1710156872; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W72eqbGKIg7ngpu4QLGAas6eBXkiG31t1I5DZzYpppc=; b=j4CzjCzwra5Ti6rnHt2d61+G7jQIS05eG8CVz4adqdZFQzzvuFr2GCP/ZoId1/8ZU9aODy CiaxIMl+cMPq7EIGrB6bdoejK6LvFwBwgPCKXceVCha4lYoBfje7ePL2L1jGy5+evJitpA i6GYwfBuPkbdc/aRNdva/fEcoZwdFZP1gIQJEEYui88NbaUdAwck3TNqMV3dGVTNJqK80A gQkvip6gvLrL6qup+i5iFiVyqPEiuDeeOjKH3isElMKXkF4BkGksmcB+ojJk7wTyGl7IXi GNu0DTprqMkgC96zfBox/Fa7Kyuq4JTu2ReU+czeWFQTdAzgMKktr271xi5j4g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TtZS83PPmzSW8 for ; Mon, 11 Mar 2024 11:34:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42BBYWBU093470 for ; Mon, 11 Mar 2024 11:34:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42BBYWii093469 for virtualization@FreeBSD.org; Mon, 11 Mar 2024 11:34:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 277627] Passthru NVIDIA GeForce GTX 1080 Ti not work Date: Mon, 11 Mar 2024 11:34:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bubnovky@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_severity Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277627 Konstantin changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Affects Only Me |Affects Some People --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Mon Mar 11 13:51:50 2024 X-Original-To: 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 4TtdVZ5Jn5z5D2B0 for ; Mon, 11 Mar 2024 13:51:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TtdVZ4K8Dz4N3S for ; Mon, 11 Mar 2024 13:51:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710165110; a=rsa-sha256; cv=none; b=EEWMXZw2CjOlqFgVvhxor0/15+B/XdCPweB+66jhOYg82oHUzxVqDD+DkGHukgC3XVu80G 2RWNTuIxTcsEbROFZZFTUe/GW9ptsllzDR3tmURIhpueCrwJRr7LJM9lxgtzaLOoun6F2+ 2GQ93QgZs2bxBoU9bWdB2zd/yHjv2EyRAqAzTSzha8/mklZk+BWMrYoKL4c1FsExjD0McW F7qgt+ZZFboD1Cznw8pnnzagqOkT1ADJQ5qnq53mYg/zHucy5lIEl9dMQbgCohmEeNfJjr GpcqLIomsxq/V+v+KDFjSCcOVa2t63dhjRBVoktSdHt9WWRhXsHdzTSU1SmZsg== 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=1710165110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6zEjDNcc1JX9rSIhCadIDMHKplM3R4or/38e3QShgoo=; b=BEWXJ9DaBUu+QxbrBftxe9RiJiWX9c1C2iyqcEITnoiiXeDWByfRvA5Rv/Vmv0lNQ/ujO7 gubkwnQRjUZxBt5Fm1B2BOUUMN9fT2MxiN2ZCeAQFVRHywBCy4PEhX+6XdEdJ70d8iP6fG JhMQEmHf08Kc1oZ9C8FI5dXgZMQHZEjmMa8BjKcGGhs6ORD5flh6xEncvYLDcGYipj4AXG Gnl/owHTlHYm0G8VISVSHj6k4H71nMTyC4oLduFgiOVT4UmuqBEkeogsneDw+1PFv5W1Vm EpNiAY1K3Rk0QoOwY3RzY9r5+yKG5Osirvh4nTIh88Ap8A2zd6XK67mP2j8pCA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TtdVZ3xhKzXqB for ; Mon, 11 Mar 2024 13:51:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42BDpoEC094350 for ; Mon, 11 Mar 2024 13:51:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42BDpoYt094345 for virtualization@FreeBSD.org; Mon, 11 Mar 2024 13:51:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 277627] Passthru NVIDIA GeForce GTX 1080 Ti not work Date: Mon, 11 Mar 2024 13:51:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: marietto2008@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277627 mario felicioni changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marietto2008@gmail.com --- Comment #1 from mario felicioni --- Usually it works after a reboot. If not you can try to reinstall the nvidia driver from the ports : # pkg remove nvidia-driver # pkg remove nvidia-drm-kmod # /usr/ports/x11/nvidia-driver # portsnap fetch extract # /usr/ports/x11/nvidia-driver # portsnap fetch update # /usr/ports/x11/nvidia-driver # make # /usr/ports/x11/nvidia-driver # make install # /usr/ports/graphics/nvidia-drm-kmod # make .... awk -f /usr/src/sys/conf/kmod_syms.awk nvidia-drm.ko.full export_syms | xa= rgs -J% objcopy % nvidia-drm.ko.full --- nvidia-drm.ko.debug --- objcopy --only-keep-debug nvidia-drm.ko.full nvidia-drm.ko.debug --- nvidia-drm.ko --- objcopy --strip-debug --add-gnu-debuglink=3Dnvidia-drm.ko.debug=20 nvidia-drm.ko.full nvidia-drm.ko =3D=3D=3D> Staging for nvidia-drm-515-kmod-550.54.14 =3D=3D=3D> nvidia-drm-515-kmod-550.54.14 depends on file: /boot/modules/d= rm.ko - found =3D=3D=3D> nvidia-drm-515-kmod-550.54.14 depends on file: /boot/modules/n= vidia.ko - found =3D=3D=3D> Generating temporary packing list install -T release -o root -g wheel -m 555 nvidia-drm.ko /usr/ports/graphics/nvidia-drm-515-kmod/work/stage/boot/modules/ /bin/mkdir -p /usr/ports/graphics/nvidia-drm-515-kmod/work/stage/usr/local/share/X11/xorg= .conf.d/ install -m 0644 /usr/ports/graphics/nvidia-drm-515-kmod/work/20-nvidia-drm-outputclass.conf /usr/ports/graphics/nvidia-drm-515-kmod/work/stage/usr/local/share/X11/xorg= .conf.d/ =3D=3D=3D=3D> Compressing man pages (compress-man) =3D=3D=3D> Installing for nvidia-drm-515-kmod-550.54.14 =3D=3D=3D> Checking if nvidia-drm-515-kmod is already installed =3D=3D=3D> Registering installation for nvidia-drm-515-kmod-550.54.14 as = automatic Installing nvidia-drm-515-kmod-550.54.14... Modesetting must be enabled to use nvidia-drm.ko for graphics. This can be = done by setting the modeset sysctl, the equivalent of the modeset kernel paramet= er on Linux. hw.nvidiadrm.modeset=3D1 This must be set before loading nvidia-drm.ko, most easily done by placing = the above in /boot/loader.conf. =3D=3D=3D> nvidia-drm-kmod-550.54.14 depends on file: /boot/modules/nvidi= a-drm.ko - found =3D=3D=3D> Returning to build of nvidia-drm-kmod-550.54.14 =3D=3D=3D> Generating temporary packing list =3D=3D=3D=3D> Compressing man pages (compress-man) # /usr/ports/graphics/nvidia-drm-kmod # make install =3D=3D=3D> Installing for nvidia-drm-kmod-550.54.14 =3D=3D=3D> Checking if nvidia-drm-kmod is already installed =3D=3D=3D> Registering installation for nvidia-drm-kmod-550.54.14 Installing nvidia-drm-kmod-550.54.14... Modesetting must be enabled to use nvidia-drm.ko for graphics.=20 This can be done by setting the modeset sysctl,the equivalent of the modeset kernel parameter on Linux. hw.nvidiadrm.modeset=3D1 This must be set before loading nvdidia-drm.ko, most easily done by placing= the above in /boot/loader.conf. # nano /boot/loader.conf : hw.nvidiadrm.modeset=3D1 # /usr/ports/x11/nvidia-settings # make # /usr/ports/x11/nvidia-settings # make install # nano /etc/rc.conf kld_list=3D"nvidia nvidia-modeset nvidia-drm" --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Mon Mar 11 13:57:07 2024 X-Original-To: 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 4Ttdch0twmz5D2Xd for ; Mon, 11 Mar 2024 13:57:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ttdcg1gkZz4NK0 for ; Mon, 11 Mar 2024 13:57:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710165427; a=rsa-sha256; cv=none; b=Et419PX+KqhZ+Tl8k5IMDbj1GWWQar2FnQ8eoLXHnHRez3qVrc9BHGOZMenp3HUCrLETjy mipmdBqs88nxQDo3IEnRd6y45AbUZ1i/nLkmJhwr6mrNznl+IHaQ1we4iw2D9CUt37W9E5 pqebODI5dhABVghpbZVjg8YNbrs1BBbxc4ivm49qyKX/LSznubeauJ3EXRPE7CtEtJ24ws NxWsGlq0A6mvvBND+elz9hXMW/AS/bvYizN/2biqrlU2aLFZCoRye+AW4GLwkprUcdSnv2 yr2I4FM8pjgsDdMumkz1/C2UJfCTVbUL7wRR/IOpOHTyavjnIQY4T1xoVXt7UA== 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=1710165427; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EjzJRUqy4ZfK6jWAXv0GfqSaBWIdqG0WfNe/SGHgtvk=; b=yYROjAuaWAwtqabgfGXoOhknfBqojNELMJFnRg0orZD7iEp3CvPkE2lnoI81dFHG0GAWir w3vJ1q0CxnW0crN36uM024gMLFwbIS1LPXVHq+NkDxhSStDynvAIf8Irr3Zmfoo4cPcjRH Yg2AvDY34eZIFlvoxv9PtxUly3uGikO7iwnuX8saXan9XijabnHp3vig2jakvumGmHv4F3 P23vdPUbiymDdF22WLaicy0n0zBXbVvvLDdoi/mRyr/GboEcjPN8RiUm3LhEp35b840CBt ucctdBdFHYfx2qu9kZlGkznbVxLWX2XT4YymsmPgbX5N97vOZ4j4UMP+LqpRhg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ttdcg1HlvzY5J for ; Mon, 11 Mar 2024 13:57:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42BDv7E8013870 for ; Mon, 11 Mar 2024 13:57:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42BDv7ta013869 for virtualization@FreeBSD.org; Mon, 11 Mar 2024 13:57:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 277627] Passthru NVIDIA GeForce GTX 1080 Ti not work Date: Mon, 11 Mar 2024 13:57:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: marietto2008@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277627 --- Comment #2 from mario felicioni --- ohhh I Forgot,you should create,inside Linux,a xorg.conf file with this con= tent : Section "Device" Identifier "Card0" Driver "nvidia" BusID "PCI:8:0:0" EndSection if between the bhyve parameters you added,for example : -s 8:0,passthru,2/0/0 \ -s 8:1,passthru,2/0/1 \ -s 8:2,passthru,2/0/2 \ -s 8:3,passthru,2/0/3 \ --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Mar 12 08:02:46 2024 X-Original-To: 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 4Tv5jM08gbz5Cr44 for ; Tue, 12 Mar 2024 08:02:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tv5jL55xvz462x for ; Tue, 12 Mar 2024 08:02:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710230566; a=rsa-sha256; cv=none; b=ZswTRJLceaO+8+ZZ9PwzY8mVUmphC5qq44EyAteYVYnGhhd9/U96qVcY2RfWHgs1vHLcm5 ScuOfITurjVkc5wxRnf1BaosT7yU0ojH4Lat/i6trdjO7X7W8OaldfFPrsciDmeZDdvRSu wbosNx8D8Fr2MHDvkS0vXyXrPYWDkB88WBAhYXjfsodHuW5ptCCUGtLhqeQJ2OjSF+Qqaa uNuS880LPvoucT+wvB6omNho9DVtjN4AZE9jKRY/uTbo+mZ5uvkxS5q7Q7Up770j+dL+Cw X8DjysFytgq7Y8sMfRsoNwllicGEyzcmVX1zFfKka9EtjfwHzejtw0VTjahn7g== 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=1710230566; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EZ87usu7Pyp2BJupGUPN4CdZwtEY7EL/g4d6hSoKjuY=; b=mtsKbI2fCxFBvLhfgZwRgZmPlZHukZr/k8Y7Le5qiwCLMdviOcQRECy/7OzWnBnKV6buo/ iw7njQJWlRxd0hKCjoJxoQrAvjH1CsNh2J3D2HGn3N6f/P2pLJAGZyOP5iyYvs5OQhXVyd r3VRGlJ+bQPquRndGWvnmKgqy7EujvhpX/AnyfuRgJTEm10dscIB01w8Xk8QqZbbuknAX5 eYeuY60VS0lxzKzRZ2nOua11BUvNkNvJ6j0tdu8LJdqUwugU4yzisI/0+WEPdrtzjm+zI2 Zf8XR/DUiYO3KxeoYAkE9apjpENEVBBk2/WUjP60MIBNrqHBNz5fYBbFIWH8OQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tv5jL4fV2z15M9 for ; Tue, 12 Mar 2024 08:02:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42C82kEv034606 for ; Tue, 12 Mar 2024 08:02:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42C82knh034601 for virtualization@FreeBSD.org; Tue, 12 Mar 2024 08:02:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 277627] Passthru NVIDIA GeForce GTX 1080 Ti not work Date: Tue, 12 Mar 2024 08:02:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bubnovky@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277627 --- Comment #3 from Konstantin --- it doesn't work. And I don't understand why to install drivers in the mother OS, the device = is not used in it. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Mar 12 08:15:54 2024 X-Original-To: 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 4Tv60V5L9Nz5Crvx for ; Tue, 12 Mar 2024 08:15:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tv60V2Vjcz476F for ; Tue, 12 Mar 2024 08:15:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710231354; a=rsa-sha256; cv=none; b=Y8g68201qDnh1yRH7HuxEaG2TJm6LWIexbz1bhWvuKtyW0siHjLk1Dsa8mWMDETQKAQHUr tl+IwX8FYGGMhAdnSWO2D3fr4vWK1i67UTQPM2TTHkdK624FWZUwItZ5M4H3dJM/KZd8cZ Zj5ngofm9K/K0cphGgWOJLWmTDJGplKe3seDZvRNGzty78ZmFtRebC+W2EdFZTIIJ732pF hdNudFmCn0V8IJC8naG3tYXHr6siBNT8EfaOh1STsUpg5zXitQPnRREIYCOFCDeqNQQzaV GHSdUJdHh8OlaGNqc48qdu00POY0xFBWrqO6cQzcf4oE6VMndiV/W7KG/MxPyg== 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=1710231354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iTPKLyaiVPiUh8VW4DsPXaIwu7YCB9xbPZr7KU6GOE4=; b=VCfZImO5vEerwe9gfcmdIfCksfzLTFAdxRJdG/33QbhYbrE1qVYkeSTHTd4OvvVkDgRFYv IF4moGgnxZrVEkg0ChuxIKe1JNa2E2BC3qsT8aMJqJkBP2wRx1O3uOLzBvSIy4AK4f4G86 90FHtw++riDkvQEIWLpJ1QmERlAxDOQO2FDQljedU/H/7NWYVSVaesHeFrVTdeXcM3wOvU wL5o9D87UIgX46SU9UmBXCjV755kvs+DokmTnkvnfMeJslI61Tj/iS9wiaX4BZX5Be+cAx ixGmZEARNaolAgYwqEljg+JHvPsZMUGJOTotcfnp8lSveyJ8RT9ZSe5WGzAABg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tv60V26SGz15Ml for ; Tue, 12 Mar 2024 08:15:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42C8FsGL001593 for ; Tue, 12 Mar 2024 08:15:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42C8FssR001591 for virtualization@FreeBSD.org; Tue, 12 Mar 2024 08:15:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 277627] Passthru NVIDIA GeForce GTX 1080 Ti does not work Date: Tue, 12 Mar 2024 08:15:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bubnovky@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277627 Konstantin changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Passthru NVIDIA GeForce GTX |Passthru NVIDIA GeForce GTX |1080 Ti not work |1080 Ti does not work --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Mar 12 08:36:35 2024 X-Original-To: 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 4Tv6SM3wBBz5CtXr for ; Tue, 12 Mar 2024 08:36:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tv6SM0pzLz49h1 for ; Tue, 12 Mar 2024 08:36:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710232595; a=rsa-sha256; cv=none; b=ObrwJ4ZIxKUfTa2+hNbWd686MLR0K3StqHVB22jWrMx/O/R9IageM3vUuG/N+S8wL6Hq51 AmVknETtDFWX4coUsfRr7//tnkq/13ECZhAmhk7Yeuw4Phr0I/cFeQ961HuLHBruvLJtFL 26UYtWn/CoIMgR7hTB85kRhj4iXWe8Cq/KdVTNqhhU8jT5lPOVCceqMl+9MSqRQSK859NH eCLcNOpTAKJzTkphYBJWAkYaTnNKfa+yx35rA6QIAPhelKgyFLI1FgqdBocgn8II6UgTuo i93xshGTn3T2zMF6lartZ7NtKg/VKuxWYZtkG+QA5ROT4GAJwpACb58Nc5FpSA== 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=1710232595; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IfXxj1NLj26nodNiGiOgDNcZ1o30tqsRaqdU1AJn9sE=; b=XkuCb5ImpxMDCJusV2faIrzBKddeHKUHHD6UT2f+5+5OMwj5+aTtukTK3je4RUT1o3GXRq jaIiPUSli/FgBTDbLy4CI+IOIzcpV9y2fp1uz27GxVxifghwSno8pKgCRBqN+fS3gpfxIp x6LGI/ytGBISwuL/4pmogGZ1v/e4LX+Xvpt/lftuLU2pqesKCZgKt3Bz7C1cTe/QtiVAdr hU9AsCJPiuIV2mgw85FlOdwZQCrskFzY/njhq6TEMbOiWULyNBHcJnVv5yT3fQUtz61dRd OZYZhhekAFvySh8S3DzgQj9dRNZ19tH1OF0BGPU2NUr5u0cce3tJqHLiBwRuwg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tv6SM0Qrxz163q for ; Tue, 12 Mar 2024 08:36:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42C8aYAn005934 for ; Tue, 12 Mar 2024 08:36:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42C8aYF1005931 for virtualization@FreeBSD.org; Tue, 12 Mar 2024 08:36:34 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 277627] Passthru NVIDIA GeForce GTX 1080 Ti does not work Date: Tue, 12 Mar 2024 08:36:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: marietto2008@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277627 --- Comment #4 from mario felicioni --- Lets create these script files : 1) build_branch_releng-140 : set -e set -u readonly script_path=3D"$(cd "$(dirname "${0}")" && pwd)" readonly branch=3D"${1?Missing $(usage)}" shift echo $branch cd /usr/corvin-src-releng-140 git fetch --all --prune git checkout -f "${branch}" ${script_path}/build_releng_140 "$@" 2) build_releng_140 : #!/bin/sh usage() { cat >&2 << EOF Usage: ${0} [--no-bhf] [--reboot] [--verbose] [--without-kernel] Builds bhyve EOF exit 1 } build_module() { local _path _path=3D"${1}" # change to module path cd "${_path}" # clean module if test "${clean}" =3D "true"; then make clean > "${cmd_redirect}" 2>&1 fi # build module make > "${cmd_redirect}" 2>&1 # install module make install > "${cmd_redirect}" } build() { build_module "${src_dir}/include" build_module "${src_dir}/lib/libvmmapi" build_module "${src_dir}/sys/modules/vmm" # build kernel if test "${with_kernel}" =3D "true"; then cd "${src_dir}" local kern_opts kern_opts=3D"-j$(sysctl -n hw.ncpu)" if test "${with_bhf}" =3D "true"; then kern_opts=3D"${kern_opts} KERNCONF=3DBHF" fi if ! test "${clean}" =3D "true"; then kern_opts=3D"${kern_opts} NO_CLEAN=3DYES" fi make kernel ${kern_opts} > "${cmd_redirect}" 2>&1 fi build_module "${src_dir}/usr.sbin/bhyve" build_module "${src_dir}/usr.sbin/bhyvectl" build_module "${src_dir}/usr.sbin/bhyveload" if test "${with_reboot}" =3D "true"; then reboot fi } set -e set -u while test $# -gt 0; do case "${1-}" in --clean) clean=3D"true" shift ;; --reboot) with_reboot=3D"true" shift ;; --src-dir=3D*) src_dir=3D"${1#*=3D}" shift ;; --verbose) cmd_redirect=3D"/dev/stdout" shift ;; --without-bhf) with_bhf=3D"false" shift ;; --without-kernel) with_kernel=3D"false" shift ;; *) usage ;; esac done readonly clean=3D"${clean-"false"}" readonly cmd_redirect=3D"${cmd_redirect-"/dev/null"}" readonly src_dir=3D"${src_dir-"/usr/corvin-src-releng-140"}" echo $src_dir readonly with_bhf=3D"${with_bhf-"true"}" readonly with_kernel=3D"${with_kernel-"true"}" readonly with_reboot=3D"${with_reboot-"false"}" build 3) compile-bhyve-releng-140 : cd /usr/ mv src src-old git clone https://github.com/beckhoff/freebsd-src /usr/corvin-src-releng-140 cd /usr/corvin-src-releng-140 ./build_branch_releng-140 origin/phab/corvink/14.0/nvidia-wip --without-bhf --verbose and run : ./compile-bhyve-releng-140 (on FreeBSD 14.0) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Mar 12 10:38:31 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 4Tv99s4Vshz5DbJt for ; Tue, 12 Mar 2024 10:39:13 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (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 4Tv99r6J0Dz4MZr for ; Tue, 12 Mar 2024 10:39:12 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b="ccLQGG/2"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2a00:1450:4864:20::229 as permitted sender) smtp.mailfrom=odhiambo@gmail.com Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2d2991e8c12so50328621fa.0 for ; Tue, 12 Mar 2024 03:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710239948; x=1710844748; darn=freebsd.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=MzZoYuCRDxyR5W5TrmxlpnwTHyRz0JqIKqVcgSH6E5Y=; b=ccLQGG/26+kSH1iNynfkmxZFCovjLJiqwAZ/a7TOHvSkbFxf4/VSGasISxY1MaLuaU 9uqljYhqtpzKFe5J7NXUOWbXHx+ddmTQMAjLB4anT2rKW/VdAdWP/59n+N8ndaVMcZ92 2Dv9+N36kAisKaVtkEynsuElNnLodpx2134RIJ3JIO7WAuVZpd+UufAhCYzqGehRNZXi KF9Isa4nd99PcBvPcJQ8bWzF/Uio8hrjrMknHLSig6mtBTseTl2WTIxNjXBRzgQ75LLj 47T5iB8umIM8/XGTBh1h57dQlXw+xYWT0yT1x8axrNzjS5VkLKrD/XVxxSoURp4I60IJ apJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710239948; x=1710844748; h=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=MzZoYuCRDxyR5W5TrmxlpnwTHyRz0JqIKqVcgSH6E5Y=; b=X9miH7k5y5WsttPajqKyTmIA+iTDVs5emvSXEDq2cp7LplwxsMTrP/v7AOpfJd0hl8 tbRpPTjcAA9KdFNQvOkDqSqX4+xHZhE0Y5eZTlbW07F5tMzY3TldUs2w7+vwVAYd3B15 Ko0EjOU6gDIj040tIyycrndft2XTlLlTaAocRu/mrOyR36tU8oHWqk33AxNKfwWkHKOf o1qA2e5AeksXjLm0/6MLeIrPhXhKvxcuRPY45zvwoikI0iaBHYoYrEXV2QnRSH90a/RT jKhBvo2ijNigDmyPoAPRw/LcUfSK0ZR2SQ9ZoiHBCtXHf1uCwfrQPPNPhYeiSkuSdbOT zYAg== X-Gm-Message-State: AOJu0YyawRbjfXZfJSK6f+cj+ohZLXBj52zZD07B+TPMP8lGmIt95JGd cQbAvFi80bjPqsod2lD5UcOZbbhbfNPZwZiSanVg5z+Z8HWywRadN088sIjvbOcHm9hmTKIydpY Mam/MbabYrNOvPoEEvRuEDwb5hdPudrgFTsuoLw== X-Google-Smtp-Source: AGHT+IHjOY7oCF26L84M4EUmRb4a5Wn866/EZpUeWkbyNxnFbsKVNYabUup2347T85oWpAIt/hVo+TQwm2IlR/JwcfA= X-Received: by 2002:a2e:9c06:0:b0:2d2:31a8:cb1a with SMTP id s6-20020a2e9c06000000b002d231a8cb1amr2810003lji.13.1710239948259; Tue, 12 Mar 2024 03:39:08 -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: Odhiambo Washington Date: Tue, 12 Mar 2024 13:38:31 +0300 Message-ID: Subject: Re: VNC Viewer on Windows: Unable to access VMs GUI To: FreeBSD virtualization Content-Type: multipart/alternative; boundary="00000000000098c9cd061374442a" X-Spamd-Bar: - X-Spamd-Result: default: False [-1.24 / 15.00]; URI_COUNT_ODD(1.00)[11]; HTTP_TO_IP(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.24)[-0.236]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; MISSING_XM_UA(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::229:from] X-Rspamd-Queue-Id: 4Tv99r6J0Dz4MZr --00000000000098c9cd061374442a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Even with this, my mouse pointer doesn't work: # Linux Guest bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H -A \ -s 0,hostbridge \ -s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-12.5.0-amd64-DVD-1.iso \ -s 4,virtio-blk,/usr/local/bhyve-vms/Debian/debian.img \ -s 5,virtio-net,tap4 \ -s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ -s 29,fbuf,tcp=3D0.0.0.0:5905,w=3D1024,h=3D768 \ -s 30,xhci,tablet \ -s 31,lpc -l com1,stdio \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ debian On Wed, Feb 14, 2024 at 3:47=E2=80=AFPM Mario Marietto wrote: > -s 3,fbuf,tcp=3D0.0.0.0:59 *15*,w=3D1600,h=3D950 \ > -s 10,virtio-net,tap*15* \ > *vm15* < /dev/null & sleep 2 && vncviewer *0:15* > > On Wed, Feb 14, 2024 at 1:19=E2=80=AFPM Odhiambo Washington > wrote: > >> Hellos, >> >> When I was still on FreeBSD 13.2-RELEASE I was able to access some Linux >> VMs GUI using VNC Viewer on my Windows PC. >> After I upgraded to 14-RELEASE, this changed: I can connect to the VMs, >> but the GUI desktop is frozen. The mouse cursor isn't moving at all and = the >> Desktop doesn't load like before. >> I start all my VMs the same way: >> >> bhyve -c N -m NG -w -H \ >> -s 0,hostbridge \ >> -s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname.img \ >> -s 5,virtio-net,tapN \ >> -s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ >> -s 29,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \ >> -s 30,xhci,tablet \ >> -s 31,lpc -l com1,stdio \ >> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ >> distroname >> >> I would then connect to a.b.c.d:59xx using VNC Viewer and I'd get the >> Linux/Windows Desktop. >> Not anymore! >> >> Is there something I need to do to fix the issue? >> >> >> -- >> Best regards, >> Odhiambo WASHINGTON, >> Nairobi,KE >> +254 7 3200 0004/+254 7 2274 3223 >> In an Internet failure case, the #1 suspect is a constant: DNS. >> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) >> [How to ask smart questions: >> http://www.catb.org/~esr/faqs/smart-questions.html] >> > > > -- > Mario. > --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] --00000000000098c9cd061374442a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Even with this, my mouse p= ointer doesn't work:

# Linux Guest=
bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H -A \
-s 0,= hostbridge \
-s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-12.5.0-amd64-= DVD-1.iso \
-s 4,virtio-blk,/usr/local/bhyve-vms/Debian/debian.img \
= -s 5,virtio-net,tap4 \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \
-s 2= 9,fbuf,tcp=3D0.0.0.0:5905= ,w=3D1024,h=3D768 \
-s 30,xhci,tablet \
-s 31,lpc -l com1,stdio \=
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
debian
=



On Wed, Feb 14, 2024= at 3:47=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
-s 3,fbuf,tcp=3D0.0.0.0:5915,w=3D1600,h=3D950 \
-s 10,virtio-net,tap15 \
vm15 < /d= ev/null & sleep 2 && vncviewer 0:15

On Wed, Feb 14= , 2024 at 1:19=E2=80=AFPM Odhiambo Washington <odhiambo@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">
Hellos,
When I was still on FreeBSD 13.2-RELEASE I was able to ac= cess some Linux VMs GUI using=C2=A0VNC Viewer on my Windows PC.
A= fter I upgraded to 14-RELEASE, this changed: I can connect to the VMs, but = the GUI desktop is frozen. The mouse cursor isn't moving at all and the= Desktop doesn't load like before.
I start all my VMs the sam= e way:

bhyve -c N -m NG -w -H \
-s 0,hostbridge= \
-s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname.img \
-= s 5,virtio-net,tapN \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \
-s 29= ,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \
-s 30,xhci,tablet \
-s 3= 1,lpc -l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UE= FI.fd \
distroname

I would then connect to a.b.= c.d:59xx using VNC Viewer and I'd get the Linux/Windows Desktop.
<= div>Not anymore!

Is there something I need= to do to fix the=C2=A0issue?


--
Best regards,
Odhiambo= WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
<= span style=3D"color:rgb(34,34,34)">=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DN= S.
"Oh, the cruft.",=C2=A0egrep -v '^$|^.*#'=C2=A0=C2=AF\_= (=E3=83=84)_/=C2=AF=C2=A0:-)=
[How to ask smart questions:=C2= =A0http://www.catb.org/~esr/f= aqs/smart-questions.html]


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
= "Oh, the cruft.",=C2=A0egre= p -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/= =C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-que= stions.html]
--00000000000098c9cd061374442a-- From nobody Tue Mar 12 11:36:19 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 4TvBSV5844z5DgfP for ; Tue, 12 Mar 2024 11:36:58 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (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 4TvBSV39mkz4Rr9 for ; Tue, 12 Mar 2024 11:36:58 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a4417fa396fso388192766b.1 for ; Tue, 12 Mar 2024 04:36:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710243417; x=1710848217; 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=anZhFmN524weGCMCiZAfo8moGqZJWvI57DqiLDGD870=; b=ay6HA6SqNSzZpsgCsj4ha2y/TUG+5QLNBqCNHSjI7awjQP4dyGcFGyVh/vvjMahMFp Veb5mLMCin2k8NULjbYUQ84/300DXrofd6iNAV78m2HJoAWWDE+8++goUBut7rW68Lha fDfQmBMz5rqgA8uedi2ul/Evm3OUpWZJBvj+4dYcszYX4iizHD50fS/jaAfdcHBzqOwM UaA+jX7ZaSTDbF7DGv/3EP2c3zvPNEQ32G36HmhB4ruxOLat0yqvOaIOu1ladh/f0MvI Mv8g8wAmWlFFT2TqisZKXUd1LtUnAcbPT48I5xeAdYt1vFvwLz+BgfWyLsgHqskvs4xQ YpWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710243417; x=1710848217; 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=anZhFmN524weGCMCiZAfo8moGqZJWvI57DqiLDGD870=; b=uVU7gA/llWAUhK/cg8glcQEw3KBJ6eSW/AkaCP3E4BtPBc14AoEAqtQ1I6fEM8T0hJ QnPVN0/jGaOA3pWQczeRNp+5u1z4+mtj4cc2ClUM/ANAgcWfOisJgaMxpk0b8k1AYww2 JsktMO0P0zzQjPvuC680XHfCQ2OKBh3cfb/oGrmFxY/VMyDwkTNN+bjOWJBUe+oFwkqA q0QPavhU8yx4ZUAjacbxyPD/VmmTR480Vx0VN6Uh5OkaxIa4KNR/l+iQ5LMw+//DMJWw mCCRHRjJ3B9PBntMX5pLT19efK3fZUpSCHwBs5nT1nCWGRTvfmcSp1gjZMyNzVol412k x+4A== X-Gm-Message-State: AOJu0YykgH3seFASWgqi8iabEYraVoNxCi0QwnOVVeKwmbK5NxvI1dlA JLrdY2DOnJN1uppGHKhzncrXj/mo7sBGlyIS39X5u3Ajrro9cJ2OIcRE/3BB3astbyEtehlg9DM Dw/p/qlvk7MiLsUNlSAUGciNFgPXm2toMzvXqPg== X-Google-Smtp-Source: AGHT+IEfAx5BOOO0u5nE3p6d5zDGwDPYnlVYtPtZVwYPXtvtg22d0NdXAc/ItVPHzTwmkbykCtdPIb0bMzoecV06aok= X-Received: by 2002:a17:907:a787:b0:a44:51f9:3410 with SMTP id vx7-20020a170907a78700b00a4451f93410mr7506591ejc.0.1710243416822; Tue, 12 Mar 2024 04:36:56 -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: Mario Marietto Date: Tue, 12 Mar 2024 12:36:19 +0100 Message-ID: Subject: Re: VNC Viewer on Windows: Unable to access VMs GUI To: Odhiambo Washington Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="00000000000056d94706137513da" X-Spamd-Bar: ---- 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:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4TvBSV39mkz4Rr9 --00000000000056d94706137513da Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello my friend Odhiambo, you can try to pass your keyboard and mouse to a specific USB to pci adapter,using an USB splitter to attach both the input devices. Actually I'm using the one integrated on my nvidia gpu,RTX 2080 ti,that's : 02:00.0 VGA compatible controller: NVIDIA Corporation TU102 [GeForce RTX 2080 Ti] 02:00.1 Audio device: NVIDIA Corporation TU102 High Definition Audio Controller *02:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Host Controller* 02:00.3 Serial bus controller: NVIDIA Corporation TU102 USB Type-C UCSI Controller For sure you will add the PCI address of the board between your bhyve parameters,for example in my case : -s 8:2,passthru,2/0/2 \ A single hardware solution would be a pcie riser which splits the pcie port= . I've asked for a good USB controller some time ago : https://forums.freebsd.org/threads/im-looking-for-a-good-usb-controller-3-0= -4-ports-self-powered-compatible-with-freebsd.83323/ If it=E2=80=99s only mouse and keyboard you could use bhyves virtio-input e= mulation. Corvin included virtio-input support in his github. He committed virtio-input to 13.2 and 14.0 upstream. >From =E2=80=9Cman bhyve=E2=80=9D https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&apropos=3D0&sektion=3D8&m= anpath=3DFreeBSD+14.0-CURRENT&arch=3Ddefault&format=3Dhtml ): Virtio input device backends: */dev/input/eventX* Send input events of */dev/input/eventX* to guest by VirtIO Input Interface. On Tue, Mar 12, 2024 at 11:39=E2=80=AFAM Odhiambo Washington wrote: > > Even with this, my mouse pointer doesn't work: > > # Linux Guest > bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H -A \ > -s 0,hostbridge \ > -s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-12.5.0-amd64-DVD-1.iso \ > -s 4,virtio-blk,/usr/local/bhyve-vms/Debian/debian.img \ > -s 5,virtio-net,tap4 \ > -s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ > -s 29,fbuf,tcp=3D0.0.0.0:5905,w=3D1024,h=3D768 \ > -s 30,xhci,tablet \ > -s 31,lpc -l com1,stdio \ > -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ > debian > > > > On Wed, Feb 14, 2024 at 3:47=E2=80=AFPM Mario Marietto > wrote: > >> -s 3,fbuf,tcp=3D0.0.0.0:59 *15*,w=3D1600,h=3D950 \ >> -s 10,virtio-net,tap*15* \ >> *vm15* < /dev/null & sleep 2 && vncviewer *0:15* >> >> On Wed, Feb 14, 2024 at 1:19=E2=80=AFPM Odhiambo Washington >> wrote: >> >>> Hellos, >>> >>> When I was still on FreeBSD 13.2-RELEASE I was able to access some Linu= x >>> VMs GUI using VNC Viewer on my Windows PC. >>> After I upgraded to 14-RELEASE, this changed: I can connect to the VMs, >>> but the GUI desktop is frozen. The mouse cursor isn't moving at all and= the >>> Desktop doesn't load like before. >>> I start all my VMs the same way: >>> >>> bhyve -c N -m NG -w -H \ >>> -s 0,hostbridge \ >>> -s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname.img \ >>> -s 5,virtio-net,tapN \ >>> -s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ >>> -s 29,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \ >>> -s 30,xhci,tablet \ >>> -s 31,lpc -l com1,stdio \ >>> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ >>> distroname >>> >>> I would then connect to a.b.c.d:59xx using VNC Viewer and I'd get the >>> Linux/Windows Desktop. >>> Not anymore! >>> >>> Is there something I need to do to fix the issue? >>> >>> >>> -- >>> Best regards, >>> Odhiambo WASHINGTON, >>> Nairobi,KE >>> +254 7 3200 0004/+254 7 2274 3223 >>> In an Internet failure case, the #1 suspect is a constant: DNS. >>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) >>> [How to ask smart questions: >>> http://www.catb.org/~esr/faqs/smart-questions.html] >>> >> >> >> -- >> Mario. >> > > > -- > Best regards, > Odhiambo WASHINGTON, > Nairobi,KE > +254 7 3200 0004/+254 7 2274 3223 > In an Internet failure case, the #1 suspect is a constant: DNS. > "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) > [How to ask smart questions: > http://www.catb.org/~esr/faqs/smart-questions.html] > --=20 Mario. --00000000000056d94706137513da Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello my friend Odhiambo,

yo= u can try to pass your keyboard and mouse to a specific USB to pci adapter,= using an USB splitter to attach both the input devices. Actually I'm us= ing the one integrated on my nvidia gpu,RTX 2080 ti,that's :
<= div>
02:00.0 VGA compatible controller: NVIDIA Corporation TU= 102 [GeForce RTX 2080 Ti]
02:00.1 Audio device: NVIDIA Corporation TU102= High Definition Audio Controller
02:00.2 USB controller: NVIDIA Corp= oration TU102 USB 3.1 Host Controller
02:00.3 Serial bus controller:= NVIDIA Corporation TU102 USB Type-C UCSI Controller

For sure you will add the PCI address of the board between your bhy= ve parameters,for example in my case :

-s 8:= 2,passthru,2/0/2 \

A single hard= ware solution would be a pcie riser which splits the pcie port.


I've asked for a = good USB controller some time ago :


https://forums.freebsd.org/thre= ads/im-looking-for-a-good-usb-controller-3-0-4-ports-self-powered-compatibl= e-with-freebsd.83323/


If it=E2=80=99s only mouse and keyboard you could us= e bhyves virtio-input emulation.


Corvin included virtio-input support in his github.<= /p>


He committed virtio-input to 13.2 and 14.0 upstream.=


From =E2=80=9Cman bhyve=E2=80=9D


https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&apropos=3D0&sek= tion=3D8&manpath=3DFreeBSD+14.0-CURRENT&arch=3Ddefault&format= =3Dhtml):


=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Virtio=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 input device backends:

=C2=A0<= /span>

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /dev/input/eventX

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 Send input=C2=A0=C2=A0=C2=A0 events of /dev/input/eventX to guest

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 by=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 VirtIO Inp= ut Interface.


On Tue, Mar 12, 2024 at 11:39=E2=80=AFAM Odhiambo W= ashington <odhia= mbo@gmail.com> wrote:

Even with thi= s, my mouse pointer doesn't work:

= # Linux Guest
bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H = -A \
-s 0,hostbridge \
-s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-= 12.5.0-amd64-DVD-1.iso \
-s 4,virtio-blk,/usr/local/bhyve-vms/Debian/deb= ian.img \
-s 5,virtio-net,tap4 \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/= dsp \
-s 29,fbuf,tcp=3D0.0.0.0:5905,w=3D1024,h=3D768 \
-s 30,xhci,tablet \
-s 31,lpc -l= com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \<= br>debian


On Wed, = Feb 14, 2024 at 3:47=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
<= div>-s 3,fbuf,tcp=3D0.0.0.0:5915,w=3D1600,h=3D950 \=
-s 10,virtio-net,tap15 \
vm15<= /b> < /dev/null & sleep 2 && vncviewer 0:15
On = Wed, Feb 14, 2024 at 1:19=E2=80=AFPM Odhiambo Washington <odhiambo@gmail.com> wrote:=
Hellos,

When I was still on FreeBSD 13.2-RELEASE I was= able to access some Linux VMs GUI using=C2=A0VNC Viewer on my Windows PC.<= /div>
After I upgraded to 14-RELEASE, this changed: I can connect to th= e VMs, but the GUI desktop is frozen. The mouse cursor isn't moving at = all and the Desktop doesn't load like before.
I start all my = VMs the same way:

bhyve -c N -m NG -w -H \
-s 0= ,hostbridge \
-s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname= .img \
-s 5,virtio-net,tapN \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp= \
-s 29,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \
-s 30,xhci,table= t \
-s 31,lpc -l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmwa= re/BHYVE_UEFI.fd \
distroname

I would then conn= ect to a.b.c.d:59xx using VNC Viewer and I'd get the Linux/Windows Desk= top.
Not anymore!

Is there somet= hing I need to do to fix the=C2=A0issue?


--
Best regards,<= br>Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223<= /div>
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a c= onstant: DNS.
"Oh, the cruf= t.",=C2=A0egrep -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2= =A0:-)
[How to ask smart = questions:=C2=A0http://www.ca= tb.org/~esr/faqs/smart-questions.html]


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
= "Oh, the cruft.",=C2=A0egre= p -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/= =C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-que= stions.html]


--
Mario.
--00000000000056d94706137513da-- From nobody Tue Mar 12 11:48:56 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 4TvBl308Fkz5Dhkc for ; Tue, 12 Mar 2024 11:49:35 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) (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 4TvBl24FYFz4Stc for ; Tue, 12 Mar 2024 11:49:34 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2d4141c4438so84405571fa.3 for ; Tue, 12 Mar 2024 04:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710244172; x=1710848972; 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=+tJ2/o/uRv5DszieRL8T5t7rkk4T0tVJzeqQ500V1Vo=; b=OwEuWB0R8Fu9C7iaxKGhE801VQppw9P5QPoEg32RgXkOp6I0bSfLTzkWtvPJUDQmGi a+k3jE148tOptuiPQvALzPgdcts/2xKOrTChmvagmyNBvCslKq3mFII5Azb0dZ9feBuJ h80ItH2gXJo2mJDT4g/HZ8S7eScjQynpK/8SgwZc/ylY1to+BplUYekBsxSaKau9uNn1 vW5LmYvT0AYg0Jn8A77+PLAboBMjwdDVZrdm4tMOasF4qPi484FZNdHNI+p1jgYwGgtT 6dV6V9rWxD3Zrpw2cmPjc02Md7opH4kb4J83DrRZR82Bn5qZ7j6cbfQugL7YtAEMB5Vq urDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710244172; x=1710848972; 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=+tJ2/o/uRv5DszieRL8T5t7rkk4T0tVJzeqQ500V1Vo=; b=iSQsBviyTow7Masi1ETaRPysp64f0GULchLlNWqmvWLoSCYlbZ447NI8/yqxC2uK+m PvG1m6wY5iQXpOq3JH63hMwUcAUKvAJIPwTofyhKXyExwLPCfgTApEplEAj+6i2lyEBl sbPaB705PUCtWHceKHOQyYXzNw1+RDpW6lECsJP/qUVqG8vibPVuO6AnJPN4IZGaGqqW uT2XPNGfkHjpn3I05vE6pnFokskDVBKoQTU42kMYCwlMMJHUxmylJNUCZTxM26DVvu0j O2F8fPojn2DSxOSWv6d3u1JCfULxM5fZCd5czmrTUUb8gpFOmfNFx3rWU97LajH7PczZ 3bCw== X-Gm-Message-State: AOJu0YxW0xwjTqodcy9gntcKLKKzCT3GVT7k1cn4ovHBix/Qoi9Y+0RV rjkWDFfLvc0b2z4heugXKrJNFHbH4UrGIo7yGTuBTK+695DcJcWhxx9C+Hnf1VQtZFBMf5v0n9C j8h6rj95NR0XZODzI33mhO5xQPQg= X-Google-Smtp-Source: AGHT+IGwKzwZA3n/RyQf8RfL9DlrB9JwZfBt9ywjM957cfnbfDmJRKubv6/VX2mwR9yZFRvCI98YZQsr/Jjm3O66Fxw= X-Received: by 2002:a05:651c:608:b0:2d3:cb1c:a5eb with SMTP id k8-20020a05651c060800b002d3cb1ca5ebmr5106105lje.7.1710244171986; Tue, 12 Mar 2024 04:49:31 -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: Odhiambo Washington Date: Tue, 12 Mar 2024 14:48:56 +0300 Message-ID: Subject: Re: VNC Viewer on Windows: Unable to access VMs GUI To: Mario Marietto Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="00000000000059c1330613754021" X-Spamd-Bar: ---- 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:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4TvBl24FYFz4Stc --00000000000059c1330613754021 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Actually, I am trying to figure out why they do not work after upgrade from FreeBSD 13 to 14. They used to work before. History: 1. My FreeBSD host lives in a Data Centre several kilometers from me. I only access it via SSH. 2. My FreeBSD host does not have a keyboard, mouse, or screen attached to it. 3. I use VNC Viewer to connect to the VMs like HOST_IP:PORT On Tue, Mar 12, 2024 at 2:36=E2=80=AFPM Mario Marietto wrote: > Hello my friend Odhiambo, > > you can try to pass your keyboard and mouse to a specific USB to pci > adapter,using an USB splitter to attach both the input devices. Actually > I'm using the one integrated on my nvidia gpu,RTX 2080 ti,that's : > > 02:00.0 VGA compatible controller: NVIDIA Corporation TU102 [GeForce RTX > 2080 Ti] > 02:00.1 Audio device: NVIDIA Corporation TU102 High Definition Audio > Controller > *02:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Host Controller= * > 02:00.3 Serial bus controller: NVIDIA Corporation TU102 USB Type-C UCSI > Controller > > For sure you will add the PCI address of the board between your bhyve > parameters,for example in my case : > > -s 8:2,passthru,2/0/2 \ > > A single hardware solution would be a pcie riser which splits the pcie > port. > > > I've asked for a good USB controller some time ago : > > > > https://forums.freebsd.org/threads/im-looking-for-a-good-usb-controller-3= -0-4-ports-self-powered-compatible-with-freebsd.83323/ > > > If it=E2=80=99s only mouse and keyboard you could use bhyves virtio-input > emulation. > > > Corvin included virtio-input support in his github. > > > He committed virtio-input to 13.2 and 14.0 upstream. > > > From =E2=80=9Cman bhyve=E2=80=9D > > > > https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&apropos=3D0&sektion=3D8= &manpath=3DFreeBSD+14.0-CURRENT&arch=3Ddefault&format=3Dhtml > ): > > > Virtio input device backends: > > > > */dev/input/eventX* > > Send input events of */dev/input/eventX* to > guest > > by VirtIO Input Interface. > > On Tue, Mar 12, 2024 at 11:39=E2=80=AFAM Odhiambo Washington > wrote: > >> >> Even with this, my mouse pointer doesn't work: >> >> # Linux Guest >> bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H -A \ >> -s 0,hostbridge \ >> -s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-12.5.0-amd64-DVD-1.iso \ >> -s 4,virtio-blk,/usr/local/bhyve-vms/Debian/debian.img \ >> -s 5,virtio-net,tap4 \ >> -s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ >> -s 29,fbuf,tcp=3D0.0.0.0:5905,w=3D1024,h=3D768 \ >> -s 30,xhci,tablet \ >> -s 31,lpc -l com1,stdio \ >> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ >> debian >> >> >> >> On Wed, Feb 14, 2024 at 3:47=E2=80=AFPM Mario Marietto > > wrote: >> >>> -s 3,fbuf,tcp=3D0.0.0.0:59 *15*,w=3D1600,h=3D950 \ >>> -s 10,virtio-net,tap*15* \ >>> *vm15* < /dev/null & sleep 2 && vncviewer *0:15* >>> >>> On Wed, Feb 14, 2024 at 1:19=E2=80=AFPM Odhiambo Washington >>> wrote: >>> >>>> Hellos, >>>> >>>> When I was still on FreeBSD 13.2-RELEASE I was able to access some >>>> Linux VMs GUI using VNC Viewer on my Windows PC. >>>> After I upgraded to 14-RELEASE, this changed: I can connect to the VMs= , >>>> but the GUI desktop is frozen. The mouse cursor isn't moving at all an= d the >>>> Desktop doesn't load like before. >>>> I start all my VMs the same way: >>>> >>>> bhyve -c N -m NG -w -H \ >>>> -s 0,hostbridge \ >>>> -s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname.img \ >>>> -s 5,virtio-net,tapN \ >>>> -s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ >>>> -s 29,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \ >>>> -s 30,xhci,tablet \ >>>> -s 31,lpc -l com1,stdio \ >>>> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ >>>> distroname >>>> >>>> I would then connect to a.b.c.d:59xx using VNC Viewer and I'd get the >>>> Linux/Windows Desktop. >>>> Not anymore! >>>> >>>> Is there something I need to do to fix the issue? >>>> >>>> >>>> -- >>>> Best regards, >>>> Odhiambo WASHINGTON, >>>> Nairobi,KE >>>> +254 7 3200 0004/+254 7 2274 3223 >>>> In an Internet failure case, the #1 suspect is a constant: DNS. >>>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) >>>> [How to ask smart questions: >>>> http://www.catb.org/~esr/faqs/smart-questions.html] >>>> >>> >>> >>> -- >>> Mario. >>> >> >> >> -- >> Best regards, >> Odhiambo WASHINGTON, >> Nairobi,KE >> +254 7 3200 0004/+254 7 2274 3223 >> In an Internet failure case, the #1 suspect is a constant: DNS. >> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) >> [How to ask smart questions: >> http://www.catb.org/~esr/faqs/smart-questions.html] >> > > > -- > Mario. > --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] --00000000000059c1330613754021 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Actually, I am trying to figure out why they do not w= ork after upgrade from FreeBSD 13 to 14. They used to work before.
History:
1. My FreeBSD host lives in a Data Centre several kilo= meters from me. I only access it via SSH.
2. My FreeBSD host does= not have a keyboard, mouse, or screen attached to it.
3. I use V= NC Viewer to connect to the VMs like HOST_IP:PORT


<= div class=3D"gmail_quote">
On Tue, Mar= 12, 2024 at 2:36=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
Hello my friend = Odhiambo,

you can try to pass your keyboard and mo= use to a specific USB to pci adapter,using an USB splitter to attach both t= he input devices. Actually I'm using the one integrated on my nvidia gp= u,RTX 2080 ti,that's :

02:00.0 VGA compati= ble controller: NVIDIA Corporation TU102 [GeForce RTX 2080 Ti]
02:00.1 A= udio device: NVIDIA Corporation TU102 High Definition Audio Controller
<= b>02:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Host Controller<= /b>
02:00.3 Serial bus controller: NVIDIA Corporation TU102 USB Type-C U= CSI Controller

For sure you will add the PCI = address of the board between your bhyve parameters,for example in my case :=

-s 8:2,passthru,2/0/2 \

A single hardware solution would be a pcie riser wh= ich splits the pcie port.


I've asked for a = good USB controller some time ago :


https://forum= s.freebsd.org/threads/im-looking-for-a-good-usb-controller-3-0-4-ports-self= -powered-compatible-with-freebsd.83323/


If it=E2=80=99s only mouse and keyboard you could us= e bhyves virtio-input emulation.


Corvin included virtio-input support in his github.<= /p>


He committed virtio-input to 13.2 and 14.0 upstream.=


From =E2=80=9Cman bhyve=E2=80=9D


https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&apropos=3D0&sek= tion=3D8&manpath=3DFreeBSD+14.0-CURRENT&arch=3Ddefault&format= =3Dhtml):


=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Virtio=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 input device backends:

=C2=A0<= /span>

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /dev/input/eventX

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 Send input=C2=A0=C2=A0=C2=A0 events of /dev/input/eventX to guest

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 by=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 VirtIO Inp= ut Interface.


On Tue, Mar 12, 2024 at 11:39=E2=80=AFAM Odhiambo W= ashington <odhia= mbo@gmail.com> wrote:

Even with thi= s, my mouse pointer doesn't work:

= # Linux Guest
bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H = -A \
-s 0,hostbridge \
-s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-= 12.5.0-amd64-DVD-1.iso \
-s 4,virtio-blk,/usr/local/bhyve-vms/Debian/deb= ian.img \
-s 5,virtio-net,tap4 \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/= dsp \
-s 29,fbuf,tcp=3D0.0.0.0:5905,w=3D1024,h=3D768 \
-s 30,xhci,tablet \
-s 31,lpc -l= com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \<= br>debian


On Wed, = Feb 14, 2024 at 3:47=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
<= div>-s 3,fbuf,tcp=3D0.0.0.0:5915,w=3D1600,h=3D950 \=
-s 10,virtio-net,tap15 \
vm15<= /b> < /dev/null & sleep 2 && vncviewer 0:15
On = Wed, Feb 14, 2024 at 1:19=E2=80=AFPM Odhiambo Washington <odhiambo@gmail.com> wrote:=
Hellos,

When I was still on FreeBSD 13.2-RELEASE I was= able to access some Linux VMs GUI using=C2=A0VNC Viewer on my Windows PC.<= /div>
After I upgraded to 14-RELEASE, this changed: I can connect to th= e VMs, but the GUI desktop is frozen. The mouse cursor isn't moving at = all and the Desktop doesn't load like before.
I start all my = VMs the same way:

bhyve -c N -m NG -w -H \
-s 0= ,hostbridge \
-s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname= .img \
-s 5,virtio-net,tapN \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp= \
-s 29,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \
-s 30,xhci,table= t \
-s 31,lpc -l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmwa= re/BHYVE_UEFI.fd \
distroname

I would then conn= ect to a.b.c.d:59xx using VNC Viewer and I'd get the Linux/Windows Desk= top.
Not anymore!

Is there somet= hing I need to do to fix the=C2=A0issue?


--
Best regards,<= br>Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223<= /div>
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a c= onstant: DNS.
"Oh, the cruf= t.",=C2=A0egrep -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2= =A0:-)
[How to ask smart = questions:=C2=A0http://www.ca= tb.org/~esr/faqs/smart-questions.html]


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
= "Oh, the cruft.",=C2=A0egre= p -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/= =C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-que= stions.html]


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
= "Oh, the cruft.",=C2=A0egre= p -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/= =C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-que= stions.html]
--00000000000059c1330613754021-- From nobody Tue Mar 12 11:53:05 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 4TvBqr576zz5Dhp0 for ; Tue, 12 Mar 2024 11:53:44 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) (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 4TvBqr2w20z4Tcm for ; Tue, 12 Mar 2024 11:53:44 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a45aa7cb2b3so498936166b.3 for ; Tue, 12 Mar 2024 04:53:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710244423; x=1710849223; 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=p2ijVXHvELXOfuMRPEPKK+qwHVrJTA+MLLHVGjfCgGs=; b=eTTqulAnh9I0TwsmjFmW6NOYbdgFZA112i+mryvrlC/jEwDordDcVuJHicLExFR4s7 dhqM/1Xl1e/5hf/ApvLkF0o9HpiSrD9ZnN1qD3Cm1loQdtT39Y5rTnr4u/nq3+iJpmdH Y9EVwTD1CvVA4eSLxwY6hsSTaNY9BdN4wv7UowMCjgA88+sB9uM/KVkETRcMdJfv1CGd 0vyfM06iIHe/W5svovdsZAxIuWSDjpA6jEJcwxrN2JTDgVtJLor8yk/YmU5ljq8ZMXDN Kqb5a7GmI+HkSnl5N8H84qGPAPd9H17zE4+VItoXIvlItwUYz0hvz+TuOl1Wpqnu5lgm 9KXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710244423; x=1710849223; 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=p2ijVXHvELXOfuMRPEPKK+qwHVrJTA+MLLHVGjfCgGs=; b=uoSnxcc6gLNnRe76tJZUp2x1lZ2U2Kx7owA3T3Av6xNEZFTS5IlSrZFHy1sHxykUj+ bCBU+sbs+MyBH16lkGYw1CnbH5JMH+0IyrFzQlcO2CB+5jPjOSfZsL9Tkh5212A3DDu1 U3F14Bp25ekrzegRHe/NqZgApPSsDWX49vNwgwePEdJDFv0NEKxEMr7f8/lfhAkVJi5J de3YOOIf1uAShmDnOkqtqQCydiOWBX/2Nq3y8U1SMcKrAYRg8bg86uEez1ZZviVOzXHr gjMjmn2KYTTGUWnzneVcuMsqkxIRf3mBMOS8uUi1O5bpJ6BQg9DDxvi12YuPZlJbzOrx 8tRQ== X-Gm-Message-State: AOJu0YxWelY8ApIsWewtUmJ6H7IwV+9L6baziK2WKP/2+i4X54VyVC1a sKe1h+xT0L6iTY/Sz9IKomNzv+Oow+jLumG2W/nVWlvrLIQCC0kROE4Nt7Keszqk8ZMCKymmb+a f1jlPJWrQ4tifaoe3PrqB7XK40ak= X-Google-Smtp-Source: AGHT+IFUqKqwTycrm2TpG2BzND4Pomn6JVoA1wvRBEXTwCy9B6wIq7pDwLo7hyaSZL/HV9D8ZDSRhMjVezCqJy/gomE= X-Received: by 2002:a17:907:168b:b0:a46:226a:fc8a with SMTP id cx11-20020a170907168b00b00a46226afc8amr4388724ejd.38.1710244422585; Tue, 12 Mar 2024 04:53:42 -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: Mario Marietto Date: Tue, 12 Mar 2024 12:53:05 +0100 Message-ID: Subject: Re: VNC Viewer on Windows: Unable to access VMs GUI To: Odhiambo Washington Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="0000000000004996d40613754f74" X-Spamd-Bar: ---- 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:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4TvBqr2w20z4Tcm --0000000000004996d40613754f74 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Maybe because some patches haven't been upstreamed to 14.0 branch. On Tue, Mar 12, 2024 at 12:49=E2=80=AFPM Odhiambo Washington wrote: > Actually, I am trying to figure out why they do not work after upgrade > from FreeBSD 13 to 14. They used to work before. > History: > 1. My FreeBSD host lives in a Data Centre several kilometers from me. I > only access it via SSH. > 2. My FreeBSD host does not have a keyboard, mouse, or screen attached to > it. > 3. I use VNC Viewer to connect to the VMs like HOST_IP:PORT > > > On Tue, Mar 12, 2024 at 2:36=E2=80=AFPM Mario Marietto > wrote: > >> Hello my friend Odhiambo, >> >> you can try to pass your keyboard and mouse to a specific USB to pci >> adapter,using an USB splitter to attach both the input devices. Actually >> I'm using the one integrated on my nvidia gpu,RTX 2080 ti,that's : >> >> 02:00.0 VGA compatible controller: NVIDIA Corporation TU102 [GeForce RTX >> 2080 Ti] >> 02:00.1 Audio device: NVIDIA Corporation TU102 High Definition Audio >> Controller >> *02:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Host Controlle= r* >> 02:00.3 Serial bus controller: NVIDIA Corporation TU102 USB Type-C UCSI >> Controller >> >> For sure you will add the PCI address of the board between your bhyve >> parameters,for example in my case : >> >> -s 8:2,passthru,2/0/2 \ >> >> A single hardware solution would be a pcie riser which splits the pcie >> port. >> >> >> I've asked for a good USB controller some time ago : >> >> >> >> https://forums.freebsd.org/threads/im-looking-for-a-good-usb-controller-= 3-0-4-ports-self-powered-compatible-with-freebsd.83323/ >> >> >> If it=E2=80=99s only mouse and keyboard you could use bhyves virtio-inpu= t >> emulation. >> >> >> Corvin included virtio-input support in his github. >> >> >> He committed virtio-input to 13.2 and 14.0 upstream. >> >> >> From =E2=80=9Cman bhyve=E2=80=9D >> >> >> >> https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&apropos=3D0&sektion=3D= 8&manpath=3DFreeBSD+14.0-CURRENT&arch=3Ddefault&format=3Dhtml >> ): >> >> >> Virtio input device backends: >> >> >> >> */dev/input/eventX* >> >> Send input events of */dev/input/eventX* to >> guest >> >> by VirtIO Input Interface. >> >> On Tue, Mar 12, 2024 at 11:39=E2=80=AFAM Odhiambo Washington >> wrote: >> >>> >>> Even with this, my mouse pointer doesn't work: >>> >>> # Linux Guest >>> bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H -A \ >>> -s 0,hostbridge \ >>> -s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-12.5.0-amd64-DVD-1.iso \ >>> -s 4,virtio-blk,/usr/local/bhyve-vms/Debian/debian.img \ >>> -s 5,virtio-net,tap4 \ >>> -s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ >>> -s 29,fbuf,tcp=3D0.0.0.0:5905,w=3D1024,h=3D768 \ >>> -s 30,xhci,tablet \ >>> -s 31,lpc -l com1,stdio \ >>> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ >>> debian >>> >>> >>> >>> On Wed, Feb 14, 2024 at 3:47=E2=80=AFPM Mario Marietto >> > wrote: >>> >>>> -s 3,fbuf,tcp=3D0.0.0.0:59 *15*,w=3D1600,h=3D950 = \ >>>> -s 10,virtio-net,tap*15* \ >>>> *vm15* < /dev/null & sleep 2 && vncviewer *0:15* >>>> >>>> On Wed, Feb 14, 2024 at 1:19=E2=80=AFPM Odhiambo Washington >>>> wrote: >>>> >>>>> Hellos, >>>>> >>>>> When I was still on FreeBSD 13.2-RELEASE I was able to access some >>>>> Linux VMs GUI using VNC Viewer on my Windows PC. >>>>> After I upgraded to 14-RELEASE, this changed: I can connect to the >>>>> VMs, but the GUI desktop is frozen. The mouse cursor isn't moving at = all >>>>> and the Desktop doesn't load like before. >>>>> I start all my VMs the same way: >>>>> >>>>> bhyve -c N -m NG -w -H \ >>>>> -s 0,hostbridge \ >>>>> -s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname.img \ >>>>> -s 5,virtio-net,tapN \ >>>>> -s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ >>>>> -s 29,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \ >>>>> -s 30,xhci,tablet \ >>>>> -s 31,lpc -l com1,stdio \ >>>>> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ >>>>> distroname >>>>> >>>>> I would then connect to a.b.c.d:59xx using VNC Viewer and I'd get the >>>>> Linux/Windows Desktop. >>>>> Not anymore! >>>>> >>>>> Is there something I need to do to fix the issue? >>>>> >>>>> >>>>> -- >>>>> Best regards, >>>>> Odhiambo WASHINGTON, >>>>> Nairobi,KE >>>>> +254 7 3200 0004/+254 7 2274 3223 >>>>> In an Internet failure case, the #1 suspect is a constant: DNS. >>>>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) >>>>> [How to ask smart questions: >>>>> http://www.catb.org/~esr/faqs/smart-questions.html] >>>>> >>>> >>>> >>>> -- >>>> Mario. >>>> >>> >>> >>> -- >>> Best regards, >>> Odhiambo WASHINGTON, >>> Nairobi,KE >>> +254 7 3200 0004/+254 7 2274 3223 >>> In an Internet failure case, the #1 suspect is a constant: DNS. >>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) >>> [How to ask smart questions: >>> http://www.catb.org/~esr/faqs/smart-questions.html] >>> >> >> >> -- >> Mario. >> > > > -- > Best regards, > Odhiambo WASHINGTON, > Nairobi,KE > +254 7 3200 0004/+254 7 2274 3223 > In an Internet failure case, the #1 suspect is a constant: DNS. > "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) > [How to ask smart questions: > http://www.catb.org/~esr/faqs/smart-questions.html] > --=20 Mario. --0000000000004996d40613754f74 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Maybe because some patches haven't been upstreamed to = 14.0 branch.

On Tue, Mar 12, 2024 at 12:49=E2=80=AFPM Odhiambo Washingto= n <odhiambo@gmai= l.com> wrote:
Actually, I am trying to figure out why they do = not work after upgrade from FreeBSD 13 to 14. They used to work before.
History:
1. My FreeBSD host lives in a Data Centre several= kilometers from me. I only access it via SSH.
2. My FreeBSD host= does not have a keyboard, mouse, or screen attached to it.
3. I = use VNC Viewer to connect to the VMs like HOST_IP:PORT

=
On Tue= , Mar 12, 2024 at 2:36=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:=
Hello my friend Odhiambo,

you can try to pa= ss your keyboard and mouse to a specific USB to pci adapter,using an USB sp= litter to attach both the input devices. Actually I'm using the one int= egrated on my nvidia gpu,RTX 2080 ti,that's :

<= div>02:00.0 VGA compatible controller: NVIDIA Corporation TU102 [GeForce RT= X 2080 Ti]
02:00.1 Audio device: NVIDIA Corporation TU102 High Definitio= n Audio Controller
02:00.2 USB controller: NVIDIA Corporation TU102 U= SB 3.1 Host Controller
02:00.3 Serial bus controller: NVIDIA Corpora= tion TU102 USB Type-C UCSI Controller

For sur= e you will add the PCI address of the board between your bhyve parameters,f= or example in my case :

-s 8:2,passthru,2/0/= 2 \

A single hardware solution w= ould be a pcie riser which splits the pcie port.


I've asked for a = good USB controller some time ago :


https://forum= s.freebsd.org/threads/im-looking-for-a-good-usb-controller-3-0-4-ports-self= -powered-compatible-with-freebsd.83323/


If it=E2=80=99s only mouse and keyboard you could us= e bhyves virtio-input emulation.


Corvin included virtio-input support in his github.<= /p>


He committed virtio-input to 13.2 and 14.0 upstream.=


From =E2=80=9Cman bhyve=E2=80=9D


https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&apropos=3D0&sek= tion=3D8&manpath=3DFreeBSD+14.0-CURRENT&arch=3Ddefault&format= =3Dhtml):


=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Virtio=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 input device backends:

=C2=A0<= /span>

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /dev/input/eventX

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 Send input=C2=A0=C2=A0=C2=A0 events of /dev/input/eventX to guest

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 by=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 VirtIO Inp= ut Interface.


On Tue, Mar 12, 2024 at 11:39=E2=80=AFAM Odhiambo W= ashington <odhia= mbo@gmail.com> wrote:

Even with thi= s, my mouse pointer doesn't work:

= # Linux Guest
bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H = -A \
-s 0,hostbridge \
-s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-= 12.5.0-amd64-DVD-1.iso \
-s 4,virtio-blk,/usr/local/bhyve-vms/Debian/deb= ian.img \
-s 5,virtio-net,tap4 \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/= dsp \
-s 29,fbuf,tcp=3D0.0.0.0:5905,w=3D1024,h=3D768 \
-s 30,xhci,tablet \
-s 31,lpc -l= com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \<= br>debian


On Wed, = Feb 14, 2024 at 3:47=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
<= div>-s 3,fbuf,tcp=3D0.0.0.0:5915,w=3D1600,h=3D950 \=
-s 10,virtio-net,tap15 \
vm15<= /b> < /dev/null & sleep 2 && vncviewer 0:15
On = Wed, Feb 14, 2024 at 1:19=E2=80=AFPM Odhiambo Washington <odhiambo@gmail.com> wrote:=
Hellos,

When I was still on FreeBSD 13.2-RELEASE I was= able to access some Linux VMs GUI using=C2=A0VNC Viewer on my Windows PC.<= /div>
After I upgraded to 14-RELEASE, this changed: I can connect to th= e VMs, but the GUI desktop is frozen. The mouse cursor isn't moving at = all and the Desktop doesn't load like before.
I start all my = VMs the same way:

bhyve -c N -m NG -w -H \
-s 0= ,hostbridge \
-s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname= .img \
-s 5,virtio-net,tapN \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp= \
-s 29,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \
-s 30,xhci,table= t \
-s 31,lpc -l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmwa= re/BHYVE_UEFI.fd \
distroname

I would then conn= ect to a.b.c.d:59xx using VNC Viewer and I'd get the Linux/Windows Desk= top.
Not anymore!

Is there somet= hing I need to do to fix the=C2=A0issue?


--
Best regards,<= br>Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223<= /div>
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a c= onstant: DNS.
"Oh, the cruf= t.",=C2=A0egrep -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2= =A0:-)
[How to ask smart = questions:=C2=A0http://www.ca= tb.org/~esr/faqs/smart-questions.html]


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
= "Oh, the cruft.",=C2=A0egre= p -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/= =C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-que= stions.html]


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
= "Oh, the cruft.",=C2=A0egre= p -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/= =C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-que= stions.html]


--
Mario.
--0000000000004996d40613754f74-- From nobody Tue Mar 12 12:00:01 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 4TvBzs11Jrz5DjP0 for ; Tue, 12 Mar 2024 12:00:41 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (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 4TvBzr1zj8z4VQl for ; Tue, 12 Mar 2024 12:00:40 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=dDijNXsX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::634 as permitted sender) smtp.mailfrom=marietto2008@gmail.com Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a450615d1c4so931972766b.0 for ; Tue, 12 Mar 2024 05:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710244838; x=1710849638; 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=L38ZpeqrnQf5G7QbLdyyGvqTH1z3OLp2yK52MSGKno0=; b=dDijNXsXjrfSpWpWuhtzdfnHWCS0cWcyVxRCqIfJPRysfV2FihF4Tu99gAQ4AXOoQm Y1njlZciLwGXWZXTqBdcS8aR4LbSNiML3tFQIjCa9tFZF9imMY8RTEDBk7wGYd7MZ/vs 8XZYzHB47+zEpVJ+ygkHOtNf0ML5sZtXgaIIY99JbbE6PN13rpcIn+tU3E6pBV0FVhdd 6Y4ejpfR+nk4SN8O4VaVryCSMf/lT/VtyjC5zVV5FeCuImFnDd7IxkMKUyPiajWj3ue+ 5u4pikAQznjWPUdgXmY2zrm+MB35DOATdeMowd95azm9rvW2C21OiDm9O0E/euT0++sd KxNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710244838; x=1710849638; 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=L38ZpeqrnQf5G7QbLdyyGvqTH1z3OLp2yK52MSGKno0=; b=NpvrkAqftwocA+MraEEBt/+bCjpAYJSYFgPnAqqV42iF6oIRNWgruAwH5ZvzGfO5+d H1g7h1TtD7CdJx1jqVzSdbD/vybSl8YZYBVJnpkb0QnNjyVXNXi58MsnPR3+KMd4LQWf VQGuAWJ4hoL+dCoIzpmQ1RIM+r2wEosjeV+VPX4x9A+5b+jVHYjb887QBCVxEBYJzZi3 Q+APxGwQOCzBA3effOTWXtle/MlWFPBejYUmnll8BZh5QBMH8//rjId8vwT+NcyF0tFO 5HKIDeqByC4rBifkyqbo3A4zRhdUhMd44qRwAZE4jcG/oaBPY0ZhKbIDOBQBQg5AZh5c zGlw== X-Gm-Message-State: AOJu0Yx0uSdJn3YNpc09YTX+5Ir2lHfCdvnO16NW5/uepgLfN3hqLeTr 45h2rZseBk3oOIHLr7a9TRJNfvHOlL/Zb52Cowdkz3eyKjPabJXg26LZJWfQ9aiw0rOXhxiblOp 91EMkwG4FK3V8khMP/wgKyomi62Y8JnBoL4Dp+w== X-Google-Smtp-Source: AGHT+IE2UJBkoy+HftRTpBSak1Z/4P6yYWzpnhulKNTJ99S80BeTPzaaFqJPXGxgl2PW20JtyIzcR2aKuhNSHPj8NPM= X-Received: by 2002:a17:906:b84c:b0:a46:29d8:40fb with SMTP id ga12-20020a170906b84c00b00a4629d840fbmr4330070ejb.22.1710244837942; Tue, 12 Mar 2024 05:00:37 -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: Mario Marietto Date: Tue, 12 Mar 2024 13:00:01 +0100 Message-ID: Subject: Re: VNC Viewer on Windows: Unable to access VMs GUI To: Odhiambo Washington Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="0000000000000b6d680613756835" X-Spamd-Bar: - X-Spamd-Result: default: False [-1.97 / 15.00]; URI_COUNT_ODD(1.00)[27]; HTTP_TO_IP(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.985]; NEURAL_HAM_LONG(-0.98)[-0.982]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::634:from] X-Rspamd-Queue-Id: 4TvBzr1zj8z4VQl --0000000000000b6d680613756835 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Try the procedure explained below to have the latest bhyve version well patched. Lets create these script files : 1) build_branch_releng-140 : set -e set -u readonly script_path=3D"$(cd "$(dirname "${0}")" && pwd)" readonly branch=3D"${1?Missing $(usage)}" shift echo $branch cd /usr/corvin-src-releng-140 git fetch --all --prune git checkout -f "${branch}" ${script_path}/build_releng_140 "$@" 2) build_releng_140 : #!/bin/sh usage() { cat >&2 << EOF Usage: ${0} [--no-bhf] [--reboot] [--verbose] [--without-kernel] Builds bhyve EOF exit 1 } build_module() { local _path _path=3D"${1}" # change to module path cd "${_path}" # clean module if test "${clean}" =3D "true"; then make clean > "${cmd_redirect}" 2>&1 fi # build module make > "${cmd_redirect}" 2>&1 # install module make install > "${cmd_redirect}" } build() { build_module "${src_dir}/include" build_module "${src_dir}/lib/libvmmapi" build_module "${src_dir}/sys/modules/vmm" # build kernel if test "${with_kernel}" =3D "true"; then cd "${src_dir}" local kern_opts kern_opts=3D"-j$(sysctl -n hw.ncpu)" if test "${with_bhf}" =3D "true"; then kern_opts=3D"${kern_opts} KERNCONF=3DBHF" fi if ! test "${clean}" =3D "true"; then kern_opts=3D"${kern_opts} NO_CLEAN=3DYES" fi make kernel ${kern_opts} > "${cmd_redirect}" 2>&1 fi build_module "${src_dir}/usr.sbin/bhyve" build_module "${src_dir}/usr.sbin/bhyvectl" build_module "${src_dir}/usr.sbin/bhyveload" if test "${with_reboot}" =3D "true"; then reboot fi } set -e set -u while test $# -gt 0; do case "${1-}" in --clean) clean=3D"true" shift ;; --reboot) with_reboot=3D"true" shift ;; --src-dir=3D*) src_dir=3D"${1#*=3D}" shift ;; --verbose) cmd_redirect=3D"/dev/stdout" shift ;; --without-bhf) with_bhf=3D"false" shift ;; --without-kernel) with_kernel=3D"false" shift ;; *) usage ;; esac done readonly clean=3D"${clean-"false"}" readonly cmd_redirect=3D"${cmd_redirect-"/dev/null"}" readonly src_dir=3D"${src_dir-"/usr/corvin-src-releng-140"}" echo $src_dir readonly with_bhf=3D"${with_bhf-"true"}" readonly with_kernel=3D"${with_kernel-"true"}" readonly with_reboot=3D"${with_reboot-"false"}" build 3) compile-bhyve-releng-140 : cd /usr/ mv src src-old git clone https://github.com/beckhoff/freebsd-src /usr/corvin-src-releng-14= 0 cd /usr/corvin-src-releng-140 /build_branch_releng-140 origin/phab/corvink/14.0/nvidia-wip --without-bhf --verbose and run : ./compile-bhyve-releng-140 (on FreeBSD 14.0) On Tue, Mar 12, 2024 at 12:53=E2=80=AFPM Mario Marietto wrote: > Maybe because some patches haven't been upstreamed to 14.0 branch. > > On Tue, Mar 12, 2024 at 12:49=E2=80=AFPM Odhiambo Washington > wrote: > >> Actually, I am trying to figure out why they do not work after upgrade >> from FreeBSD 13 to 14. They used to work before. >> History: >> 1. My FreeBSD host lives in a Data Centre several kilometers from me. I >> only access it via SSH. >> 2. My FreeBSD host does not have a keyboard, mouse, or screen attached t= o >> it. >> 3. I use VNC Viewer to connect to the VMs like HOST_IP:PORT >> >> >> On Tue, Mar 12, 2024 at 2:36=E2=80=AFPM Mario Marietto >> wrote: >> >>> Hello my friend Odhiambo, >>> >>> you can try to pass your keyboard and mouse to a specific USB to pci >>> adapter,using an USB splitter to attach both the input devices. Actuall= y >>> I'm using the one integrated on my nvidia gpu,RTX 2080 ti,that's : >>> >>> 02:00.0 VGA compatible controller: NVIDIA Corporation TU102 [GeForce RT= X >>> 2080 Ti] >>> 02:00.1 Audio device: NVIDIA Corporation TU102 High Definition Audio >>> Controller >>> *02:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Host >>> Controller* >>> 02:00.3 Serial bus controller: NVIDIA Corporation TU102 USB Type-C UCSI >>> Controller >>> >>> For sure you will add the PCI address of the board between your bhyve >>> parameters,for example in my case : >>> >>> -s 8:2,passthru,2/0/2 \ >>> >>> A single hardware solution would be a pcie riser which splits the pcie >>> port. >>> >>> >>> I've asked for a good USB controller some time ago : >>> >>> >>> >>> https://forums.freebsd.org/threads/im-looking-for-a-good-usb-controller= -3-0-4-ports-self-powered-compatible-with-freebsd.83323/ >>> >>> >>> If it=E2=80=99s only mouse and keyboard you could use bhyves virtio-inp= ut >>> emulation. >>> >>> >>> Corvin included virtio-input support in his github. >>> >>> >>> He committed virtio-input to 13.2 and 14.0 upstream. >>> >>> >>> From =E2=80=9Cman bhyve=E2=80=9D >>> >>> >>> >>> https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&apropos=3D0&sektion= =3D8&manpath=3DFreeBSD+14.0-CURRENT&arch=3Ddefault&format=3Dhtml >>> ): >>> >>> >>> Virtio input device backends: >>> >>> >>> >>> */dev/input/eventX* >>> >>> Send input events of */dev/input/eventX* to >>> guest >>> >>> by VirtIO Input Interface. >>> >>> On Tue, Mar 12, 2024 at 11:39=E2=80=AFAM Odhiambo Washington >>> wrote: >>> >>>> >>>> Even with this, my mouse pointer doesn't work: >>>> >>>> # Linux Guest >>>> bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H -A \ >>>> -s 0,hostbridge \ >>>> -s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-12.5.0-amd64-DVD-1.iso \ >>>> -s 4,virtio-blk,/usr/local/bhyve-vms/Debian/debian.img \ >>>> -s 5,virtio-net,tap4 \ >>>> -s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ >>>> -s 29,fbuf,tcp=3D0.0.0.0:5905,w=3D1024,h=3D768 \ >>>> -s 30,xhci,tablet \ >>>> -s 31,lpc -l com1,stdio \ >>>> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ >>>> debian >>>> >>>> >>>> >>>> On Wed, Feb 14, 2024 at 3:47=E2=80=AFPM Mario Marietto >>> > wrote: >>>> >>>>> -s 3,fbuf,tcp=3D0.0.0.0:59 *15*,w=3D1600,h=3D950= \ >>>>> -s 10,virtio-net,tap*15* \ >>>>> *vm15* < /dev/null & sleep 2 && vncviewer *0:15* >>>>> >>>>> On Wed, Feb 14, 2024 at 1:19=E2=80=AFPM Odhiambo Washington < >>>>> odhiambo@gmail.com> wrote: >>>>> >>>>>> Hellos, >>>>>> >>>>>> When I was still on FreeBSD 13.2-RELEASE I was able to access some >>>>>> Linux VMs GUI using VNC Viewer on my Windows PC. >>>>>> After I upgraded to 14-RELEASE, this changed: I can connect to the >>>>>> VMs, but the GUI desktop is frozen. The mouse cursor isn't moving at= all >>>>>> and the Desktop doesn't load like before. >>>>>> I start all my VMs the same way: >>>>>> >>>>>> bhyve -c N -m NG -w -H \ >>>>>> -s 0,hostbridge \ >>>>>> -s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname.img \ >>>>>> -s 5,virtio-net,tapN \ >>>>>> -s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ >>>>>> -s 29,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \ >>>>>> -s 30,xhci,tablet \ >>>>>> -s 31,lpc -l com1,stdio \ >>>>>> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ >>>>>> distroname >>>>>> >>>>>> I would then connect to a.b.c.d:59xx using VNC Viewer and I'd get th= e >>>>>> Linux/Windows Desktop. >>>>>> Not anymore! >>>>>> >>>>>> Is there something I need to do to fix the issue? >>>>>> >>>>>> >>>>>> -- >>>>>> Best regards, >>>>>> Odhiambo WASHINGTON, >>>>>> Nairobi,KE >>>>>> +254 7 3200 0004/+254 7 2274 3223 >>>>>> In an Internet failure case, the #1 suspect is a constant: DNS. >>>>>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) >>>>>> [How to ask smart questions: >>>>>> http://www.catb.org/~esr/faqs/smart-questions.html] >>>>>> >>>>> >>>>> >>>>> -- >>>>> Mario. >>>>> >>>> >>>> >>>> -- >>>> Best regards, >>>> Odhiambo WASHINGTON, >>>> Nairobi,KE >>>> +254 7 3200 0004/+254 7 2274 3223 >>>> In an Internet failure case, the #1 suspect is a constant: DNS. >>>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) >>>> [How to ask smart questions: >>>> http://www.catb.org/~esr/faqs/smart-questions.html] >>>> >>> >>> >>> -- >>> Mario. >>> >> >> >> -- >> Best regards, >> Odhiambo WASHINGTON, >> Nairobi,KE >> +254 7 3200 0004/+254 7 2274 3223 >> In an Internet failure case, the #1 suspect is a constant: DNS. >> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) >> [How to ask smart questions: >> http://www.catb.org/~esr/faqs/smart-questions.html] >> > > > -- > Mario. > --=20 Mario. --0000000000000b6d680613756835 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Try the procedure explained below to have the latest = bhyve version well patched. Lets create these script files :

1) build_branch_releng-140 :

set -e
set -u

readonly script_path=3D"$(cd "$(dirname "${0}")" &= amp;& pwd)"
readonly branch=3D"${1?Missing <branch>$(usage)}"
shift
echo $branch

cd /usr/corvin-src-releng-140
git fetch --all --prune
git checkout -f "${branch}"

${script_path}/build_releng_140 "$@"


2) build_releng_140 :


#!/bin/sh
usage() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cat >&2 << EOF
Usage: ${0} [--no-bhf] [--reboot] [--verbose] [--without-kernel]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Builds bhyve
EOF
=C2=A0 =C2=A0 =C2=A0 =C2=A0 exit 1
}

build_module() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 local _path
=C2=A0 =C2=A0 =C2=A0 =C2=A0 _path=3D"${1}"

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # change to module path
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cd "${_path}"

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # clean module
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${clean}" =3D "true&quo= t;; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 make clean > &qu= ot;${cmd_redirect}" 2>&1
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # build module
=C2=A0 =C2=A0 =C2=A0 =C2=A0 make > "${cmd_redirect}" 2>&= ;1

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # install module
=C2=A0 =C2=A0 =C2=A0 =C2=A0 make install > "${cmd_redirect}" }

build() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/include"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/lib/libvmmapi&quo= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/sys/modules/vmm&q= uot;

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # build kernel
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${with_kernel}" =3D "tr= ue"; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cd "${src_dir}= "
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 local kern_opts
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 kern_opts=3D"-= j$(sysctl -n hw.ncpu)"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${wit= h_bhf}" =3D "true"; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 kern_opts=3D"${kern_opts} KERNCONF=3DBHF"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fi
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if ! test "${c= lean}" =3D "true"; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 kern_opts=3D"${kern_opts} NO_CLEAN=3DYES"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fi
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 make kernel ${kern_= opts} > "${cmd_redirect}" 2>&1
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi

=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/usr.sbin/bhyve&qu= ot;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/usr.sbin/bhyvectl= "
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/usr.sbin/bhyveloa= d"

=C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${with_reboot}" =3D "tr= ue"; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 reboot
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi
}

set -e
set -u

while test $# -gt 0; do
=C2=A0 =C2=A0 =C2=A0 =C2=A0 case "${1-}" in
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --clean)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 clean=3D"true"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --reboot)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 with_reboot=3D"true"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --src-dir=3D*)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 src_dir=3D"${1#*=3D}"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --verbose)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 cmd_redirect=3D"/dev/stdout"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --without-bhf)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 with_bhf=3D"false"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --without-kernel) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 with_kernel=3D"false"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 usage
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 esac
done

readonly clean=3D"${clean-"false"}"
readonly cmd_redirect=3D"${cmd_redirect-"/dev/null"}" readonly src_dir=3D"${src_dir-"/usr/corvin-src-releng-140"}&= quot;
echo $src_dir
readonly with_bhf=3D"${with_bhf-"true"}"
readonly with_kernel=3D"${with_kernel-"true"}"
readonly with_reboot=3D"${with_reboot-"false"}"
build


3) compile-bhyve-releng-140 :


cd /usr/
mv src src-old
git clone https://github.com/beckhoff/freebsd-src /usr/co= rvin-src-releng-140
cd /usr/corvin-src-releng-140
/build_branch_releng-140 origin/phab/corvink/14.0/nvidia-wip --without-bhf = --verbose


and run : ./compile-bhyve-releng-140 (on FreeBSD 14.0)

On Tue, Mar 12,= 2024 at 12:53=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
Maybe because some patch= es haven't been upstreamed to 14.0 branch.

On Tue, Mar 12, 2024 at 1= 2:49=E2=80=AFPM Odhiambo Washington <odhiambo@gmail.com> wrote:
Actually, I am= trying to figure out why they do not work after upgrade from FreeBSD 13 to= 14. They used to work before.
History:
1. My FreeBSD h= ost lives in a Data Centre several kilometers from me. I only access it via= SSH.
2. My FreeBSD host does not have a keyboard, mouse, or scre= en attached to it.
3. I use VNC Viewer to connect to the VMs like= HOST_IP:PORT


On Tue, Mar 12, 2024 at 2:36=E2=80=AFPM Mario= Marietto <m= arietto2008@gmail.com> wrote:
Hello my friend Odhiambo,
<= div>
you can try to pass your keyboard and mouse to a specifi= c USB to pci adapter,using an USB splitter to attach both the input devices= . Actually I'm using the one integrated on my nvidia gpu,RTX 2080 ti,th= at's :

02:00.0 VGA compatible controller: = NVIDIA Corporation TU102 [GeForce RTX 2080 Ti]
02:00.1 Audio device: NVI= DIA Corporation TU102 High Definition Audio Controller
02:00.2 USB co= ntroller: NVIDIA Corporation TU102 USB 3.1 Host Controller
02:00.3 S= erial bus controller: NVIDIA Corporation TU102 USB Type-C UCSI Controller

For sure you will add the PCI address of the b= oard between your bhyve parameters,for example in my case :

<= /div>
-s 8:2,passthru,2/0/2 \

A single hardware solution would be a pcie riser which splits the p= cie port.


I've asked for a = good USB controller some time ago :


https://forum= s.freebsd.org/threads/im-looking-for-a-good-usb-controller-3-0-4-ports-self= -powered-compatible-with-freebsd.83323/


If it=E2=80=99s only mouse and keyboard you could us= e bhyves virtio-input emulation.


Corvin included virtio-input support in his github.<= /p>


He committed virtio-input to 13.2 and 14.0 upstream.=


From =E2=80=9Cman bhyve=E2=80=9D


https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&apropos=3D0&sek= tion=3D8&manpath=3DFreeBSD+14.0-CURRENT&arch=3Ddefault&format= =3Dhtml):


=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Virtio=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 input device backends:

=C2=A0<= /span>

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /dev/input/eventX

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 Send input=C2=A0=C2=A0=C2=A0 events of /dev/input/eventX to guest

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 by=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 VirtIO Inp= ut Interface.


On Tue, Mar 12, 2024 at 11:39=E2=80=AFAM Odhiambo W= ashington <odhia= mbo@gmail.com> wrote:

Even with thi= s, my mouse pointer doesn't work:

= # Linux Guest
bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H = -A \
-s 0,hostbridge \
-s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-= 12.5.0-amd64-DVD-1.iso \
-s 4,virtio-blk,/usr/local/bhyve-vms/Debian/deb= ian.img \
-s 5,virtio-net,tap4 \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/= dsp \
-s 29,fbuf,tcp=3D0.0.0.0:5905,w=3D1024,h=3D768 \
-s 30,xhci,tablet \
-s 31,lpc -l= com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \<= br>debian


On Wed, = Feb 14, 2024 at 3:47=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
<= div>-s 3,fbuf,tcp=3D0.0.0.0:5915,w=3D1600,h=3D950 \=
-s 10,virtio-net,tap15 \
vm15<= /b> < /dev/null & sleep 2 && vncviewer 0:15
On = Wed, Feb 14, 2024 at 1:19=E2=80=AFPM Odhiambo Washington <odhiambo@gmail.com> wrote:=
Hellos,

When I was still on FreeBSD 13.2-RELEASE I was= able to access some Linux VMs GUI using=C2=A0VNC Viewer on my Windows PC.<= /div>
After I upgraded to 14-RELEASE, this changed: I can connect to th= e VMs, but the GUI desktop is frozen. The mouse cursor isn't moving at = all and the Desktop doesn't load like before.
I start all my = VMs the same way:

bhyve -c N -m NG -w -H \
-s 0= ,hostbridge \
-s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname= .img \
-s 5,virtio-net,tapN \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp= \
-s 29,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \
-s 30,xhci,table= t \
-s 31,lpc -l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmwa= re/BHYVE_UEFI.fd \
distroname

I would then conn= ect to a.b.c.d:59xx using VNC Viewer and I'd get the Linux/Windows Desk= top.
Not anymore!

Is there somet= hing I need to do to fix the=C2=A0issue?


--
Best regards,<= br>Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223<= /div>
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a c= onstant: DNS.
"Oh, the cruf= t.",=C2=A0egrep -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2= =A0:-)
[How to ask smart = questions:=C2=A0http://www.ca= tb.org/~esr/faqs/smart-questions.html]


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
= "Oh, the cruft.",=C2=A0egre= p -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/= =C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-que= stions.html]


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
= "Oh, the cruft.",=C2=A0egre= p -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/= =C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-que= stions.html]


--
Mario.


--
Mario.
--0000000000000b6d680613756835-- From nobody Tue Mar 12 13:43:53 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 4TvFHh5g8Bz5DsDL for ; Tue, 12 Mar 2024 13:44:32 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) (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 4TvFHh2Qp7z4hgS for ; Tue, 12 Mar 2024 13:44:32 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2d28051376eso56753941fa.0 for ; Tue, 12 Mar 2024 06:44:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710251070; x=1710855870; 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=VS9z0f0SHtH14Xe0fi6fp6SrmsBq0axO4tknM0rgSGc=; b=ZMywH5dL1X80PcnpbOcGoevbO7K5voqE9YuMOUPsN1Xt4cqdQYiUEUAvH+x2i5B4ZW b1nz2q6+UT2cRDUgGp4ShiwbT8VoxlhNRhEyqR70rp98283QxEhPQ4ACkZ6wt8eU6Tkw Y+MamdvpXrJEtHmqpPBnKVNEYoZ0WeEkOIicNrtlVn+ky2ESwsIiC4h+D+leWO6UkPgn NKopJV8K4C72+kDQxtTxSUWnDuETxtLG55+MfhrTWzCQ9nJSbviNDNFADu4iLsNE5Gos bdttCnP0ic8dqt1/XGgrEShQFlmuGtgOg3e4OOsgnCeVE8By2TgyNQjQyscuxQwgyNOp SfXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710251070; x=1710855870; 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=VS9z0f0SHtH14Xe0fi6fp6SrmsBq0axO4tknM0rgSGc=; b=cJtJU2t2r3dML3B2KWyQbdvRKd3dmdD2cnYBCKyZ4x8NQIrK52CjadXoE6N+ae7Uv/ e35ACC6hqoewS0Yj8K/elHJ1tSesNLH9wjw9S28fsXnom1TiVRO7Y7CjoSvzqPufQ64D tmoDbY6cDxm5lkydKHZ5ZV1GN3fJ5kuMr2oAsaWYWjDxAEWm5NYQAukDeznSRlAucinf lrIfi0jJGCyzm4B9/vgAM+Wk4dWdCsD0iYl2z0Ka5Xbx7UEkpydT787cv4z6cNqKOmK6 p9Aj8HFtPlFS6R92LQIihbSLNka44WZnv5PfK5RTfG3plKDliAI/Ll9z/IEo/m45vFCj PyvQ== X-Gm-Message-State: AOJu0YyQD7tq4okWkYUAq34GqxzjOmWDT+NgH4NeiKoAq350vKCVK/Pt Axd3rAem/l1kAf1BbSVXi+54BXYHm10JZ97VHZBfM4oJeFh4RTBHRRH1b1kEehzRSv9FRg1iIF7 HKGo2WnpNM9nM+2TOyADk8PT46w0= X-Google-Smtp-Source: AGHT+IEP2OsyXTI5K2lfLZdIerXVKWOgpji2DgmPV8W5CnVkZTWbf9IHc5DUx6giB/P+ah9CzY43k3s36AXmwji9GVY= X-Received: by 2002:a2e:9109:0:b0:2d4:5c03:5ccb with SMTP id m9-20020a2e9109000000b002d45c035ccbmr1103212ljg.10.1710251070066; Tue, 12 Mar 2024 06:44:30 -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: Odhiambo Washington Date: Tue, 12 Mar 2024 16:43:53 +0300 Message-ID: Subject: Re: VNC Viewer on Windows: Unable to access VMs GUI To: Mario Marietto Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="000000000000821caf061376dbca" X-Spamd-Bar: ---- 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:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4TvFHh2Qp7z4hgS --000000000000821caf061376dbca Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I run 14-RELEASE and would not like to go to -STABLE. On Tue, Mar 12, 2024 at 3:00=E2=80=AFPM Mario Marietto wrote: > Try the procedure explained below to have the latest bhyve version well > patched. Lets create these script files : > > 1) build_branch_releng-140 : > > set -e > set -u > > readonly script_path=3D"$(cd "$(dirname "${0}")" && pwd)" > readonly branch=3D"${1?Missing $(usage)}" > shift > echo $branch > > cd /usr/corvin-src-releng-140 > git fetch --all --prune > git checkout -f "${branch}" > > ${script_path}/build_releng_140 "$@" > > > 2) build_releng_140 : > > > #!/bin/sh > usage() { > cat >&2 << EOF > Usage: ${0} [--no-bhf] [--reboot] [--verbose] [--without-kernel] > Builds bhyve > EOF > exit 1 > } > > build_module() { > local _path > _path=3D"${1}" > > # change to module path > cd "${_path}" > > # clean module > if test "${clean}" =3D "true"; then > make clean > "${cmd_redirect}" 2>&1 > fi > > # build module > make > "${cmd_redirect}" 2>&1 > > # install module > make install > "${cmd_redirect}" > } > > build() { > build_module "${src_dir}/include" > build_module "${src_dir}/lib/libvmmapi" > build_module "${src_dir}/sys/modules/vmm" > > # build kernel > if test "${with_kernel}" =3D "true"; then > cd "${src_dir}" > local kern_opts > kern_opts=3D"-j$(sysctl -n hw.ncpu)" > if test "${with_bhf}" =3D "true"; then > kern_opts=3D"${kern_opts} KERNCONF=3DBHF" > fi > if ! test "${clean}" =3D "true"; then > kern_opts=3D"${kern_opts} NO_CLEAN=3DYES" > fi > make kernel ${kern_opts} > "${cmd_redirect}" 2>&1 > fi > > build_module "${src_dir}/usr.sbin/bhyve" > build_module "${src_dir}/usr.sbin/bhyvectl" > build_module "${src_dir}/usr.sbin/bhyveload" > > if test "${with_reboot}" =3D "true"; then > reboot > fi > } > > set -e > set -u > > while test $# -gt 0; do > case "${1-}" in > --clean) > clean=3D"true" > shift > ;; > --reboot) > with_reboot=3D"true" > shift > ;; > --src-dir=3D*) > src_dir=3D"${1#*=3D}" > shift > ;; > --verbose) > cmd_redirect=3D"/dev/stdout" > shift > ;; > --without-bhf) > with_bhf=3D"false" > shift > ;; > --without-kernel) > with_kernel=3D"false" > shift > ;; > *) > usage > ;; > esac > done > > readonly clean=3D"${clean-"false"}" > readonly cmd_redirect=3D"${cmd_redirect-"/dev/null"}" > readonly src_dir=3D"${src_dir-"/usr/corvin-src-releng-140"}" > echo $src_dir > readonly with_bhf=3D"${with_bhf-"true"}" > readonly with_kernel=3D"${with_kernel-"true"}" > readonly with_reboot=3D"${with_reboot-"false"}" > build > > > 3) compile-bhyve-releng-140 : > > > cd /usr/ > mv src src-old > git clone https://github.com/beckhoff/freebsd-src > /usr/corvin-src-releng-140 > cd /usr/corvin-src-releng-140 > /build_branch_releng-140 origin/phab/corvink/14.0/nvidia-wip --without-bh= f > --verbose > > > and run : ./compile-bhyve-releng-140 (on FreeBSD 14.0) > > On Tue, Mar 12, 2024 at 12:53=E2=80=AFPM Mario Marietto > wrote: > >> Maybe because some patches haven't been upstreamed to 14.0 branch. >> >> On Tue, Mar 12, 2024 at 12:49=E2=80=AFPM Odhiambo Washington >> wrote: >> >>> Actually, I am trying to figure out why they do not work after upgrade >>> from FreeBSD 13 to 14. They used to work before. >>> History: >>> 1. My FreeBSD host lives in a Data Centre several kilometers from me. I >>> only access it via SSH. >>> 2. My FreeBSD host does not have a keyboard, mouse, or screen attached >>> to it. >>> 3. I use VNC Viewer to connect to the VMs like HOST_IP:PORT >>> >>> >>> On Tue, Mar 12, 2024 at 2:36=E2=80=AFPM Mario Marietto >>> wrote: >>> >>>> Hello my friend Odhiambo, >>>> >>>> you can try to pass your keyboard and mouse to a specific USB to pci >>>> adapter,using an USB splitter to attach both the input devices. Actual= ly >>>> I'm using the one integrated on my nvidia gpu,RTX 2080 ti,that's : >>>> >>>> 02:00.0 VGA compatible controller: NVIDIA Corporation TU102 [GeForce >>>> RTX 2080 Ti] >>>> 02:00.1 Audio device: NVIDIA Corporation TU102 High Definition Audio >>>> Controller >>>> *02:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Host >>>> Controller* >>>> 02:00.3 Serial bus controller: NVIDIA Corporation TU102 USB Type-C UCS= I >>>> Controller >>>> >>>> For sure you will add the PCI address of the board between your bhyve >>>> parameters,for example in my case : >>>> >>>> -s 8:2,passthru,2/0/2 \ >>>> >>>> A single hardware solution would be a pcie riser which splits the pcie >>>> port. >>>> >>>> >>>> I've asked for a good USB controller some time ago : >>>> >>>> >>>> >>>> https://forums.freebsd.org/threads/im-looking-for-a-good-usb-controlle= r-3-0-4-ports-self-powered-compatible-with-freebsd.83323/ >>>> >>>> >>>> If it=E2=80=99s only mouse and keyboard you could use bhyves virtio-in= put >>>> emulation. >>>> >>>> >>>> Corvin included virtio-input support in his github. >>>> >>>> >>>> He committed virtio-input to 13.2 and 14.0 upstream. >>>> >>>> >>>> From =E2=80=9Cman bhyve=E2=80=9D >>>> >>>> >>>> >>>> https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&apropos=3D0&sektion= =3D8&manpath=3DFreeBSD+14.0-CURRENT&arch=3Ddefault&format=3Dhtml >>>> ): >>>> >>>> >>>> Virtio input device backends: >>>> >>>> >>>> >>>> */dev/input/eventX* >>>> >>>> Send input events of */dev/input/eventX* to >>>> guest >>>> >>>> by VirtIO Input Interface. >>>> >>>> On Tue, Mar 12, 2024 at 11:39=E2=80=AFAM Odhiambo Washington < >>>> odhiambo@gmail.com> wrote: >>>> >>>>> >>>>> Even with this, my mouse pointer doesn't work: >>>>> >>>>> # Linux Guest >>>>> bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H -A \ >>>>> -s 0,hostbridge \ >>>>> -s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-12.5.0-amd64-DVD-1.iso = \ >>>>> -s 4,virtio-blk,/usr/local/bhyve-vms/Debian/debian.img \ >>>>> -s 5,virtio-net,tap4 \ >>>>> -s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ >>>>> -s 29,fbuf,tcp=3D0.0.0.0:5905,w=3D1024,h=3D768 \ >>>>> -s 30,xhci,tablet \ >>>>> -s 31,lpc -l com1,stdio \ >>>>> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ >>>>> debian >>>>> >>>>> >>>>> >>>>> On Wed, Feb 14, 2024 at 3:47=E2=80=AFPM Mario Marietto >>>> > wrote: >>>>> >>>>>> -s 3,fbuf,tcp=3D0.0.0.0:59 *15*,w=3D1600,h=3D95= 0 \ >>>>>> -s 10,virtio-net,tap*15* \ >>>>>> *vm15* < /dev/null & sleep 2 && vncviewer *0:15* >>>>>> >>>>>> On Wed, Feb 14, 2024 at 1:19=E2=80=AFPM Odhiambo Washington < >>>>>> odhiambo@gmail.com> wrote: >>>>>> >>>>>>> Hellos, >>>>>>> >>>>>>> When I was still on FreeBSD 13.2-RELEASE I was able to access some >>>>>>> Linux VMs GUI using VNC Viewer on my Windows PC. >>>>>>> After I upgraded to 14-RELEASE, this changed: I can connect to the >>>>>>> VMs, but the GUI desktop is frozen. The mouse cursor isn't moving a= t all >>>>>>> and the Desktop doesn't load like before. >>>>>>> I start all my VMs the same way: >>>>>>> >>>>>>> bhyve -c N -m NG -w -H \ >>>>>>> -s 0,hostbridge \ >>>>>>> -s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname.img \ >>>>>>> -s 5,virtio-net,tapN \ >>>>>>> -s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ >>>>>>> -s 29,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \ >>>>>>> -s 30,xhci,tablet \ >>>>>>> -s 31,lpc -l com1,stdio \ >>>>>>> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ >>>>>>> distroname >>>>>>> >>>>>>> I would then connect to a.b.c.d:59xx using VNC Viewer and I'd get >>>>>>> the Linux/Windows Desktop. >>>>>>> Not anymore! >>>>>>> >>>>>>> Is there something I need to do to fix the issue? >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Best regards, >>>>>>> Odhiambo WASHINGTON, >>>>>>> Nairobi,KE >>>>>>> +254 7 3200 0004/+254 7 2274 3223 >>>>>>> In an Internet failure case, the #1 suspect is a constant: DNS. >>>>>>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-= ) >>>>>>> [How to ask smart questions: >>>>>>> http://www.catb.org/~esr/faqs/smart-questions.html] >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Mario. >>>>>> >>>>> >>>>> >>>>> -- >>>>> Best regards, >>>>> Odhiambo WASHINGTON, >>>>> Nairobi,KE >>>>> +254 7 3200 0004/+254 7 2274 3223 >>>>> In an Internet failure case, the #1 suspect is a constant: DNS. >>>>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) >>>>> [How to ask smart questions: >>>>> http://www.catb.org/~esr/faqs/smart-questions.html] >>>>> >>>> >>>> >>>> -- >>>> Mario. >>>> >>> >>> >>> -- >>> Best regards, >>> Odhiambo WASHINGTON, >>> Nairobi,KE >>> +254 7 3200 0004/+254 7 2274 3223 >>> In an Internet failure case, the #1 suspect is a constant: DNS. >>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) >>> [How to ask smart questions: >>> http://www.catb.org/~esr/faqs/smart-questions.html] >>> >> >> >> -- >> Mario. >> > > > -- > Mario. > --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] --000000000000821caf061376dbca Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I run 14-RELEASE and would not like to go to -STABLE.
On Tu= e, Mar 12, 2024 at 3:00=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
Try the pr= ocedure explained below to have the latest bhyve version well patched. Lets= create these script files :

1) build_branch_releng-140 :

set -e
set -u

readonly script_path=3D"$(cd "$(dirname "${0}")" &= amp;& pwd)"
readonly branch=3D"${1?Missing <branch>$(usage)}"
shift
echo $branch

cd /usr/corvin-src-releng-140
git fetch --all --prune
git checkout -f "${branch}"

${script_path}/build_releng_140 "$@"


2) build_releng_140 :


#!/bin/sh
usage() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cat >&2 << EOF
Usage: ${0} [--no-bhf] [--reboot] [--verbose] [--without-kernel]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Builds bhyve
EOF
=C2=A0 =C2=A0 =C2=A0 =C2=A0 exit 1
}

build_module() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 local _path
=C2=A0 =C2=A0 =C2=A0 =C2=A0 _path=3D"${1}"

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # change to module path
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cd "${_path}"

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # clean module
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${clean}" =3D "true&quo= t;; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 make clean > &qu= ot;${cmd_redirect}" 2>&1
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # build module
=C2=A0 =C2=A0 =C2=A0 =C2=A0 make > "${cmd_redirect}" 2>&= ;1

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # install module
=C2=A0 =C2=A0 =C2=A0 =C2=A0 make install > "${cmd_redirect}" }

build() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/include"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/lib/libvmmapi&quo= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/sys/modules/vmm&q= uot;

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # build kernel
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${with_kernel}" =3D "tr= ue"; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cd "${src_dir}= "
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 local kern_opts
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 kern_opts=3D"-= j$(sysctl -n hw.ncpu)"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${wit= h_bhf}" =3D "true"; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 kern_opts=3D"${kern_opts} KERNCONF=3DBHF"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fi
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if ! test "${c= lean}" =3D "true"; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 kern_opts=3D"${kern_opts} NO_CLEAN=3DYES"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fi
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 make kernel ${kern_= opts} > "${cmd_redirect}" 2>&1
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi

=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/usr.sbin/bhyve&qu= ot;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/usr.sbin/bhyvectl= "
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/usr.sbin/bhyveloa= d"

=C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${with_reboot}" =3D "tr= ue"; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 reboot
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi
}

set -e
set -u

while test $# -gt 0; do
=C2=A0 =C2=A0 =C2=A0 =C2=A0 case "${1-}" in
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --clean)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 clean=3D"true"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --reboot)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 with_reboot=3D"true"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --src-dir=3D*)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 src_dir=3D"${1#*=3D}"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --verbose)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 cmd_redirect=3D"/dev/stdout"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --without-bhf)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 with_bhf=3D"false"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --without-kernel) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 with_kernel=3D"false"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 usage
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 esac
done

readonly clean=3D"${clean-"false"}"
readonly cmd_redirect=3D"${cmd_redirect-"/dev/null"}" readonly src_dir=3D"${src_dir-"/usr/corvin-src-releng-140"}&= quot;
echo $src_dir
readonly with_bhf=3D"${with_bhf-"true"}"
readonly with_kernel=3D"${with_kernel-"true"}"
readonly with_reboot=3D"${with_reboot-"false"}"
build


3) compile-bhyve-releng-140 :


cd /usr/
mv src src-old
git clone https://github.com/beckhoff/freebsd-src /usr/co= rvin-src-releng-140
cd /usr/corvin-src-releng-140
/build_branch_releng-140 origin/phab/corvink/14.0/nvidia-wip --without-bhf = --verbose


and run : ./compile-bhyve-releng-140 (on FreeBSD 14.0)

On Tue, Mar 12,= 2024 at 12:53=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
Maybe = because some patches haven't been upstreamed to 14.0 branch.
<= br>
On Tue,= Mar 12, 2024 at 12:49=E2=80=AFPM Odhiambo Washington <odhiambo@gmail.com> wrote:
<= div>Actually, I am trying to figure out why they do not work after upgrade = from FreeBSD 13 to 14. They used to work before.
History:
1. My FreeBSD host lives in a Data Centre several kilometers from me. I = only access it via SSH.
2. My FreeBSD host does not have a keyboa= rd, mouse, or screen attached to it.
3. I use VNC Viewer to conne= ct to the VMs like HOST_IP:PORT


On Tue, Mar 12, 2024 at 2:36= =E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
Hello my friend= Odhiambo,

you can try to pass your keyboard and m= ouse to a specific USB to pci adapter,using an USB splitter to attach both = the input devices. Actually I'm using the one integrated on my nvidia g= pu,RTX 2080 ti,that's :

02:00.0 VGA compat= ible controller: NVIDIA Corporation TU102 [GeForce RTX 2080 Ti]
02:00.1 = Audio device: NVIDIA Corporation TU102 High Definition Audio Controller
= 02:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Host Controller=
02:00.3 Serial bus controller: NVIDIA Corporation TU102 USB Type-C = UCSI Controller

For sure you will add the PCI= address of the board between your bhyve parameters,for example in my case = :

-s 8:2,passthru,2/0/2 \

A single hardware solution would be a pcie riser w= hich splits the pcie port.


I've asked for a = good USB controller some time ago :


https://forum= s.freebsd.org/threads/im-looking-for-a-good-usb-controller-3-0-4-ports-self= -powered-compatible-with-freebsd.83323/


If it=E2=80=99s only mouse and keyboard you could us= e bhyves virtio-input emulation.


Corvin included virtio-input support in his github.<= /p>


He committed virtio-input to 13.2 and 14.0 upstream.=


From =E2=80=9Cman bhyve=E2=80=9D


https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&apropos=3D0&sek= tion=3D8&manpath=3DFreeBSD+14.0-CURRENT&arch=3Ddefault&format= =3Dhtml):


=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Virtio=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 input device backends:

=C2=A0<= /span>

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /dev/input/eventX

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 Send input=C2=A0=C2=A0=C2=A0 events of /dev/input/eventX to guest

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 by=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 VirtIO Inp= ut Interface.


On Tue, Mar 12, 2024 at 11:39=E2=80=AFAM Odhiambo W= ashington <odhia= mbo@gmail.com> wrote:

Even with thi= s, my mouse pointer doesn't work:

= # Linux Guest
bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H = -A \
-s 0,hostbridge \
-s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-= 12.5.0-amd64-DVD-1.iso \
-s 4,virtio-blk,/usr/local/bhyve-vms/Debian/deb= ian.img \
-s 5,virtio-net,tap4 \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/= dsp \
-s 29,fbuf,tcp=3D0.0.0.0:5905,w=3D1024,h=3D768 \
-s 30,xhci,tablet \
-s 31,lpc -l= com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \<= br>debian


On Wed, = Feb 14, 2024 at 3:47=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
<= div>-s 3,fbuf,tcp=3D0.0.0.0:5915,w=3D1600,h=3D950 \=
-s 10,virtio-net,tap15 \
vm15<= /b> < /dev/null & sleep 2 && vncviewer 0:15
On = Wed, Feb 14, 2024 at 1:19=E2=80=AFPM Odhiambo Washington <odhiambo@gmail.com> wrote:=
Hellos,

When I was still on FreeBSD 13.2-RELEASE I was= able to access some Linux VMs GUI using=C2=A0VNC Viewer on my Windows PC.<= /div>
After I upgraded to 14-RELEASE, this changed: I can connect to th= e VMs, but the GUI desktop is frozen. The mouse cursor isn't moving at = all and the Desktop doesn't load like before.
I start all my = VMs the same way:

bhyve -c N -m NG -w -H \
-s 0= ,hostbridge \
-s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname= .img \
-s 5,virtio-net,tapN \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp= \
-s 29,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \
-s 30,xhci,table= t \
-s 31,lpc -l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmwa= re/BHYVE_UEFI.fd \
distroname

I would then conn= ect to a.b.c.d:59xx using VNC Viewer and I'd get the Linux/Windows Desk= top.
Not anymore!

Is there somet= hing I need to do to fix the=C2=A0issue?


--
Best regards,<= br>Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223<= /div>
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a c= onstant: DNS.
"Oh, the cruf= t.",=C2=A0egrep -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2= =A0:-)
[How to ask smart = questions:=C2=A0http://www.ca= tb.org/~esr/faqs/smart-questions.html]


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
= "Oh, the cruft.",=C2=A0egre= p -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/= =C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-que= stions.html]


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
= "Oh, the cruft.",=C2=A0egre= p -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/= =C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-que= stions.html]


--
Mario.


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
= "Oh, the cruft.",=C2=A0egre= p -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/= =C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-que= stions.html]
--000000000000821caf061376dbca-- From nobody Tue Mar 12 13:50:27 2024 X-Original-To: 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 4TvFQW3Q5rz5DsJh for ; Tue, 12 Mar 2024 13:50:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TvFQV6BhVz4jDK for ; Tue, 12 Mar 2024 13:50:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710251426; a=rsa-sha256; cv=none; b=caamzvImZi3MKKfZlYao7uQmUrD0faXAvXrXqaAn0iNFq/O1x6h6Nzgv6939/yVDvf0Yuo hWHjC3IHWx/02kMtYZLuP9oEpxAAESVjofVYUhPcrYMCCJIgapwLSd7Aygdu4u9aYkIP/n JGvID6WBCR6Z9jF14g8+TGMJFCo2Nc1+vJFPe5xzWhVWtSdkmoa08mWUYKY6pOADs3dk+v 0XQwvj7AcetnkPHSiAiMcrKv0U/EoDzFOljGjkm7nUxEdtuEWEaY0jAAbFKBmUw+D1pume EkU6e0MjL2/c8qCh6dgnDEw/Ixwb60+Ce4Vt3mRPzanzhtE4C4GzHzGk+EotJw== 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=1710251426; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WB10DWRdWw/8YNkfCniYIfRww6BFdsAyJB4Hx2AEj4Q=; b=mDA12DI65Vhfvlt9IFjAM4rjOvgezOjZI49uuRLQtiJGylRM0iX6PvT6gvBd0Vy5TX0hc1 l6u2hZG6YgwNHyoSQ3HMCWZwmfiwkTqFREXm2Xta+Mor2fqaaQhu4JpVR+kXNE8lUYB4U6 pS4lIZysgLC+xV8p90jlq0X5f5apdUcRwU3oPi/6BZvW4L9hySJ9WX2GxFQpbwXO6qG1vA zEQRIPuLcjb6pwwAZeiWtujYZrDK7Pqak/EC2VoW5WkKDrThzgfmD3SNSwfvLpg2OafoEk OX8rlxLt8NOIzmY3PzGKR58xIjaDiI4bl2Gzm3oVgvvg7a7hUQF8IqETD9eUOQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TvFQV5pG4z1FsC for ; Tue, 12 Mar 2024 13:50:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42CDoQv2043412 for ; Tue, 12 Mar 2024 13:50:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42CDoQON043411 for virtualization@FreeBSD.org; Tue, 12 Mar 2024 13:50:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 277627] Passthru NVIDIA GeForce GTX 1080 Ti does not work Date: Tue, 12 Mar 2024 13:50:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bubnovky@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277627 --- Comment #5 from Konstantin --- Thank you very much. It works. And the last question. Why is this patch missing in the release? --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Mar 12 16:46:53 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 4TvKLr3MyLz5F7gZ for ; Tue, 12 Mar 2024 16:47:32 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (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 4TvKLr0T44z43S2 for ; Tue, 12 Mar 2024 16:47:32 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a44665605f3so812605666b.2 for ; Tue, 12 Mar 2024 09:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710262050; x=1710866850; 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=Nq/2ORzxwg7SNiSC8bMqxA93Hki1TPsGtNMgu/Rru+4=; b=hGwQ5AJ1KyAw6R/RmwqMcjYbrEsRy/kJISF8V2yCQBsZhj+l26ntNwFEwXQqHhVR6e cUwAhA6HvJvZySzGTFHxuGJ13CBvJeld+ij4m6tF/SH6LjoqzCi+ROCrpvO4UqP/pW9J luNp/Dxhongxpp7ZH17yzDPi8J5HmHEE1UyJd53ShtH4eyzJEYnJfTs0bmIFeFB0+K98 M2r3hI7pNkctMvZacRnSqQZ3prAAD+HGSRRJu17nSCVIugq2TC8x6BC5lNVhSDzujQ6a mqFC+u6ZI6pJDieUX2Kf1/bSa0gJXj3aJX4g41Boj3Uwn5n+7u3NgmyFqQQ13dpgSWiL FjAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710262050; x=1710866850; 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=Nq/2ORzxwg7SNiSC8bMqxA93Hki1TPsGtNMgu/Rru+4=; b=pmy+8NBEq7qf2Iig6yGBPT0tZaRrKze4U+MBLoZp3oCzIzJdGgxLrusEPQhJeD5OHc ZuJqf33w55VmovRcl7DdNRgKpjpzXgSBcecbwqMj7LvfiKo1taqXAi7KqtJBiMn3LKEg 7ZMu2wZhWel0SwnbZyKs9yR+9EV26FwSIzoBsYnhxaXUnY0UDxPdiZNstSSVBzN3zcBt F9qGzVp66+KWzrYQ6AUjal9o4T6rq1Nw6Zoy7dZbv8laQ0CTsHqmYs53wGUgKUxjPgGj XNpLAeVTxSLix4xAi//yOP//2Rr5zJvYSdPivr6tv0+F3O7YLoQO48qVu7bdif77Gtpq AS4A== X-Gm-Message-State: AOJu0YzRaEz1yzzcvg5/KOy43Pa+0TlakRDN1vB2asvZO7kJm6SNMfy/ Zk3+gc3tSBOY2ygkCPreh72TVfl1FHmFaLGXm06RHZ5fxwVi9Si7aCynl8BrFVI3NwjCz0NbdBE RXW7lPkMz4etP6fLt6Pn6PMEoPMm4xSeAQ6g= X-Google-Smtp-Source: AGHT+IFkebaemE8U063dC5FhFCpnXoEs5nCSaPoKsiXlNcLygwvr8ffy7G7w5p2CEvDLpGgTUW/gBa/Uvkm0/TRk0yM= X-Received: by 2002:a17:907:1681:b0:a46:1e16:316b with SMTP id cx1-20020a170907168100b00a461e16316bmr6045443ejd.66.1710262049875; Tue, 12 Mar 2024 09:47:29 -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: Mario Marietto Date: Tue, 12 Mar 2024 17:46:53 +0100 Message-ID: Subject: Re: VNC Viewer on Windows: Unable to access VMs GUI To: Odhiambo Washington Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="000000000000f4baa40613796969" X-Spamd-Bar: ---- 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:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4TvKLr0T44z43S2 --000000000000f4baa40613796969 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You will not go to stable. On Tue, Mar 12, 2024 at 2:44=E2=80=AFPM Odhiambo Washington wrote: > I run 14-RELEASE and would not like to go to -STABLE. > > On Tue, Mar 12, 2024 at 3:00=E2=80=AFPM Mario Marietto > wrote: > >> Try the procedure explained below to have the latest bhyve version well >> patched. Lets create these script files : >> >> 1) build_branch_releng-140 : >> >> set -e >> set -u >> >> readonly script_path=3D"$(cd "$(dirname "${0}")" && pwd)" >> readonly branch=3D"${1?Missing $(usage)}" >> shift >> echo $branch >> >> cd /usr/corvin-src-releng-140 >> git fetch --all --prune >> git checkout -f "${branch}" >> >> ${script_path}/build_releng_140 "$@" >> >> >> 2) build_releng_140 : >> >> >> #!/bin/sh >> usage() { >> cat >&2 << EOF >> Usage: ${0} [--no-bhf] [--reboot] [--verbose] [--without-kernel] >> Builds bhyve >> EOF >> exit 1 >> } >> >> build_module() { >> local _path >> _path=3D"${1}" >> >> # change to module path >> cd "${_path}" >> >> # clean module >> if test "${clean}" =3D "true"; then >> make clean > "${cmd_redirect}" 2>&1 >> fi >> >> # build module >> make > "${cmd_redirect}" 2>&1 >> >> # install module >> make install > "${cmd_redirect}" >> } >> >> build() { >> build_module "${src_dir}/include" >> build_module "${src_dir}/lib/libvmmapi" >> build_module "${src_dir}/sys/modules/vmm" >> >> # build kernel >> if test "${with_kernel}" =3D "true"; then >> cd "${src_dir}" >> local kern_opts >> kern_opts=3D"-j$(sysctl -n hw.ncpu)" >> if test "${with_bhf}" =3D "true"; then >> kern_opts=3D"${kern_opts} KERNCONF=3DBHF" >> fi >> if ! test "${clean}" =3D "true"; then >> kern_opts=3D"${kern_opts} NO_CLEAN=3DYES" >> fi >> make kernel ${kern_opts} > "${cmd_redirect}" 2>&1 >> fi >> >> build_module "${src_dir}/usr.sbin/bhyve" >> build_module "${src_dir}/usr.sbin/bhyvectl" >> build_module "${src_dir}/usr.sbin/bhyveload" >> >> if test "${with_reboot}" =3D "true"; then >> reboot >> fi >> } >> >> set -e >> set -u >> >> while test $# -gt 0; do >> case "${1-}" in >> --clean) >> clean=3D"true" >> shift >> ;; >> --reboot) >> with_reboot=3D"true" >> shift >> ;; >> --src-dir=3D*) >> src_dir=3D"${1#*=3D}" >> shift >> ;; >> --verbose) >> cmd_redirect=3D"/dev/stdout" >> shift >> ;; >> --without-bhf) >> with_bhf=3D"false" >> shift >> ;; >> --without-kernel) >> with_kernel=3D"false" >> shift >> ;; >> *) >> usage >> ;; >> esac >> done >> >> readonly clean=3D"${clean-"false"}" >> readonly cmd_redirect=3D"${cmd_redirect-"/dev/null"}" >> readonly src_dir=3D"${src_dir-"/usr/corvin-src-releng-140"}" >> echo $src_dir >> readonly with_bhf=3D"${with_bhf-"true"}" >> readonly with_kernel=3D"${with_kernel-"true"}" >> readonly with_reboot=3D"${with_reboot-"false"}" >> build >> >> >> 3) compile-bhyve-releng-140 : >> >> >> cd /usr/ >> mv src src-old >> git clone https://github.com/beckhoff/freebsd-src >> /usr/corvin-src-releng-140 >> cd /usr/corvin-src-releng-140 >> /build_branch_releng-140 origin/phab/corvink/14.0/nvidia-wip >> --without-bhf --verbose >> >> >> and run : ./compile-bhyve-releng-140 (on FreeBSD 14.0) >> >> On Tue, Mar 12, 2024 at 12:53=E2=80=AFPM Mario Marietto >> wrote: >> >>> Maybe because some patches haven't been upstreamed to 14.0 branch. >>> >>> On Tue, Mar 12, 2024 at 12:49=E2=80=AFPM Odhiambo Washington >>> wrote: >>> >>>> Actually, I am trying to figure out why they do not work after upgrade >>>> from FreeBSD 13 to 14. They used to work before. >>>> History: >>>> 1. My FreeBSD host lives in a Data Centre several kilometers from me. = I >>>> only access it via SSH. >>>> 2. My FreeBSD host does not have a keyboard, mouse, or screen attached >>>> to it. >>>> 3. I use VNC Viewer to connect to the VMs like HOST_IP:PORT >>>> >>>> >>>> On Tue, Mar 12, 2024 at 2:36=E2=80=AFPM Mario Marietto >>>> wrote: >>>> >>>>> Hello my friend Odhiambo, >>>>> >>>>> you can try to pass your keyboard and mouse to a specific USB to pci >>>>> adapter,using an USB splitter to attach both the input devices. Actua= lly >>>>> I'm using the one integrated on my nvidia gpu,RTX 2080 ti,that's : >>>>> >>>>> 02:00.0 VGA compatible controller: NVIDIA Corporation TU102 [GeForce >>>>> RTX 2080 Ti] >>>>> 02:00.1 Audio device: NVIDIA Corporation TU102 High Definition Audio >>>>> Controller >>>>> *02:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Host >>>>> Controller* >>>>> 02:00.3 Serial bus controller: NVIDIA Corporation TU102 USB Type-C >>>>> UCSI Controller >>>>> >>>>> For sure you will add the PCI address of the board between your bhyve >>>>> parameters,for example in my case : >>>>> >>>>> -s 8:2,passthru,2/0/2 \ >>>>> >>>>> A single hardware solution would be a pcie riser which splits the pci= e >>>>> port. >>>>> >>>>> >>>>> I've asked for a good USB controller some time ago : >>>>> >>>>> >>>>> >>>>> https://forums.freebsd.org/threads/im-looking-for-a-good-usb-controll= er-3-0-4-ports-self-powered-compatible-with-freebsd.83323/ >>>>> >>>>> >>>>> If it=E2=80=99s only mouse and keyboard you could use bhyves virtio-i= nput >>>>> emulation. >>>>> >>>>> >>>>> Corvin included virtio-input support in his github. >>>>> >>>>> >>>>> He committed virtio-input to 13.2 and 14.0 upstream. >>>>> >>>>> >>>>> From =E2=80=9Cman bhyve=E2=80=9D >>>>> >>>>> >>>>> >>>>> https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&apropos=3D0&sektion= =3D8&manpath=3DFreeBSD+14.0-CURRENT&arch=3Ddefault&format=3Dhtml >>>>> ): >>>>> >>>>> >>>>> Virtio input device backends: >>>>> >>>>> >>>>> >>>>> */dev/input/eventX* >>>>> >>>>> Send input events of */dev/input/eventX* to >>>>> guest >>>>> >>>>> by VirtIO Input Interface. >>>>> >>>>> On Tue, Mar 12, 2024 at 11:39=E2=80=AFAM Odhiambo Washington < >>>>> odhiambo@gmail.com> wrote: >>>>> >>>>>> >>>>>> Even with this, my mouse pointer doesn't work: >>>>>> >>>>>> # Linux Guest >>>>>> bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H -A \ >>>>>> -s 0,hostbridge \ >>>>>> -s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-12.5.0-amd64-DVD-1.iso= \ >>>>>> -s 4,virtio-blk,/usr/local/bhyve-vms/Debian/debian.img \ >>>>>> -s 5,virtio-net,tap4 \ >>>>>> -s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ >>>>>> -s 29,fbuf,tcp=3D0.0.0.0:5905,w=3D1024,h=3D768 \ >>>>>> -s 30,xhci,tablet \ >>>>>> -s 31,lpc -l com1,stdio \ >>>>>> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ >>>>>> debian >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Feb 14, 2024 at 3:47=E2=80=AFPM Mario Marietto < >>>>>> marietto2008@gmail.com > wrote: >>>>>> >>>>>>> -s 3,fbuf,tcp=3D0.0.0.0:59 *15*,w=3D1600,h=3D9= 50 \ >>>>>>> -s 10,virtio-net,tap*15* \ >>>>>>> *vm15* < /dev/null & sleep 2 && vncviewer *0:15* >>>>>>> >>>>>>> On Wed, Feb 14, 2024 at 1:19=E2=80=AFPM Odhiambo Washington < >>>>>>> odhiambo@gmail.com> wrote: >>>>>>> >>>>>>>> Hellos, >>>>>>>> >>>>>>>> When I was still on FreeBSD 13.2-RELEASE I was able to access some >>>>>>>> Linux VMs GUI using VNC Viewer on my Windows PC. >>>>>>>> After I upgraded to 14-RELEASE, this changed: I can connect to the >>>>>>>> VMs, but the GUI desktop is frozen. The mouse cursor isn't moving = at all >>>>>>>> and the Desktop doesn't load like before. >>>>>>>> I start all my VMs the same way: >>>>>>>> >>>>>>>> bhyve -c N -m NG -w -H \ >>>>>>>> -s 0,hostbridge \ >>>>>>>> -s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname.img \ >>>>>>>> -s 5,virtio-net,tapN \ >>>>>>>> -s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ >>>>>>>> -s 29,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \ >>>>>>>> -s 30,xhci,tablet \ >>>>>>>> -s 31,lpc -l com1,stdio \ >>>>>>>> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ >>>>>>>> distroname >>>>>>>> >>>>>>>> I would then connect to a.b.c.d:59xx using VNC Viewer and I'd get >>>>>>>> the Linux/Windows Desktop. >>>>>>>> Not anymore! >>>>>>>> >>>>>>>> Is there something I need to do to fix the issue? >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Best regards, >>>>>>>> Odhiambo WASHINGTON, >>>>>>>> Nairobi,KE >>>>>>>> +254 7 3200 0004/+254 7 2274 3223 >>>>>>>> In an Internet failure case, the #1 suspect is a constant: DNS. >>>>>>>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF := -) >>>>>>>> [How to ask smart questions: >>>>>>>> http://www.catb.org/~esr/faqs/smart-questions.html] >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Mario. >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Best regards, >>>>>> Odhiambo WASHINGTON, >>>>>> Nairobi,KE >>>>>> +254 7 3200 0004/+254 7 2274 3223 >>>>>> In an Internet failure case, the #1 suspect is a constant: DNS. >>>>>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) >>>>>> [How to ask smart questions: >>>>>> http://www.catb.org/~esr/faqs/smart-questions.html] >>>>>> >>>>> >>>>> >>>>> -- >>>>> Mario. >>>>> >>>> >>>> >>>> -- >>>> Best regards, >>>> Odhiambo WASHINGTON, >>>> Nairobi,KE >>>> +254 7 3200 0004/+254 7 2274 3223 >>>> In an Internet failure case, the #1 suspect is a constant: DNS. >>>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) >>>> [How to ask smart questions: >>>> http://www.catb.org/~esr/faqs/smart-questions.html] >>>> >>> >>> >>> -- >>> Mario. >>> >> >> >> -- >> Mario. >> > > > -- > Best regards, > Odhiambo WASHINGTON, > Nairobi,KE > +254 7 3200 0004/+254 7 2274 3223 > In an Internet failure case, the #1 suspect is a constant: DNS. > "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) > [How to ask smart questions: > http://www.catb.org/~esr/faqs/smart-questions.html] > --=20 Mario. --000000000000f4baa40613796969 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You will not go to stable.

On Tue, Mar 12, 2024 at 2:44= =E2=80=AFPM Odhiambo Washington <o= dhiambo@gmail.com> wrote:
I run 14-RELEASE and would not like to go= to -STABLE.

On Tue, Mar 12, 2024 at 3:00=E2=80=AFPM Mario Marietto <marietto2008@gmail.= com> wrote:
Try the procedure explained below to have the late= st bhyve version well patched. Lets create these script files :

1) build_branch_releng-140 :

set -e
set -u

readonly script_path=3D"$(cd "$(dirname "${0}")" &= amp;& pwd)"
readonly branch=3D"${1?Missing <branch>$(usage)}"
shift
echo $branch

cd /usr/corvin-src-releng-140
git fetch --all --prune
git checkout -f "${branch}"

${script_path}/build_releng_140 "$@"


2) build_releng_140 :


#!/bin/sh
usage() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cat >&2 << EOF
Usage: ${0} [--no-bhf] [--reboot] [--verbose] [--without-kernel]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Builds bhyve
EOF
=C2=A0 =C2=A0 =C2=A0 =C2=A0 exit 1
}

build_module() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 local _path
=C2=A0 =C2=A0 =C2=A0 =C2=A0 _path=3D"${1}"

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # change to module path
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cd "${_path}"

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # clean module
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${clean}" =3D "true&quo= t;; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 make clean > &qu= ot;${cmd_redirect}" 2>&1
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # build module
=C2=A0 =C2=A0 =C2=A0 =C2=A0 make > "${cmd_redirect}" 2>&= ;1

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # install module
=C2=A0 =C2=A0 =C2=A0 =C2=A0 make install > "${cmd_redirect}" }

build() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/include"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/lib/libvmmapi&quo= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/sys/modules/vmm&q= uot;

=C2=A0 =C2=A0 =C2=A0 =C2=A0 # build kernel
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${with_kernel}" =3D "tr= ue"; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cd "${src_dir}= "
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 local kern_opts
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 kern_opts=3D"-= j$(sysctl -n hw.ncpu)"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${wit= h_bhf}" =3D "true"; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 kern_opts=3D"${kern_opts} KERNCONF=3DBHF"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fi
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if ! test "${c= lean}" =3D "true"; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 kern_opts=3D"${kern_opts} NO_CLEAN=3DYES"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fi
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 make kernel ${kern_= opts} > "${cmd_redirect}" 2>&1
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi

=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/usr.sbin/bhyve&qu= ot;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/usr.sbin/bhyvectl= "
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/usr.sbin/bhyveloa= d"

=C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${with_reboot}" =3D "tr= ue"; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 reboot
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi
}

set -e
set -u

while test $# -gt 0; do
=C2=A0 =C2=A0 =C2=A0 =C2=A0 case "${1-}" in
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --clean)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 clean=3D"true"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --reboot)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 with_reboot=3D"true"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --src-dir=3D*)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 src_dir=3D"${1#*=3D}"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --verbose)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 cmd_redirect=3D"/dev/stdout"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --without-bhf)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 with_bhf=3D"false"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --without-kernel) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 with_kernel=3D"false"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 shift
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 usage
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 esac
done

readonly clean=3D"${clean-"false"}"
readonly cmd_redirect=3D"${cmd_redirect-"/dev/null"}" readonly src_dir=3D"${src_dir-"/usr/corvin-src-releng-140"}&= quot;
echo $src_dir
readonly with_bhf=3D"${with_bhf-"true"}"
readonly with_kernel=3D"${with_kernel-"true"}"
readonly with_reboot=3D"${with_reboot-"false"}"
build


3) compile-bhyve-releng-140 :


cd /usr/
mv src src-old
git clone https://github.com/beckhoff/freebsd-src /usr/co= rvin-src-releng-140
cd /usr/corvin-src-releng-140
/build_branch_releng-140 origin/phab/corvink/14.0/nvidia-wip --without-bhf = --verbose


and run : ./compile-bhyve-releng-140 (on FreeBSD 14.0)

On Tue, Mar 12,= 2024 at 12:53=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
Maybe = because some patches haven't been upstreamed to 14.0 branch.
<= br>
On Tue,= Mar 12, 2024 at 12:49=E2=80=AFPM Odhiambo Washington <odhiambo@gmail.com> wrote:
<= div>Actually, I am trying to figure out why they do not work after upgrade = from FreeBSD 13 to 14. They used to work before.
History:
1. My FreeBSD host lives in a Data Centre several kilometers from me. I = only access it via SSH.
2. My FreeBSD host does not have a keyboa= rd, mouse, or screen attached to it.
3. I use VNC Viewer to conne= ct to the VMs like HOST_IP:PORT


On Tue, Mar 12, 2024 at 2:36= =E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
Hello my friend= Odhiambo,

you can try to pass your keyboard and m= ouse to a specific USB to pci adapter,using an USB splitter to attach both = the input devices. Actually I'm using the one integrated on my nvidia g= pu,RTX 2080 ti,that's :

02:00.0 VGA compat= ible controller: NVIDIA Corporation TU102 [GeForce RTX 2080 Ti]
02:00.1 = Audio device: NVIDIA Corporation TU102 High Definition Audio Controller
= 02:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Host Controller=
02:00.3 Serial bus controller: NVIDIA Corporation TU102 USB Type-C = UCSI Controller

For sure you will add the PCI= address of the board between your bhyve parameters,for example in my case = :

-s 8:2,passthru,2/0/2 \

A single hardware solution would be a pcie riser w= hich splits the pcie port.


I've asked for a = good USB controller some time ago :


https://forum= s.freebsd.org/threads/im-looking-for-a-good-usb-controller-3-0-4-ports-self= -powered-compatible-with-freebsd.83323/


If it=E2=80=99s only mouse and keyboard you could us= e bhyves virtio-input emulation.


Corvin included virtio-input support in his github.<= /p>


He committed virtio-input to 13.2 and 14.0 upstream.=


From =E2=80=9Cman bhyve=E2=80=9D


https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&apropos=3D0&sek= tion=3D8&manpath=3DFreeBSD+14.0-CURRENT&arch=3Ddefault&format= =3Dhtml):


=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Virtio=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 input device backends:

=C2=A0<= /span>

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /dev/input/eventX

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 Send input=C2=A0=C2=A0=C2=A0 events of /dev/input/eventX to guest

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 by=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 VirtIO Inp= ut Interface.


On Tue, Mar 12, 2024 at 11:39=E2=80=AFAM Odhiambo W= ashington <odhia= mbo@gmail.com> wrote:

Even with thi= s, my mouse pointer doesn't work:

= # Linux Guest
bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H = -A \
-s 0,hostbridge \
-s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-= 12.5.0-amd64-DVD-1.iso \
-s 4,virtio-blk,/usr/local/bhyve-vms/Debian/deb= ian.img \
-s 5,virtio-net,tap4 \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/= dsp \
-s 29,fbuf,tcp=3D0.0.0.0:5905,w=3D1024,h=3D768 \
-s 30,xhci,tablet \
-s 31,lpc -l= com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \<= br>debian


On Wed, = Feb 14, 2024 at 3:47=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
<= div>-s 3,fbuf,tcp=3D0.0.0.0:5915,w=3D1600,h=3D950 \=
-s 10,virtio-net,tap15 \
vm15<= /b> < /dev/null & sleep 2 && vncviewer 0:15
On = Wed, Feb 14, 2024 at 1:19=E2=80=AFPM Odhiambo Washington <odhiambo@gmail.com> wrote:=
Hellos,

When I was still on FreeBSD 13.2-RELEASE I was= able to access some Linux VMs GUI using=C2=A0VNC Viewer on my Windows PC.<= /div>
After I upgraded to 14-RELEASE, this changed: I can connect to th= e VMs, but the GUI desktop is frozen. The mouse cursor isn't moving at = all and the Desktop doesn't load like before.
I start all my = VMs the same way:

bhyve -c N -m NG -w -H \
-s 0= ,hostbridge \
-s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname= .img \
-s 5,virtio-net,tapN \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp= \
-s 29,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \
-s 30,xhci,table= t \
-s 31,lpc -l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmwa= re/BHYVE_UEFI.fd \
distroname

I would then conn= ect to a.b.c.d:59xx using VNC Viewer and I'd get the Linux/Windows Desk= top.
Not anymore!

Is there somet= hing I need to do to fix the=C2=A0issue?


--
Best regards,<= br>Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223<= /div>
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a c= onstant: DNS.
"Oh, the cruf= t.",=C2=A0egrep -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2= =A0:-)
[How to ask smart = questions:=C2=A0http://www.ca= tb.org/~esr/faqs/smart-questions.html]


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
= "Oh, the cruft.",=C2=A0egre= p -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/= =C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-que= stions.html]


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
= "Oh, the cruft.",=C2=A0egre= p -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/= =C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-que= stions.html]


--
Mario.


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
= "Oh, the cruft.",=C2=A0egre= p -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/= =C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-que= stions.html]


--
Mario.
--000000000000f4baa40613796969-- From nobody Wed Mar 13 08:04:34 2024 X-Original-To: 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 4Tvjhy1VZFz5DZWP for ; Wed, 13 Mar 2024 08:04:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tvjhx6wwfz4ZlC for ; Wed, 13 Mar 2024 08:04:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710317074; a=rsa-sha256; cv=none; b=GlZpeOINg0/KX2vgpvgHVY88YTJwxtQk3xt52CBzbkAvIn3qSe7Mlr1Tfqnt1DxE94/SdK ZcUOo5th1n9ToHjl5os4Vw501CawZhP/5AYopT48lvViZG9cg4ZEinbHJ40fgqrImCTHsu gSrINDvu+AntVsYUZFyuDu0v4aTxxKFIK+GlEUqIUdiG+2SDSiCRixTif01IjBXuJ+ZHMz slAqtZboIVnnADGJ7gP1ozRM7C9wu9AHprroR243TvZhefOyjzMgdTOzzk6LzGaoLN2WjW HNKGFEK1wQVCiQXvp/L30CU5PzAS/SH0x1eN2s1KPgMWYRBnWD1ghDasYDjhIg== 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=1710317074; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eydK8JRvGSfjD3jg3T6TkfdUhsUefKdfL4Ijl+CseXw=; b=kwtPmllAbgEU/ChfSVicX1FIvdgUOLFT+XNBDLXXAVVovAXFeYkzQQj3ZdZdKj7GTr63CZ FNJ9xz6oRCGrJTl+iNqBA3IrAoE3eJJ+Ny2wWge1GsEr8ZPRq4jw0K2LhHuPiN0QFJdtnY 9kUsOHjzQ6fH1fJTgUVuJfJ3pU6r+uKRJINfsDycRita1qdYg089ewqaGPpdGY1WOV6P6P EkYKP0tN5CRGkvJLtD3/nX65q6TuICtvOR3/gNDBJui1rwjYjc3Hrp9o2mR7nzraVYIhEx S1CX3Or7UNqeuXNESlDW+y2fYqF1TAGoLIGB3wdkLDwWQPo3alFGW5nJ4rDR8w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tvjhx6R4xzbHf for ; Wed, 13 Mar 2024 08:04:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42D84Xjp007183 for ; Wed, 13 Mar 2024 08:04:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42D84Xo4007182 for virtualization@FreeBSD.org; Wed, 13 Mar 2024 08:04:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 277627] Passthru NVIDIA GeForce GTX 1080 Ti does not work Date: Wed, 13 Mar 2024 08:04:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bubnovky@gmail.com X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277627 Konstantin changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Mar 13 17:07:48 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 4Tvxm064ccz5DHrD for ; Wed, 13 Mar 2024 17:08:00 +0000 (UTC) (envelope-from mgrooms@shrew.net) Received: from mx1.shrew.net (mx1.shrew.net [204.27.62.57]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tvxlz38knz4K32 for ; Wed, 13 Mar 2024 17:07:59 +0000 (UTC) (envelope-from mgrooms@shrew.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=shrew.net header.s=default header.b=UFS8vTsT; dmarc=none; spf=pass (mx1.freebsd.org: domain of mgrooms@shrew.net designates 204.27.62.57 as permitted sender) smtp.mailfrom=mgrooms@shrew.net Received: from mail.shrew.net (mail1.shrew.prv [10.26.2.18]) by mx1.shrew.net (8.17.1/8.17.1) with ESMTP id 42DH7nsh092518 for ; Wed, 13 Mar 2024 12:07:49 -0500 (CDT) (envelope-from mgrooms@shrew.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shrew.net; s=default; t=1710349669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nL7VQ7sVP/+Gjikzl5XMJbbTbzVny8mF0zRndYzkmV8=; b=UFS8vTsT7UkQpOovmNMQ0UfDrpbJ+9q5F2ZS/R3St5iVg/RUdeFQ3B8kM4eHyQS25i0iKc zvHTD5c3OF2o4FMFwX6mExfCWDN8JuGtOVovZcfr/pwp+1kZu75V9iRrqk0aFTOYfzdT7a oeg+5C0ibwrRr4qnN5dnuFwBG1FJquiieOccsu2ReyEy6XNLvdypbRMD/Lvo4mxCMH9B5s Ewcnnr38aHC+bfd5LeInzedjOV6bJWARyTnsSXO6Q2ldoHiphmlki94myzbI7pKqs2GAwR yThbmOBVaayYsVTxJU6FV72azXBY4ggu56vJyGD1wI0zBP1rds1pt06Ywm6peQ== Received: from [10.22.200.32] (unknown [136.62.156.42]) by mail.shrew.net (Postfix) with ESMTPSA id 32CB43AB37 for ; Wed, 13 Mar 2024 12:07:49 -0500 (CDT) Message-ID: Date: Wed, 13 Mar 2024 12:07:48 -0500 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 User-Agent: Mozilla Thunderbird Content-Language: en-US To: FreeBSD virtualization From: Matthew Grooms Subject: TRIM visibility bugs [patches] Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[shrew.net:s=default]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:19969, ipnet:204.27.56.0/21, country:US]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[shrew.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[shrew.net:+] X-Rspamd-Queue-Id: 4Tvxlz38knz4K32 Hey All, While toying with different storage options to use with bhyve, I've run across a few frustrations related to visibility into TRIM operations. Specifically, it's not always easy to tell if trim operations are being processed by drives due to the counters not being updated by the SCSI da device. The counters exported as sysctl values are updated by the SCCI UNMAP method, but not by the TRIM or WS methods. You can see the BIO_DELETE operations being processed in real time by running the gstat -d command, but the sysctl counters never change from 0. This gives the false illusion that nothing is happening. With the following patch, I'm now able to see the counters reflect trim operations that are processed by da devices ... mgrooms@mgrooms:~/trim $ cat scsi_da.diff --- scsi_da.c.orig    2024-03-13 11:32:32.098922000 -0500 +++ scsi_da.c    2024-03-13 11:31:37.255187000 -0500 @@ -4197,6 +4197,9 @@                da_default_timeout * 1000);      ccb->ccb_h.ccb_state = DA_CCB_DELETE;      ccb->ccb_h.flags |= CAM_UNLOCKED; +    softc->trim_count++; +    softc->trim_ranges += ranges; +    softc->trim_lbas += block_count;      cam_iosched_submit_trim(softc->cam_iosched);  } @@ -4257,6 +4260,8 @@              da_default_timeout * 1000);      ccb->ccb_h.ccb_state = DA_CCB_DELETE;      ccb->ccb_h.flags |= CAM_UNLOCKED; +    softc->trim_count++; +    softc->trim_lbas += count;      cam_iosched_submit_trim(softc->cam_iosched);  } Additionally, while attempting to test geom mirror+stripe to provide software RAID10, the diskinfo utility reports that a mirror supports UNMAP/TRIM when at least one underlying devices supports it, but a stripe does not. I added a small patch that attempts to use the same logic as mirror so that it will report that UNMAP/TRIM is supported when one of the underlying devices does ... --- g_stripe.c.orig    2024-03-12 18:23:52.960025000 -0500 +++ g_stripe.c    2024-03-12 18:25:01.009378000 -0500 @@ -26,6 +26,7 @@   * SUCH DAMAGE.   */ +#include  #include  #include  #include @@ -568,7 +569,7 @@      off_t offset, start, length, nstripe, stripesize;      struct g_stripe_softc *sc;      u_int no; -    int error, fast = 0; +    int error, fast = 0, val = 0;      sc = bp->bio_to->geom->softc;      /* @@ -591,6 +592,12 @@          g_stripe_pushdown(sc, bp);          return;      case BIO_GETATTR: +        if (!strcmp(bp->bio_attribute, "GEOM::candelete")) { +            if (sc->sc_flags & G_STRIPE_FLAG_CANDELETE) +                val = 1; +            g_handleattr(bp, "GEOM::candelete", &val, sizeof(val)); +            return; +        }          /* To which provider it should be delivered? */      default:          g_io_deliver(bp, EOPNOTSUPP); @@ -745,7 +752,7 @@  {      struct g_consumer *cp, *fcp;      struct g_geom *gp; -    int error; +    int error, i;      g_topology_assert();      /* Metadata corrupted? */ @@ -792,8 +799,19 @@              goto fail;          }      } -      sc->sc_disks[no] = cp; + +    /* cascade candelete */ +    error = g_access(cp, 1, 0, 0); +    if (error == 0) +    { +        error = g_getattr("GEOM::candelete", cp, &i); +        if (error == 0 && i != 0) +            sc->sc_flags |= G_STRIPE_FLAG_CANDELETE; +        G_STRIPE_DEBUG(1, "Provider %s candelete %i.", pp->name, i); +        g_access(cp, -1, 0, 0); +    } +      G_STRIPE_DEBUG(0, "Disk %s attached to %s.", pp->name, sc->sc_name);      g_stripe_check_and_run(sc); --- g_stripe.h.orig    2024-03-12 18:24:00.960741000 -0500 +++ g_stripe.h    2024-03-12 12:25:22.842925000 -0500 @@ -47,6 +47,8 @@  #define    G_STRIPE_TYPE_MANUAL    0  #define    G_STRIPE_TYPE_AUTOMATIC    1 +#define    G_STRIPE_FLAG_CANDELETE        0x00000001UL +  #define    G_STRIPE_DEBUG(lvl, ...) \      _GEOM_DEBUG("GEOM_STRIPE", g_stripe_debug, (lvl), NULL, __VA_ARGS__)  #define    G_STRIPE_LOGREQ(bp, ...) \ @@ -61,6 +63,7 @@      uint16_t     sc_ndisks;      off_t         sc_stripesize;      uint32_t     sc_stripebits; +    uint32_t     sc_flags;      struct mtx     sc_lock;  };  #define    sc_name    sc_geom->name Fair warning: I'm not a CAM or GEOM developer, so these should be reviewed before someone before they are applied anywhere that counts. In any case, I wanted to share this but here as I've seen some internet posts from other folks setting up virtual storage that ran into similar problems. I've also opened a bug report so that hopefully these visibility issues get fixed ... https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277673 Thanks, -Matthew From nobody Thu Mar 14 00:11:05 2024 X-Original-To: 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 4Tw7896136z5DkPj for ; Thu, 14 Mar 2024 00:11:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tw7893Hnxz4BLh for ; Thu, 14 Mar 2024 00:11:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710375065; a=rsa-sha256; cv=none; b=RO4KjW2f9C7fgV0f3hVBknWLv2SZWhtR2hpC+RMTaCbusrSg8k5X8cLuFjVqoUsCvFf2Jg mE/b2qF9SwScrzN1yloB7T+2mh3BDXiYJdcqcZaCVu0y5JK/1eh/3nyD8Eyrm4q04HttS/ ZrdjQ8Q9vd0/+i2s2NQxA5t2ojBBmmJXsUTb/xcOrsaRFRFWuuMY+Bnp6a3UAzbtotHmBU affQrmInMFOFm22m+FsopQ9t+ZUq43ROMUmyNAMZUNKf9YbBYucSwRDvDg+x9mEHWW1pm8 vqPWkX9PNHbtdbByiFMjhSMPYjv15tKMMZCpqNJTTvH/h5ReE1BXhkUPfGwF0A== 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=1710375065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o1u5BWfGFlHaAGuQ2HMjpZtK9ILl3bTVaqP8vBziv+Q=; b=smg04tBJ6h4PBqxgue5bbW6HNR5fhp7f0oy41rJyx1iLl8LnESReNeRz063uvb5yeTbPgx +QDWarrOXe6oNhYGwiy1/YX7ASo9+PwGQKXz8HyyHN686tMty/ZZ1GTL8wyl66+0mGZymK MnkTl7gG3F9rzVJEN+NRN1q95hNI4g10N0ZThg3+eNfHWRCjhOsRkWIrXG3c0BDsHrH99C BpLf2WQKFfamEOnan5zwiMQHA5JI4ksyMYHUhgqDd84K89f7NPwjnMgSBTyShsoVaUKEwk ErG7m1AghjFHR8t15PYaeVwsyPFlDhhMbUELxUx/F15LtUelmLQQBJ635a2EDA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tw7892t79z147t for ; Thu, 14 Mar 2024 00:11:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42E0B5DR034249 for ; Thu, 14 Mar 2024 00:11:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42E0B5NC034248 for virtualization@FreeBSD.org; Thu, 14 Mar 2024 00:11:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 264253] hyperv: ifconfig media autoselect on FreeBSD 13.0 displays error: ifconfig: SIOCSIFMEDIA (media): Operation not supported Date: Thu, 14 Mar 2024 00:11:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264253 --- Comment #7 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D63a7c4be4ad524629292eee659d6542f1= c5e9c21 commit 63a7c4be4ad524629292eee659d6542f1c5e9c21 Author: Mark Peek AuthorDate: 2024-03-13 23:53:07 +0000 Commit: Mark Peek CommitDate: 2024-03-14 00:05:19 +0000 hyperv/hn: Don't return error when setting media to autoselect Setting media to autoselect would always return EOPNOTSUPP. As autoselect is the only valid media, this change now returns success instead. PR: 264253 Reported by: Prakash Shiva Reviewed by: Dexuan Cui , whu Approved by: whu MFC after: 2 weeks sys/dev/hyperv/netvsc/if_hn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Fri Mar 15 09:46:30 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 4Twzsm0X3Kz5D3BL for ; Fri, 15 Mar 2024 09:46:36 +0000 (UTC) (envelope-from maurizio.vairani@cloverinformatica.it) Received: from smtpdh20-2.aruba.it (smtpdh20-2.aruba.it [62.149.155.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtpdh20.ad.aruba.it", Issuer "Actalis Organization Validated Server CA G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Twzsk6bwDz3xlH for ; Fri, 15 Mar 2024 09:46:34 +0000 (UTC) (envelope-from maurizio.vairani@cloverinformatica.it) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=aruba.it header.s=a1 header.b=GezZwTCg; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=cloverinformatica.it (policy=none); spf=softfail (mx1.freebsd.org: 62.149.155.165 is neither permitted nor denied by domain of maurizio.vairani@cloverinformatica.it) smtp.mailfrom=maurizio.vairani@cloverinformatica.it Received: from [192.168.0.77] ([93.43.218.22]) by Aruba Outgoing Smtp with ESMTPSA id l490rfoQAXIQtl491roQ0J; Fri, 15 Mar 2024 10:46:31 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1710495991; bh=2TjJ3s7lSEYt0auPjvGb/mhlLisDrLwYyYe8stc1QK8=; h=Date:MIME-Version:From:To:Subject:Content-Type; b=GezZwTCg1WTTKbHSS5RxbM8iMACQ+YpxOfyA1PmTAROrQ5fI95efv+pmANz1oYcGS iFbgJ5f2paHq4rRQ4Ct5iDUFyLBSSMoOloD/ZN+DD8db1B+y4FwYIWK28FUi9EkOgD q/UVmUCKRlxTK60NlgkKJtAvppIs2Y+hiTiTMDsSkTmEaehNphndRieWj36ZM7s14A Dn3HS+LbaBcp5GhjTbQgFhL+um/bQZ70vXjVSRh9ErF3+ZWN2Zp/wHutkU/bUxITJI pF2n7sRKVMsbZ9PNtJCKEFEnbF4XAooGWl2Bxal4dnoEFWCFcVtJI6k1UYkGSzxCtj BToZbhmLkusVA== Message-ID: <25f90f4e-9cfb-4aab-8755-f0a51430576d@cloverinformatica.it> Date: Fri, 15 Mar 2024 10:46:30 +0100 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 User-Agent: Mozilla Thunderbird Reply-To: maurizio.vairani@cloverinformatica.it Content-Language: it, en-US From: Maurizio Vairani To: "freebsd-virtualization@freebsd.org" Subject: The driver vboxdrv.ko, in the port virtualbox-ose-kmod, is not loadable in FreeBSD 13.3-RELEASE. Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfMzaPcFoyIC/tnzp2JkyDImHAgcZWayj6XgOJoqmDULNigwcd9l/v+fbdKmmEEADbTJdp/aPgKq3mJBrlwSJZinOZavOygH5uhAW9A+avWiB5UCJdRJe phQb/1Ew/s+hNG9T2jA+sl4K7GfKFlfKnIidzh4WwsUg/DlbQcAiEU0d5mnMJzURE4MceK0l7zNJ2wV6np04F/qGD0K4/QPdNepuJywdmwe95TOQCyjjO2Xn X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.01 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.92)[-0.924]; R_DKIM_ALLOW(-0.20)[aruba.it:s=a1]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[cloverinformatica.it : No valid SPF, DKIM not aligned (relaxed),none]; XM_UA_NO_VERSION(0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[aruba.it:dkim]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_EQ_ADDR_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[62.149.155.165:from]; R_SPF_SOFTFAIL(0.00)[~all]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[aruba.it:+]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[62.149.155.165:from]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:31034, ipnet:62.149.128.0/19, country:IT]; HAS_REPLYTO(0.00)[maurizio.vairani@cloverinformatica.it] X-Rspamd-Queue-Id: 4Twzsk6bwDz3xlH Hi list, recompiling and loading the driver in 13.3-RELEASE I have the error: # kldload vboxdrv.ko kldload: can't load vboxdrv.ko: module already loaded or in kernel # dmesg | tail -1 KLD vboxdrv.ko: depends on kernel - not available or version mismatch What I can do ? Regards. -- Maurizio From nobody Fri Mar 15 14:57:51 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 4Tx6n25BH1z5DYK7 for ; Fri, 15 Mar 2024 14:57:58 +0000 (UTC) (envelope-from zlei@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 4Tx6n24hvVz4VrL; Fri, 15 Mar 2024 14:57:58 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710514678; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TKvHP2kAC9EkCrfsUdPFk9ABLp5JWxgZ9ucHa4iYRHY=; b=elpQUiK2kV18y7jb/1YXtSpuUGvNypQohf3JZkK5XZU6J4pRaiOk8cm369fp577PRyLdxH QQYyAU8L2rfmc/vlFP3Cd5SUDmiLSmf4ySaN8a4Rpj09Z65C7oGy0uaYRDqw1y9Kh+KeAX uI/8GLbUy6NxxugDCM56mOjFniwgovZRy69yPev6DO/ecJ+dGVQO7F4gwZNHaKeJw21xb4 hI51Hk1fkpoDRTSE3bTX+1Y7tgHVJfkidi8KkLza9FtGg1WpLnYlpL3Vu8k1swU4IArz6q 8HEdZCfTUadeKTiz0xmY/V/X71Bra+JuRCT9YAlI2VMykgI7ooUpxuZNMKJNPw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710514678; a=rsa-sha256; cv=none; b=j7xED2o2HsZKwyRFNq7UJKKGIouVPplUY8guK5O7JFFwb5dHoLYRJerI2IjXu0raTbht1b kicRG5oQ2AIX3y3kUzT4pj3I09wfAYUf3a0PzX9QaDbHjKG/8KT0kDtN/S4FkELAm6ELnY HsSW9zfWRrhn0tRbJSXp4ikF7LTabfKueVV8mWZOCyyDTzIZBXGAj6dCp81cXo3cNodxNU +xxdmlpgwR77dnvL/LeMDntjdP+pIeNZsgAemWiBh7pysfXOU6AJWWLLza7f/GFHMkBGdG KYU2NplwgaS1pOe4XVnJLesGBCsW0VnyIm3htvuVs6GrpIhyH6rODNtra40SFQ== 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=1710514678; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TKvHP2kAC9EkCrfsUdPFk9ABLp5JWxgZ9ucHa4iYRHY=; b=Kfyel+qKglobxn6RloIsrBfkTvB0F9KRti1ELMhcFvybYBmfGtsrNC346qqXtbtnkPYXxf i++zN9u6t51r9mIpuHdzZi4b5RB5qOEyCIc2sbWOs4LMBVPvCJzmcAx7OXFGgoJ++0RUWn KU/EA+suJLg5XdrjJ1QxGoFmvSiFILN0I37RcRJC/53U/Z9I+X+Ti9HlTI0lsoAj8rS6Cs 9TpihuovbTts/sMCEx3pVKsPsGjCXthZPmjntL3rPYe7dVTMpUCLUiTOVsH8SyHegZw2Nf GDcjSqiz+1hY0K7cAuAu20vDqHrIx7mMNmQ3qhEFJodBlOkxrEZBiCUtxsrB5w== Received: from smtpclient.apple (ns1.oxydns.net [45.32.91.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Tx6n15fZwz15Dl; Fri, 15 Mar 2024 14:57:57 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3696.120.41.1.8\)) Subject: Re: The driver vboxdrv.ko, in the port virtualbox-ose-kmod, is not loadable in FreeBSD 13.3-RELEASE. From: Zhenlei Huang In-Reply-To: <25f90f4e-9cfb-4aab-8755-f0a51430576d@cloverinformatica.it> Date: Fri, 15 Mar 2024 22:57:51 +0800 Cc: "freebsd-virtualization@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <94DCB9E1-09C6-4932-B5CB-0B524EEC6754@FreeBSD.org> References: <25f90f4e-9cfb-4aab-8755-f0a51430576d@cloverinformatica.it> To: maurizio.vairani@cloverinformatica.it X-Mailer: Apple Mail (2.3696.120.41.1.8) > On Mar 15, 2024, at 5:46 PM, Maurizio Vairani = wrote: >=20 > Hi list, > recompiling and loading the driver in 13.3-RELEASE I have the error: ``` # pkg install virtualbox-ose-kmod =3D=3D=3D=3D=3D Message from virtualbox-ose-kmod-6.1.50: -- The vboxdrv kernel module uses internal kernel APIs. To avoid crashes due to kernel incompatibility, this module will only load on FreeBSD 13.2 kernels. ``` So I guess the virtualbox driver source is not compatible with FreeBSD = 13.3 . >=20 > # kldload vboxdrv.ko > kldload: can't load vboxdrv.ko: module already loaded or in kernel The EEXIST error number is misleading. Despite the error message from kernel is accurate. > # dmesg | tail -1 > KLD vboxdrv.ko: depends on kernel - not available or version mismatch >=20 > What I can do ? Maybe someone familiar with virtualbox would hack into the driver source = and make it happy with FreeBSD 13.3 . >=20 > Regards. > -- > Maurizio >=20 >=20 Best regards, Zhenlei From nobody Fri Mar 15 15:04:06 2024 X-Original-To: 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 4Tx6wF2whkz5DZcW for ; Fri, 15 Mar 2024 15:04:13 +0000 (UTC) (envelope-from felix@palmen-it.de) Received: from stef.palmen-it.de (stef.palmen-it.de [IPv6:2001:470:1f0b:bbb:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tx6wC5h5lz4X5n for ; Fri, 15 Mar 2024 15:04:11 +0000 (UTC) (envelope-from felix@palmen-it.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=palmen-it.de header.s=20200414 header.b=tnfNwm43; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=freebsd.org (policy=none); spf=pass (mx1.freebsd.org: domain of felix@palmen-it.de designates 2001:470:1f0b:bbb:1::1 as permitted sender) smtp.mailfrom=felix@palmen-it.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=palmen-it.de; s=20200414; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PNY69k5A0ZZ4UiT5L5Zw/SJCDKoXLYaKmXTe5KQG47s=; b=tnfNwm437pQBiJNFWZK1XW0j4B CU0cJiN9GuGGRynfNBajkNHljKnCtl1eQQuw2JKMrZctescsFtRxEIUCab4f0Rhm11PoeAn5v2+Hd Cdonr+G8oXxH+rC2JBoUUpBt7Z5hHBgVz2lR2rl9duE8vxZzucjanCg3+GeDeyeIeaVxUIWHj+n2m 6dP07YpZK9JzmMiprkmiTIfmuT+zml45eBrgxeWUo+MutKaC3NJMuOlFfeRN3CDN44Usk0PBqW8RM jbYmgnHRDL9fKe/DZY2/iVlTbFlo3JOUTN88WswAFWVvL01dTUmPoDaLvt8OnLuS58Gp3B9VBAwjB Rx5wevPA==; Received: from [192.168.71.101] (helo=mail.home.palmen-it.de) by stef.palmen-it.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rl96O-004JFv-1g for virtualization@freebsd.org; Fri, 15 Mar 2024 16:04:08 +0100 Received: from nexus.home.palmen-it.de ([192.168.99.2]) by mail.home.palmen-it.de with esmtpsa (TLS1.3) tls TLS_CHACHA20_POLY1305_SHA256 (Exim 4.97 (FreeBSD)) (envelope-from ) id 1rl96O-00000000A9S-0BDl for virtualization@freebsd.org; Fri, 15 Mar 2024 15:04:08 +0000 Date: Fri, 15 Mar 2024 16:04:06 +0100 From: Felix Palmen To: virtualization@freebsd.org Subject: Re: Re: The driver vboxdrv.ko, in the port virtualbox-ose-kmod, is not loadable in FreeBSD 13.3-RELEASE. Message-ID: Mail-Followup-To: virtualization@freebsd.org X-Face: /1K@t"h.}e~pR@]c7HorQ!T`F^RJCa'BCr#e>IKA{>C/9OTGB4|xh"y2{?1Z5M i2w"AH^pN_LlHR^{+f',_Np~;.B;!M/bL}*qk]p5*r7F5vW};{:@4u5S?T&f0$7BJ-71Q5SV]:v$`5 A0[DZ:=?S52x8HJ~5@^P_\T@MsjG{R( Organization: FreeBSD.org References: <25f90f4e-9cfb-4aab-8755-f0a51430576d@cloverinformatica.it> <94DCB9E1-09C6-4932-B5CB-0B524EEC6754@FreeBSD.org> 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 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="urf7hdzwelk3d7w3" Content-Disposition: inline In-Reply-To: <94DCB9E1-09C6-4932-B5CB-0B524EEC6754@FreeBSD.org> User-Agent: NeoMutt/20231221 X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.39 / 15.00]; SIGNED_PGP(-2.00)[]; DWL_DNSWL_MED(-2.00)[palmen-it.de:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; FORGED_SENDER(0.30)[zirias@freebsd.org,felix@palmen-it.de]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; RCVD_IN_DNSWL_MED(-0.20)[2001:470:1f0b:bbb:1::1:from]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:1f0b:bbb:1::1]; R_DKIM_ALLOW(-0.20)[palmen-it.de:s=20200414]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), DKIM not aligned (relaxed),none]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[zirias@freebsd.org,felix@palmen-it.de]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MLMMJ_DEST(0.00)[virtualization@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; TO_DN_NONE(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_TRACE(0.00)[palmen-it.de:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4Tx6wC5h5lz4X5n --urf7hdzwelk3d7w3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Zhenlei Huang [20240315 22:57]: > Message from virtualbox-ose-kmod-6.1.50: >=20 > -- > The vboxdrv kernel module uses internal kernel APIs. >=20 > To avoid crashes due to kernel incompatibility, this module will only > load on FreeBSD 13.2 kernels. > ``` This message is generated, see https://cgit.freebsd.org/ports/tree/emulators/virtualbox-ose-kmod/files/pkg= -message.in So, in a nutshell, it will only load on the kernel it was built for. Therefore, for some reason OP just didn't successfully build/install it locally. --=20 Felix Palmen {private} felix@palmen-it.de -- ports committer -- {web} http://palmen-it.de {pgp public key} http://palmen-it.de/pub.txt {pgp fingerprint} 6936 13D5 5BBF 4837 B212 3ACC 54AD E006 9879 F231 --urf7hdzwelk3d7w3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iNUEABYKAH0WIQRpNhPVW79IN7ISOsxUreAGmHnyMQUCZfRjXV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0Njkz NjEzRDU1QkJGNDgzN0IyMTIzQUNDNTRBREUwMDY5ODc5RjIzMQAKCRBUreAGmHny MSAtAQCuWrE+G+YitYxqcblLvEFG4X36uPOtV7PLNfMPJ7WyvgEAzht14UihhSGl ljezav5sonA8ZFbCctvUoMacwEhj0AI= =YNb0 -----END PGP SIGNATURE----- --urf7hdzwelk3d7w3-- From nobody Fri Mar 15 15:20:58 2024 X-Original-To: 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 4Tx7Hg6F1Wz5Dbd2 for ; Fri, 15 Mar 2024 15:21:03 +0000 (UTC) (envelope-from groenveld@acm.org) Received: from 008.lax.mailroute.net (008.lax.mailroute.net [199.89.1.11]) (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 (2048 bits) client-digest SHA256) (Client CN "mailroute.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tx7Hg1Nqvz4YDr for ; Fri, 15 Mar 2024 15:21:03 +0000 (UTC) (envelope-from groenveld@acm.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=acm.org header.s=mr01 header.b=icPA4FYJ; dmarc=pass (policy=none) header.from=acm.org; spf=pass (mx1.freebsd.org: domain of groenveld@acm.org designates 199.89.1.11 as permitted sender) smtp.mailfrom=groenveld@acm.org Received: from localhost (localhost [127.0.0.1]) by 008.lax.mailroute.net (Postfix) with ESMTP id 4Tx7Hd1DT4z6Cnk9V for ; Fri, 15 Mar 2024 15:21:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= message-id:date:date:content-transfer-encoding:content-id :content-type:content-type:mime-version:references:in-reply-to :subject:subject:from:from:received:received; s=mr01; t= 1710516060; x=1713108061; bh=YJpBwZ3J5px6efYyCqg4Gk9L14n5uOYscVn 63Ig6V8M=; b=icPA4FYJ880ETOGalZRxGD9Zf/I9Ay+zqTcXD2edC76/AdtjI+1 gdhp1vLn4F3Z+g748cG71Emv0CvF42RRYMcqi/15R/LRvfyU+PuVX/4RyGPKyBW6 98Q2b1OmKvpeQHSa6zrOon/BeZ4wfXekC4VaKKeLNkvRXvxlqh/H1X36D4HbbkYF j7sP69YYwBna+2K+H9l5mo3ix9OF/svjL/aChZNGn7jHqCSNFqcf5rxr7ew/kAYw 9ra2fH9jvxPmT41h7wnY57iVp60xq3LtidXGqEJDQBSsFONg+hCeWmsltCVVMQtu FXrzdDIIi+z7DZzMT4JZLkTkiIU4EmKuiwA== X-Virus-Scanned: by MailRoute Received: from 008.lax.mailroute.net ([127.0.0.1]) by localhost (008.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id kRtdk6vxm4GW for ; Fri, 15 Mar 2024 15:21:00 +0000 (UTC) Received: from mail.groenveld.us (mail.groenveld.us [207.68.114.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: groenveld@acm.org) by 008.lax.mailroute.net (Postfix) with ESMTPSA id 4Tx7Hc1QZZz6Cnk9T for ; Fri, 15 Mar 2024 15:20:59 +0000 (UTC) From: John D Groenveld X-uri: To: virtualization@freebsd.org Subject: Re: The driver vboxdrv.ko, in the port virtualbox-ose-kmod, is not loadable in FreeBSD 13.3-RELEASE. In-reply-to: Your message of "Fri, 15 Mar 2024 16:04:06 +0100." References: <25f90f4e-9cfb-4aab-8755-f0a51430576d@cloverinformatica.it> <94DCB9E1-09C6-4932-B5CB-0B524EEC6754@FreeBSD.org> 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 Content-Type: text/plain; charset="us-ascii" Content-ID: <29559.1710516058.1@mail.groenveld.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 15 Mar 2024 11:20:58 -0400 Message-Id: <4Tx7Hc1QZZz6Cnk9T@008.lax.mailroute.net> X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.10 / 15.00]; DWL_DNSWL_MED(-2.00)[acm.org:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.995]; DMARC_POLICY_ALLOW(-0.50)[acm.org,none]; R_DKIM_ALLOW(-0.20)[acm.org:s=mr01]; R_SPF_ALLOW(-0.20)[+ip4:199.89.0.0/21]; RCVD_IN_DNSWL_LOW(-0.10)[199.89.1.11:from]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8100, ipnet:199.89.1.0/24, country:US]; RCPT_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[virtualization@freebsd.org]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[virtualization@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[acm.org:+] X-Rspamd-Queue-Id: 4Tx7Hg1Nqvz4YDr In message , F elix Palmen writes: >So, in a nutshell, it will only load on the kernel it was built for. > >Therefore, for some reason OP just didn't successfully build/install it >locally. I have shot myself in the foot by forgetting to update /usr/src. John groenveld@acm.org From nobody Sun Mar 17 21:00:22 2024 X-Original-To: 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 4TyVkG4YRsz5Ds5v for ; Sun, 17 Mar 2024 21:00:22 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TyVkG1mvgz4bwG for ; Sun, 17 Mar 2024 21:00:22 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710709222; a=rsa-sha256; cv=none; b=eVTJmpY80FZ8eH41enG2RmsKMinRL2slZUtP+KMDdB05U7GQMSjgHpR01q9jFD+HGntcjD iyAUM6ZiJT6BeIDJnmC0RT/Gg7bBtRiu527N6WZjpu7oeUMWurvGQjLIkg0pzX0FS8gzuR q6R4MpaCXGsoSSRpo1qpHxHY/BpZsfn/5NEJ9wfqZbSOYUnqNMcsNJ5O3KjwNctEWIH43E anVHB7+oIkIucJ4C3GwTGL9qT8yBdfC1Rh6hNxav0N9crDG3mhU4OU0ShIqAyUQVxWnCfD YC4+Qsel9fwOsPsEvdR2UtZqkMKJE7LrgdlPWVoLadN7ttTpq3EXB/u5UcmyYA== 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=1710709222; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=K6fASvTckniplw/k6BvjrBahwToE4Sha+RKkgNWxSiA=; b=YRGyhefgZ8C8cf0S7xrBEWLqLhBch+pOXU/qHD5WUoK+kXcJjsQugz68DYMbWh+l2V2op1 +OAf3aBAeIqKxHE7mKcuYVvoWfc2PuTnVwI2zY1gL9nZ5W74h/ESt8rggyMzFBTePw4dvJ neKCzdiKHOArDp9hMD2/x1PwGrEWuik4+cHT0+sr/mikeD4Rx+hC4b9eBkbqv36eicCxt6 IXNY6GGw9m9D4hZPs7IwXDSAmOesvmMDhQgmPO/ZDfZXPGW9M4XdmrBXl90d1jyn2C4HMF L7lheyu6w/0EdfqG2dStOevNmo7M4zh+fpRbvdtc6UJPyfeBVn9HnwiMvoWdLw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TyVkG1L0Czv7G for ; Sun, 17 Mar 2024 21:00:22 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42HL0MBE059760 for ; Sun, 17 Mar 2024 21:00:22 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42HL0MmW059759 for virtualization@FreeBSD.org; Sun, 17 Mar 2024 21:00:22 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202403172100.42HL0MmW059759@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: virtualization@FreeBSD.org Subject: Problem reports for virtualization@FreeBSD.org that need special attention Date: Sun, 17 Mar 2024 21:00:22 +0000 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 Content-Type: multipart/alternative; boundary="17107092220.1cc09.55384" Content-Transfer-Encoding: 7bit --17107092220.1cc09.55384 Date: Sun, 17 Mar 2024 21:00:22 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 264267 | UEFI Booting on Azure Generation 2 VMs crashes 1 problems total for which you should take action. --17107092220.1cc09.55384 Date: Sun, 17 Mar 2024 21:00:22 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status      |    Bug Id | Description
------------+-----------+---------------------------------------------------
Open        |    264267 | UEFI Booting on Azure Generation 2 VMs crashes

1 problems total for which you should take action.
--17107092220.1cc09.55384--