Date: Tue, 12 Mar 2024 16:43:53 +0300 From: Odhiambo Washington <odhiambo@gmail.com> To: Mario Marietto <marietto2008@gmail.com> Cc: FreeBSD virtualization <freebsd-virtualization@freebsd.org> Subject: Re: VNC Viewer on Windows: Unable to access VMs GUI Message-ID: <CAAdA2WPBiNS4gLrn2JpTo1aatJwRO4nqpo-5R%2BE7AWzEk7A5-g@mail.gmail.com> In-Reply-To: <CA%2B1FSijpmsAoDXdsdSH8F7mW5Y4HLPWcmjJ7TJZ2yOfgsbDweQ@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> <CA%2B1FSijYM5OoABy2CLc0ftbk4Nz%2BAcU%2Bj-2rYoaWqVhXTtxdiw@mail.gmail.com> <CA%2B1FSijpmsAoDXdsdSH8F7mW5Y4HLPWcmjJ7TJZ2yOfgsbDweQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <marietto2008@gmail.=
com>
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 <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() {
> 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 <marietto2008@gma=
il.com>
> 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 <odhiambo@g=
mail.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@gm=
ail.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. 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 <marietto2008@=
gmail.com
>>>>> <marietto2008@gmailcom>> wrote:
>>>>>
>>>>>> -s 3,fbuf,tcp=3D0.0.0.0:59 <http://0.0.0.0:5915>*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
<div dir=3D"ltr">I run 14-RELEASE and would not like to go to -STABLE.</div=
><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tu=
e, Mar 12, 2024 at 3:00=E2=80=AFPM Mario Marietto <<a href=3D"mailto:mar=
ietto2008@gmail.com">marietto2008@gmail.com</a>> wrote:<br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>Try the pr=
ocedure explained below to have the latest bhyve version well patched. Lets=
create these script files :<br>
<br>
1) build_branch_releng-140 :<br>
<br>
set -e<br>
set -u<br>
<br>
readonly script_path=3D"$(cd "$(dirname "${0}")" &=
amp;& pwd)"<br>
readonly branch=3D"${1?Missing <branch>$(usage)}"<br>
shift<br>
echo $branch<br>
<br>
cd /usr/corvin-src-releng-140<br>
git fetch --all --prune<br>
git checkout -f "${branch}"<br>
<br>
${script_path}/build_releng_140 "$@"<br>
<br>
<br>
2) build_releng_140 :<br>
<br>
<br>
#!/bin/sh<br>
usage() {<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cat >&2 << EOF<br>
Usage: ${0} [--no-bhf] [--reboot] [--verbose] [--without-kernel]<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Builds bhyve<br>
EOF<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 exit 1<br>
}<br>
<br>
build_module() {<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 local _path<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 _path=3D"${1}"<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 # change to module path<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cd "${_path}"<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 # clean module<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${clean}" =3D "true&quo=
t;; then<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 make clean > &qu=
ot;${cmd_redirect}" 2>&1<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 # build module<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 make > "${cmd_redirect}" 2>&=
;1<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 # install module<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 make install > "${cmd_redirect}"<b=
r>
}<br>
<br>
build() {<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/include"<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/lib/libvmmapi&quo=
t;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/sys/modules/vmm&q=
uot;<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 # build kernel<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${with_kernel}" =3D "tr=
ue"; then<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cd "${src_dir}=
"<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 local kern_opts<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 kern_opts=3D"-=
j$(sysctl -n hw.ncpu)"<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${wit=
h_bhf}" =3D "true"; then<br>
=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"<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fi<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if ! test "${c=
lean}" =3D "true"; then<br>
=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"<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fi<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 make kernel ${kern_=
opts} > "${cmd_redirect}" 2>&1<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/usr.sbin/bhyve&qu=
ot;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/usr.sbin/bhyvectl=
"<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module "${src_dir}/usr.sbin/bhyveloa=
d"<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if test "${with_reboot}" =3D "tr=
ue"; then<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 reboot<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi<br>
}<br>
<br>
set -e<br>
set -u<br>
<br>
while test $# -gt 0; do<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 case "${1-}" in<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --clean)<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A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=A0 =C2=A0 =C2=A0 *)<br>
=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<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 ;;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 esac<br>
done<br>
<br>
readonly clean=3D"${clean-"false"}"<br>
readonly cmd_redirect=3D"${cmd_redirect-"/dev/null"}"<b=
r>
readonly src_dir=3D"${src_dir-"/usr/corvin-src-releng-140"}&=
quot;<br>
echo $src_dir<br>
readonly with_bhf=3D"${with_bhf-"true"}"<br>
readonly with_kernel=3D"${with_kernel-"true"}"<br>
readonly with_reboot=3D"${with_reboot-"false"}"<br>
build<br>
<br>
<br>
3) compile-bhyve-releng-140 :<br>
<br>
<br>
cd /usr/<br>
mv src src-old<br>
git clone <a href=3D"https://github.com/beckhoff/freebsd-src" rel=3D"norefe=
rrer" target=3D"_blank">https://github.com/beckhoff/freebsd-src</a> /usr/co=
rvin-src-releng-140<br>
cd /usr/corvin-src-releng-140<br>
/build_branch_releng-140 origin/phab/corvink/14.0/nvidia-wip --without-bhf =
--verbose<br>
<br>
<br>
and run : ./compile-bhyve-releng-140 (on FreeBSD 14.0)</div></div><br><div =
class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Mar 12,=
2024 at 12:53=E2=80=AFPM Mario Marietto <<a href=3D"mailto:marietto2008=
@gmail.com" target=3D"_blank">marietto2008@gmail.com</a>> wrote:<br></di=
v><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;borde=
r-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">Maybe =
because some patches haven't been upstreamed to 14.0 branch.<br></div><=
br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue,=
Mar 12, 2024 at 12:49=E2=80=AFPM Odhiambo Washington <<a href=3D"mailto=
: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.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"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><d=
iv>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 keyboa=
rd, mouse, or screen attached to it.</div><div>3. I use VNC Viewer to conne=
ct to the VMs like HOST_IP:PORT</div><div><br></div><br><div class=3D"gmail=
_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Mar 12, 2024 at 2:36=
=E2=80=AFPM Mario Marietto <<a href=3D"mailto:marietto2008@gmail.com" ta=
rget=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 sol=
id rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>Hello my friend=
Odhiambo,</div><div><br></div><div>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 :<br></div><div><br></div><div>02:00.0 VGA compat=
ible 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></di=
v><p class=3D"MsoNormal">A single hardware solution would be a pcie riser w=
hich 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/" target=3D"_blank">https://forum=
s.freebsd.org/threads/im-looking-for-a-good-usb-controller-3-0-4-ports-self=
-powered-compatible-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>
</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>
</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>
</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>
--000000000000821caf061376dbca--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WPBiNS4gLrn2JpTo1aatJwRO4nqpo-5R%2BE7AWzEk7A5-g>
