Date: Tue, 12 Mar 2024 12:36:19 +0100 From: Mario Marietto <marietto2008@gmail.com> To: Odhiambo Washington <odhiambo@gmail.com> Cc: FreeBSD virtualization <freebsd-virtualization@freebsd.org> Subject: Re: VNC Viewer on Windows: Unable to access VMs GUI Message-ID: <CA%2B1FSiinFDHAzrTB1mT%2B7qZ-7cH6hr4ekRJnaCt6m7piFinVyQ@mail.gmail.com> In-Reply-To: <CAAdA2WOsw0swFr5C28siwcfjE68Vd-99gdh04b4-p-kzPmvdqQ@mail.gmail.com> References: <CAAdA2WNpP0eRbgXeZsyWa3H=3VEbWWP-X-oR6TmA%2BWPWZMpFBg@mail.gmail.com> <CA%2B1FSih2U2h27=feu79MjagGomS8su6fHfB33fE%2Br1dORaU%2Bvw@mail.gmail.com> <CAAdA2WOsw0swFr5C28siwcfjE68Vd-99gdh04b4-p-kzPmvdqQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <odhiambo@gmai= l.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@gmai= l.com > <marietto2008@gmailcom>> wrote: > >> -s 3,fbuf,tcp=3D0.0.0.0:59 <http://0.0.0.0:5915>*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@gm= ail.com> >> 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 <div dir=3D"ltr"><div>Hello my friend Odhiambo,</div><div><br></div><div>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 :<br></div><= div><br></div><div>02:00.0 VGA compatible controller: NVIDIA Corporation TU= 102 [GeForce RTX 2080 Ti]<br>02:00.1 Audio device: NVIDIA Corporation TU102= High Definition Audio Controller<br><b>02:00.2 USB controller: NVIDIA Corp= oration TU102 USB 3.1 Host Controller</b><br>02:00.3 Serial bus controller:= NVIDIA Corporation TU102 USB Type-C UCSI Controller</div><div><div><br></d= iv><div>For sure you will add the PCI address of the board between your bhy= ve parameters,for example in my case :</div><div><br></div></div><div>-s 8:= 2,passthru,2/0/2 \</div><div><br></div><p class=3D"MsoNormal">A single hard= ware solution would be a pcie riser which splits the pcie port.</p> <p class=3D"MsoNormal"><br></p><p class=3D"MsoNormal">I've asked for a = good USB controller some time ago :<br></p> <p class=3D"MsoNormal"><br></p><p class=3D"MsoNormal"><a href=3D"https://fo= rums.freebsd.org/threads/im-looking-for-a-good-usb-controller-3-0-4-ports-s= elf-powered-compatible-with-freebsd.83323/">https://forums.freebsd.org/thre= ads/im-looking-for-a-good-usb-controller-3-0-4-ports-self-powered-compatibl= e-with-freebsd.83323/</a></p> <p class=3D"MsoNormal"><br></p><p class=3D"MsoNormal"></p><p class=3D"MsoNo= rmal"></p><p class=3D"MsoNormal"></p> <p class=3D"MsoNormal">If it=E2=80=99s only mouse and keyboard you could us= e bhyves virtio-input emulation.</p><p class=3D"MsoNormal"><br></p> <p class=3D"MsoNormal"></p> <p class=3D"MsoNormal">Corvin included virtio-input support in his github.<= /p> <p class=3D"MsoNormal"><br></p> <p class=3D"MsoNormal">He committed virtio-input to 13.2 and 14.0 upstream.= </p> <p class=3D"MsoNormal"><br></p><p class=3D"MsoNormal"></p> <p class=3D"MsoNormal">From =E2=80=9Cman bhyve=E2=80=9D <br></p><p class=3D= "MsoNormal"><br></p><p class=3D"MsoNormal"><a href=3D"https://www.freebsd.o= rg/cgi/man.cgi?query=3Dbhyve&apropos=3D0&sektion=3D8&manpath=3D= FreeBSD+14.0-CURRENT&arch=3Ddefault&format=3Dhtml" target=3D"_blank= ">https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&apropos=3D0&sek= tion=3D8&manpath=3DFreeBSD+14.0-CURRENT&arch=3Ddefault&format= =3Dhtml</a>):</p> <p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:= 12pt;font-family:"Courier New";color:black"><br></span></p><p cla= ss=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:12pt;f= ont-family:"Courier New";color:black">=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:</span></p> <p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:= 12pt;font-family:"Courier New";color:black"><u></u>=C2=A0<u></u><= /span></p> <p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:= 12pt;font-family:"Courier New";color:black">=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </span><i><span style=3D"font-size:12pt;font-family:"Courier New"= ;color:green">/dev/input/eventX</span></i><span style=3D"font-size:12pt;fon= t-family:"Courier New";color:black"><u></u><u></u></span></p> <p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:= 12pt;font-family:"Courier New";color:black">=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=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 </span><i><span style=3D"font-size:12pt;font-family:"Courier New"= ;color:green">/dev/input/eventX</span></i><span style=3D"font-size:12pt;fon= t-family:"Courier New";color:black"> to guest<u></u><u></u></span= ></p> <p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:= 12pt;font-family:"Courier New";color:black">=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=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.</span></p></div><br><div class=3D"gmail_quote"><div dir=3D"lt= r" class=3D"gmail_attr">On Tue, Mar 12, 2024 at 11:39=E2=80=AFAM Odhiambo W= ashington <<a href=3D"mailto:odhiambo@gmail.com" target=3D"_blank">odhia= mbo@gmail.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" sty= le=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddi= ng-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><br></div><div>Even with thi= s, my mouse pointer doesn't work:</div><div><br></div><div dir=3D"ltr">= # Linux Guest<br>bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H = -A \<br>-s 0,hostbridge \<br>-s 3,ahci-cd,/usr/local/bhyve-vms/.iso/debian-= 12.5.0-amd64-DVD-1.iso \<br>-s 4,virtio-blk,/usr/local/bhyve-vms/Debian/deb= ian.img \<br>-s 5,virtio-net,tap4 \<br>-s 8,hda,play=3D/dev/dsp,rec=3D/dev/= dsp \<br>-s 29,fbuf,tcp=3D<a href=3D"http://0.0.0.0:5905" target=3D"_blank"= >0.0.0.0:5905</a>,w=3D1024,h=3D768 \<br>-s 30,xhci,tablet \<br>-s 31,lpc -l= com1,stdio \<br>-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \<= br>debian<br></div><div dir=3D"ltr"><br></div><div dir=3D"ltr"><br></div><b= r><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, = Feb 14, 2024 at 3:47=E2=80=AFPM Mario Marietto <<a href=3D"mailto:mariet= to2008@gmailcom" target=3D"_blank">marietto2008@gmail.com</a>> wrote:<br= ></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;= border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><= div><span style=3D"font-family:monospace">-s 3,fbuf,tcp=3D<a href=3D"http:/= /0.0.0.0:5915" target=3D"_blank">0.0.0.0:59</a><b>15</b>,w=3D1600,h=3D950 \= </span></div><div><div><span style=3D"font-family:monospace"><span style=3D= "color:rgb(0,0,0);background-color:rgb(255,255,255)">-s 10,virtio-net,tap<b= >15</b> \</span></span></div><span style=3D"font-family:monospace"><b>vm15<= /b> < /dev/null & sleep 2 && vncviewer <b>0:15</b></span></d= iv><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On = Wed, Feb 14, 2024 at 1:19=E2=80=AFPM Odhiambo Washington <<a href=3D"mai= lto:odhiambo@gmail.com" target=3D"_blank">odhiambo@gmail.com</a>> wrote:= <br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8= ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr= ">Hellos,<div><br></div><div>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><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.</div><div>I start all my = VMs the same way:</div><div><br></div><div>bhyve -c N -m NG -w -H \<br>-s 0= ,hostbridge \<br>-s 4,virtio-blk,/usr/local/bhyve-vms/DISTRONAME/distroname= .img \<br>-s 5,virtio-net,tapN \<br>-s 8,hda,play=3D/dev/dsp,rec=3D/dev/dsp= \<br>-s 29,fbuf,tcp=3D0.0.0.0:59XX,w=3D1680,h=3D1050 \<br>-s 30,xhci,table= t \<br>-s 31,lpc -l com1,stdio \<br>-l bootrom,/usr/local/share/uefi-firmwa= re/BHYVE_UEFI.fd \<br>distroname</div><div><br></div><div>I would then conn= ect to a.b.c.d:59xx using VNC Viewer and I'd get the Linux/Windows Desk= top.</div><div>Not anymore!</div><div><br clear=3D"all"><div>Is there somet= hing I need to do to fix the=C2=A0issue?</div><div><br></div><div><br></div= ><span class=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" clas= s=3D"gmail_signature"><div dir=3D"ltr"><div dir=3D"ltr"><div>Best regards,<= br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<= /div><div><span style=3D"color:rgb(34,34,34)">=C2=A0In=C2=A0</span><span st= yle=3D"color:rgb(34,34,34)">an Internet failure case, the #1 suspect is a c= onstant: DNS.</span><br>"<span style=3D"font-size:12.8px">Oh, the cruf= t.</span><span style=3D"font-size:12.8px">",=C2=A0</span><span style= =3D"font-size:12.8px">egrep -v '^$|^.*#'=C2=A0</span><span style=3D= "background-color:rgb(34,34,34);color:rgb(238,238,238);font-family:"Lu= cida Console",Consolas,"Courier New",monospace;font-size:13.= 6px">=C2=AF\_(=E3=83=84)_/=C2=AF</span><span style=3D"font-size:12.8px">=C2= =A0:-)</span></div><div><span style=3D"font-size:12.8px">[How to ask smart = questions:=C2=A0</span><span style=3D"font-size:12.8px"><a href=3D"http://w= ww.catb.org/~esr/faqs/smart-questions.html" target=3D"_blank">http://www.ca= tb.org/~esr/faqs/smart-questions.html</a>]</span></div></div></div></div></= div></div> </blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></d= iv></div> </blockquote></div><br clear=3D"all"><div><br></div><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d= iv dir=3D"ltr"><div dir=3D"ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<= br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223</div><div><span style=3D= "color:rgb(34,34,34)">=C2=A0In=C2=A0</span><span style=3D"color:rgb(34,34,3= 4)">an Internet failure case, the #1 suspect is a constant: DNS.</span><br>= "<span style=3D"font-size:12.8px">Oh, the cruft.</span><span style=3D"= font-size:12.8px">",=C2=A0</span><span style=3D"font-size:12.8px">egre= p -v '^$|^.*#'=C2=A0</span><span style=3D"background-color:rgb(34,3= 4,34);color:rgb(238,238,238);font-family:"Lucida Console",Consola= s,"Courier New",monospace;font-size:13.6px">=C2=AF\_(=E3=83=84)_/= =C2=AF</span><span style=3D"font-size:12.8px">=C2=A0:-)</span></div><div><s= pan style=3D"font-size:12.8px">[How to ask smart questions:=C2=A0</span><sp= an style=3D"font-size:12.8px"><a href=3D"http://www.catb.org/~esr/faqs/smar= t-questions.html" target=3D"_blank">http://www.catb.org/~esr/faqs/smart-que= stions.html</a>]</span></div></div></div></div></div> </blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></d= iv> --00000000000056d94706137513da--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSiinFDHAzrTB1mT%2B7qZ-7cH6hr4ekRJnaCt6m7piFinVyQ>