Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2024 12:53:05 +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%2B1FSijYM5OoABy2CLc0ftbk4Nz%2BAcU%2Bj-2rYoaWqVhXTtxdiw@mail.gmail.com>
In-Reply-To: <CAAdA2WOwkC3fh5jpNAQ9GbuJjstOfJe7jqKLZ-naOY3VWtYy5A@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> <CA%2B1FSiinFDHAzrTB1mT%2B7qZ-7cH6hr4ekRJnaCt6m7piFinVyQ@mail.gmail.com> <CAAdA2WOwkC3fh5jpNAQ9GbuJjstOfJe7jqKLZ-naOY3VWtYy5A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Maybe because some patches haven't been upstreamed to 14.0 branch.

On Tue, Mar 12, 2024 at 12:49 PM 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 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 PM Mario Marietto <marietto2008@gmail.com>
> 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’s 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 “man bhyve”
>>
>>
>>
>> https://www.freebsd.org/cgi/man.cgi?query=bhyve&apropos=0&sektion=8&manpath=FreeBSD+14.0-CURRENT&arch=default&format=html
>> ):
>>
>>
>>             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 AM Odhiambo Washington <odhiambo@gmail.com>
>> wrote:
>>
>>>
>>> Even with this, my mouse pointer doesn't work:
>>>
>>> # Linux Guest
>>> bhyve -S -c sockets=2,cores=2,threads=2 -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=/dev/dsp,rec=/dev/dsp \
>>> -s 29,fbuf,tcp=0.0.0.0:5905,w=1024,h=768 \
>>> -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 PM Mario Marietto <marietto2008@gmail.com
>>> <marietto2008@gmailcom>> wrote:
>>>
>>>> -s 3,fbuf,tcp=0.0.0.0:59 <http://0.0.0.0:5915>*15*,w=1600,h=950 \
>>>> -s 10,virtio-net,tap*15* \
>>>> *vm15* < /dev/null & sleep 2 && vncviewer *0:15*
>>>>
>>>> On Wed, Feb 14, 2024 at 1:19 PM 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=/dev/dsp,rec=/dev/dsp \
>>>>> -s 29,fbuf,tcp=0.0.0.0:59XX,w=1680,h=1050 \
>>>>> -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 '^$|^.*#' ¯\_(ツ)_/¯ :-)
>>>>> [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 '^$|^.*#' ¯\_(ツ)_/¯ :-)
>>> [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 '^$|^.*#' ¯\_(ツ)_/¯ :-)
> [How to ask smart questions:
> http://www.catb.org/~esr/faqs/smart-questions.html]
>


-- 
Mario.

[-- Attachment #2 --]
<div dir="ltr">Maybe because some patches haven&#39;t been upstreamed to 14.0 branch.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 12, 2024 at 12:49 PM Odhiambo Washington &lt;<a href="mailto:odhiambo@gmail.com" target="_blank">odhiambo@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><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.</div><div>History:</div><div>1. My FreeBSD host lives in a Data Centre several kilometers from me. I only access it via SSH.</div><div>2. My FreeBSD host does not have a keyboard, mouse, or screen attached to it.</div><div>3. I use VNC Viewer to connect to the VMs like HOST_IP:PORT</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 12, 2024 at 2:36 PM Mario Marietto &lt;<a href="mailto:marietto2008@gmail.com" target="_blank">marietto2008@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello my friend Odhiambo,</div><div><br></div><div>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&#39;m using the one integrated on my nvidia gpu,RTX 2080 ti,that&#39;s :<br></div><div><br></div><div>02:00.0 VGA compatible controller: NVIDIA Corporation TU102 [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 Corporation 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></div><div>For sure you will add the PCI address of the board between your bhyve 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="MsoNormal">A single hardware solution would be a pcie riser which splits the pcie port.</p>
<p class="MsoNormal"><br></p><p class="MsoNormal">I&#39;ve asked for a good USB controller some time ago :<br></p>
<p class="MsoNormal"><br></p><p class="MsoNormal"><a href="https://forums.freebsd.org/threads/im-looking-for-a-good-usb-controller-3-0-4-ports-self-powered-compatible-with-freebsd.83323/" target="_blank">https://forums.freebsd.org/threads/im-looking-for-a-good-usb-controller-3-0-4-ports-self-powered-compatible-with-freebsd.83323/</a></p>;
<p class="MsoNormal"><br></p><p class="MsoNormal"></p><p class="MsoNormal"></p><p class="MsoNormal"></p>
<p class="MsoNormal">If it’s only mouse and keyboard you could use bhyves virtio-input emulation.</p><p class="MsoNormal"><br></p>
<p class="MsoNormal"></p>
<p class="MsoNormal">Corvin included virtio-input support in his github.</p>
<p class="MsoNormal"><br></p>
<p class="MsoNormal">He committed virtio-input to 13.2 and 14.0 upstream.</p>
<p class="MsoNormal"><br></p><p class="MsoNormal"></p>
<p class="MsoNormal">From “man bhyve” <br></p><p class="MsoNormal"><br></p><p class="MsoNormal"><a href="https://www.freebsd.org/cgi/man.cgi?query=bhyve&amp;apropos=0&amp;sektion=8&amp;manpath=FreeBSD+14.0-CURRENT&amp;arch=default&amp;format=html" target="_blank">https://www.freebsd.org/cgi/man.cgi?query=bhyve&amp;apropos=0&amp;sektion=8&amp;manpath=FreeBSD+14.0-CURRENT&amp;arch=default&amp;format=html</a>):</p>;
<p class="MsoNormal" style="background:white"><span style="font-size:12pt;font-family:&quot;Courier New&quot;;color:black"><br></span></p><p class="MsoNormal" style="background:white"><span style="font-size:12pt;font-family:&quot;Courier New&quot;;color:black">            Virtio      input device backends:</span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12pt;font-family:&quot;Courier New&quot;;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12pt;font-family:&quot;Courier New&quot;;color:black">           
</span><i><span style="font-size:12pt;font-family:&quot;Courier New&quot;;color:green">/dev/input/eventX</span></i><span style="font-size:12pt;font-family:&quot;Courier New&quot;;color:black"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12pt;font-family:&quot;Courier New&quot;;color:black">                       Send input    events of
</span><i><span style="font-size:12pt;font-family:&quot;Courier New&quot;;color:green">/dev/input/eventX</span></i><span style="font-size:12pt;font-family:&quot;Courier New&quot;;color:black"> to guest<u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12pt;font-family:&quot;Courier New&quot;;color:black">                       by      VirtIO Input Interface.</span></p></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 12, 2024 at 11:39 AM Odhiambo Washington &lt;<a href="mailto:odhiambo@gmail.com" target="_blank">odhiambo@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><div>Even with this, my mouse pointer doesn&#39;t work:</div><div><br></div><div dir="ltr"># Linux Guest<br>bhyve -S -c sockets=2,cores=2,threads=2 -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/debian.img \<br>-s 5,virtio-net,tap4 \<br>-s 8,hda,play=/dev/dsp,rec=/dev/dsp \<br>-s 29,fbuf,tcp=<a href="http://0.0.0.0:5905" target="_blank">0.0.0.0:5905</a>,w=1024,h=768 \<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="ltr"><br></div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 14, 2024 at 3:47 PM Mario Marietto &lt;<a href="mailto:marietto2008@gmailcom" target="_blank">marietto2008@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span style="font-family:monospace">-s 3,fbuf,tcp=<a href="http://0.0.0.0:5915" target="_blank">0.0.0.0:59</a><b>15</b>,w=1600,h=950 \</span></div><div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">-s 10,virtio-net,tap<b>15</b> \</span></span></div><span style="font-family:monospace"><b>vm15</b> &lt; /dev/null &amp; sleep 2 &amp;&amp; vncviewer <b>0:15</b></span></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 14, 2024 at 1:19 PM Odhiambo Washington &lt;<a href="mailto:odhiambo@gmail.com" target="_blank">odhiambo@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="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 VNC Viewer on my Windows PC.</div><div>After I upgraded to 14-RELEASE, this changed: I can connect to the VMs, but the GUI desktop is frozen. The mouse cursor isn&#39;t moving at all and the Desktop doesn&#39;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=/dev/dsp,rec=/dev/dsp \<br>-s 29,fbuf,tcp=0.0.0.0:59XX,w=1680,h=1050 \<br>-s 30,xhci,tablet \<br>-s 31,lpc -l com1,stdio \<br>-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \<br>distroname</div><div><br></div><div>I would then connect to a.b.c.d:59xx using VNC Viewer and I&#39;d get the Linux/Windows Desktop.</div><div>Not anymore!</div><div><br clear="all"><div>Is there something I need to do to fix the issue?</div><div><br></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223</div><div><span style="color:rgb(34,34,34)"> In </span><span style="color:rgb(34,34,34)">an Internet failure case, the #1 suspect is a constant: DNS.</span><br>&quot;<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">&quot;, </span><span style="font-size:12.8px">egrep -v &#39;^$|^.*#&#39; </span><span style="background-color:rgb(34,34,34);color:rgb(238,238,238);font-family:&quot;Lucida Console&quot;,Consolas,&quot;Courier New&quot;,monospace;font-size:13.6px">¯\_(ツ)_/¯</span><span style="font-size:12.8px"> :-)</span></div><div><span style="font-size:12.8px">[How to ask smart questions: </span><span style="font-size:12.8px"><a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span></div></div></div></div></div></div>;
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223</div><div><span style="color:rgb(34,34,34)"> In </span><span style="color:rgb(34,34,34)">an Internet failure case, the #1 suspect is a constant: DNS.</span><br>&quot;<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">&quot;, </span><span style="font-size:12.8px">egrep -v &#39;^$|^.*#&#39; </span><span style="background-color:rgb(34,34,34);color:rgb(238,238,238);font-family:&quot;Lucida Console&quot;,Consolas,&quot;Courier New&quot;,monospace;font-size:13.6px">¯\_(ツ)_/¯</span><span style="font-size:12.8px"> :-)</span></div><div><span style="font-size:12.8px">[How to ask smart questions: </span><span style="font-size:12.8px"><a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span></div></div></div></div></div>;
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223</div><div><span style="color:rgb(34,34,34)"> In </span><span style="color:rgb(34,34,34)">an Internet failure case, the #1 suspect is a constant: DNS.</span><br>&quot;<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">&quot;, </span><span style="font-size:12.8px">egrep -v &#39;^$|^.*#&#39; </span><span style="background-color:rgb(34,34,34);color:rgb(238,238,238);font-family:&quot;Lucida Console&quot;,Consolas,&quot;Courier New&quot;,monospace;font-size:13.6px">¯\_(ツ)_/¯</span><span style="font-size:12.8px"> :-)</span></div><div><span style="font-size:12.8px">[How to ask smart questions: </span><span style="font-size:12.8px"><a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span></div></div></div></div></div>;
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSijYM5OoABy2CLc0ftbk4Nz%2BAcU%2Bj-2rYoaWqVhXTtxdiw>