Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2024 13:00:01 +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%2B1FSijpmsAoDXdsdSH8F7mW5Y4HLPWcmjJ7TJZ2yOfgsbDweQ@mail.gmail.com>
In-Reply-To: <CA%2B1FSijYM5OoABy2CLc0ftbk4Nz%2BAcU%2Bj-2rYoaWqVhXTtxdiw@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>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <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-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 <marietto2008@gmail=
.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@gm=
ail.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 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 <marietto2008@gma=
il.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. 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 <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@g=
mail.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@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

<div dir=3D"ltr"><div>Try the procedure 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&quot;$(cd &quot;$(dirname &quot;${0}&quot;)&quot; &=
amp;&amp; pwd)&quot;<br>
readonly branch=3D&quot;${1?Missing &lt;branch&gt;$(usage)}&quot;<br>
shift<br>
echo $branch<br>
<br>
cd /usr/corvin-src-releng-140<br>
git fetch --all --prune<br>
git checkout -f &quot;${branch}&quot;<br>
<br>
${script_path}/build_releng_140 &quot;$@&quot;<br>
<br>
<br>
2) build_releng_140 :<br>
<br>
<br>
#!/bin/sh<br>
usage() {<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cat &gt;&amp;2 &lt;&lt; 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&quot;${1}&quot;<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 # change to module path<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cd &quot;${_path}&quot;<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 # clean module<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if test &quot;${clean}&quot; =3D &quot;true&quo=
t;; then<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 make clean &gt; &qu=
ot;${cmd_redirect}&quot; 2&gt;&amp;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 &gt; &quot;${cmd_redirect}&quot; 2&gt;&amp=
;1<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 # install module<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 make install &gt; &quot;${cmd_redirect}&quot;<b=
r>
}<br>
<br>
build() {<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module &quot;${src_dir}/include&quot;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module &quot;${src_dir}/lib/libvmmapi&quo=
t;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module &quot;${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 &quot;${with_kernel}&quot; =3D &quot;tr=
ue&quot;; then<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cd &quot;${src_dir}=
&quot;<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&quot;-=
j$(sysctl -n hw.ncpu)&quot;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if test &quot;${wit=
h_bhf}&quot; =3D &quot;true&quot;; 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&quot;${kern_opts} KERNCONF=3DBHF&quot;<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 &quot;${c=
lean}&quot; =3D &quot;true&quot;; 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&quot;${kern_opts} NO_CLEAN=3DYES&quot;<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} &gt; &quot;${cmd_redirect}&quot; 2&gt;&amp;1<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module &quot;${src_dir}/usr.sbin/bhyve&qu=
ot;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module &quot;${src_dir}/usr.sbin/bhyvectl=
&quot;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 build_module &quot;${src_dir}/usr.sbin/bhyveloa=
d&quot;<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if test &quot;${with_reboot}&quot; =3D &quot;tr=
ue&quot;; 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 &quot;${1-}&quot; 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=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 clean=3D&quot;true&quot;<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 shift<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 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --reboot)<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 with_reboot=3D&quot;true&quot;<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 shift<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 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --src-dir=3D*)<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 src_dir=3D&quot;${1#*=3D}&quot;<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 shift<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 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --verbose)<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 cmd_redirect=3D&quot;/dev/stdout&quot;<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 shift<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 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --without-bhf)<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 with_bhf=3D&quot;false&quot;<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 shift<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 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --without-kernel)<b=
r>
=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&quot;false&quot;<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 shift<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 =C2=A0 =C2=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&quot;${clean-&quot;false&quot;}&quot;<br>
readonly cmd_redirect=3D&quot;${cmd_redirect-&quot;/dev/null&quot;}&quot;<b=
r>
readonly src_dir=3D&quot;${src_dir-&quot;/usr/corvin-src-releng-140&quot;}&=
quot;<br>
echo $src_dir<br>
readonly with_bhf=3D&quot;${with_bhf-&quot;true&quot;}&quot;<br>
readonly with_kernel=3D&quot;${with_kernel-&quot;true&quot;}&quot;<br>
readonly with_reboot=3D&quot;${with_reboot-&quot;false&quot;}&quot;<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 &lt;<a href=3D"mailto:marietto2008=
@gmail.com">marietto2008@gmail.com</a>&gt; wrote:<br></div><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid r=
gb(204,204,204);padding-left:1ex"><div dir=3D"ltr">Maybe because some patch=
es haven&#39;t been upstreamed to 14.0 branch.<br></div><br><div class=3D"g=
mail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Mar 12, 2024 at 1=
2:49=E2=80=AFPM Odhiambo Washington &lt;<a href=3D"mailto:odhiambo@gmail.co=
m" target=3D"_blank">odhiambo@gmail.com</a>&gt; wrote:<br></div><blockquote=
 class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so=
lid 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><div>1. My FreeBSD h=
ost 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 scre=
en 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=3D"gmail_quote"><div dir=
=3D"ltr" class=3D"gmail_attr">On Tue, Mar 12, 2024 at 2:36=E2=80=AFPM Mario=
 Marietto &lt;<a href=3D"mailto:marietto2008@gmail.com" target=3D"_blank">m=
arietto2008@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20=
4);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 mouse to a specifi=
c 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,th=
at&#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: NVI=
DIA Corporation TU102 High Definition Audio Controller<br><b>02:00.2 USB co=
ntroller: NVIDIA Corporation TU102 USB 3.1 Host Controller</b><br>02:00.3 S=
erial 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 b=
oard 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=3D"Mso=
Normal">A single hardware solution would be a pcie riser which splits the p=
cie port.</p>
<p class=3D"MsoNormal"><br></p><p class=3D"MsoNormal">I&#39;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&amp;apropos=3D0&amp;sektion=3D8&amp;manpath=3D=
FreeBSD+14.0-CURRENT&amp;arch=3Ddefault&amp;format=3Dhtml" target=3D"_blank=
">https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&amp;apropos=3D0&amp;sek=
tion=3D8&amp;manpath=3DFreeBSD+14.0-CURRENT&amp;arch=3Ddefault&amp;format=
=3Dhtml</a>):</p>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
12pt;font-family:&quot;Courier New&quot;;color:black"><br></span></p><p cla=
ss=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:12pt;f=
ont-family:&quot;Courier New&quot;;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:&quot;Courier New&quot;;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:&quot;Courier New&quot;;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:&quot;Courier New&quot;=
;color:green">/dev/input/eventX</span></i><span style=3D"font-size:12pt;fon=
t-family:&quot;Courier New&quot;;color:black"><u></u><u></u></span></p>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
12pt;font-family:&quot;Courier New&quot;;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:&quot;Courier New&quot;=
;color:green">/dev/input/eventX</span></i><span style=3D"font-size:12pt;fon=
t-family:&quot;Courier New&quot;;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:&quot;Courier New&quot;;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 &lt;<a href=3D"mailto:odhiambo@gmail.com" target=3D"_blank">odhia=
mbo@gmail.com</a>&gt; 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&#39;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 &lt;<a href=3D"mailto:mariet=
to2008@gmailcom" target=3D"_blank">marietto2008@gmail.com</a>&gt; 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> &lt; /dev/null &amp; sleep 2 &amp;&amp; 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 &lt;<a href=3D"mai=
lto:odhiambo@gmail.com" target=3D"_blank">odhiambo@gmail.com</a>&gt; 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&#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=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&#39;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>&quot;<span style=3D"font-size:12.8px">Oh, the cruf=
t.</span><span style=3D"font-size:12.8px">&quot;,=C2=A0</span><span style=
=3D"font-size:12.8px">egrep -v &#39;^$|^.*#&#39;=C2=A0</span><span style=3D=
"background-color:rgb(34,34,34);color:rgb(238,238,238);font-family:&quot;Lu=
cida Console&quot;,Consolas,&quot;Courier New&quot;,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>=
&quot;<span style=3D"font-size:12.8px">Oh, the cruft.</span><span style=3D"=
font-size:12.8px">&quot;,=C2=A0</span><span style=3D"font-size:12.8px">egre=
p -v &#39;^$|^.*#&#39;=C2=A0</span><span style=3D"background-color:rgb(34,3=
4,34);color:rgb(238,238,238);font-family:&quot;Lucida Console&quot;,Consola=
s,&quot;Courier New&quot;,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>=
&quot;<span style=3D"font-size:12.8px">Oh, the cruft.</span><span style=3D"=
font-size:12.8px">&quot;,=C2=A0</span><span style=3D"font-size:12.8px">egre=
p -v &#39;^$|^.*#&#39;=C2=A0</span><span style=3D"background-color:rgb(34,3=
4,34);color:rgb(238,238,238);font-family:&quot;Lucida Console&quot;,Consola=
s,&quot;Courier New&quot;,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>

--0000000000000b6d680613756835--



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