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--