Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Oct 2025 09:30:18 +0200
From:      Mario Marietto <marietto2008@gmail.com>
To:        Vasily Postnicov <shamaz.mazum@gmail.com>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: virtio-input mouse
Message-ID:  <CA%2B1FSigmXJ_QFZfaXGGOXFZ9O50JGtCDFxdmq8mjmamMObqHZA@mail.gmail.com>
In-Reply-To: <CADnZ6Bmy0OB7x0a0xU1Szz6XD-Pw1iXyPwnaEZ3OC1SXMcWbGQ@mail.gmail.com>
References:  <CADnZ6Bmy0OB7x0a0xU1Szz6XD-Pw1iXyPwnaEZ3OC1SXMcWbGQ@mail.gmail.com>

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

[-- Attachment #1 --]
On 8 october 2024 bhyve only used the virtio 0.9 protocol. Unfortunately,
Linux required virtio 1.0. Not sure if today this has changed.


On Wed, Oct 8, 2025 at 9:09 AM Vasily Postnicov <shamaz.mazum@gmail.com>
wrote:

> Is it possible to have mouse emulation using virtio-input in bhyve?
>
> My FreeBSD version is 14.3-RELEASE-p3, UEFI bootrom from
> edk2-bhyve-g202308_5 and the guest is Ubuntu Linux.
>
> My mouse device seems to be /dev/input/event6 (I guess. I checked this
> using cat /dev/input/event6 and moving my mouse).
>
> I start bhyve as follows:
> bhyve -c 2 -m 8G -w -H \
>            -s 0,hostbridge -s
> 3,virtio-blk,/dev/zvol/mypool/virtual/ubuntu2 \
>            -s 5,virtio-net,tap0 -s 6,virtio-input,/dev/input/event6 \
>            -s 29,fbuf,tcp=127.0.0.1:5900,w=1920,h=1080 \
>            -s 31,lpc -l com1,stdio -l bootrom,BHYVE_UEFI.fd ubuntu
>
> and use wlvncc to connect to the VNC server. This way the mouse pointer
> stops moving in the host system and there is no mouse in the guest.
>
> When I use -s 30,xhci,tablet my mouse works, but I wonder if I can use
> virtio-input instead.
>


-- 
Mario.

[-- Attachment #2 --]
<div dir="ltr"><div>On 8 october 2024 bhyve only used the virtio 0.9 protocol. Unfortunately, Linux required virtio 1.0. Not sure if today this has changed.</div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 8, 2025 at 9:09 AM Vasily Postnicov &lt;<a href="mailto:shamaz.mazum@gmail.com" target="_blank">shamaz.mazum@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">Is it possible to have mouse emulation using virtio-input in bhyve?<div><br></div><div>My FreeBSD version is 14.3-RELEASE-p3, UEFI bootrom from edk2-bhyve-g202308_5 and the guest is Ubuntu Linux.</div><div><br></div><div>My mouse device seems to be /dev/input/event6 (I guess. I checked this using cat /dev/input/event6 and moving my mouse).<br><div><br></div><div>I start bhyve as follows:</div><div>bhyve -c 2 -m 8G -w -H \</div><div>           -s 0,hostbridge -s 3,virtio-blk,/dev/zvol/mypool/virtual/ubuntu2 \</div><div>           -s 5,virtio-net,tap0 -s 6,virtio-input,/dev/input/event6 \</div><div>           -s 29,fbuf,tcp=<a href="http://127.0.0.1:5900" target="_blank">127.0.0.1:5900</a>,w=1920,h=1080 \</div><div>           -s 31,lpc -l com1,stdio -l bootrom,BHYVE_UEFI.fd ubuntu<br></div></div><div><br></div><div>and use wlvncc to connect to the VNC server. This way the mouse pointer stops moving in the host system and there is no mouse in the guest.</div><div><br></div><div>When I use -s 30,xhci,tablet my mouse works, but I wonder if I can use virtio-input instead.</div></div>
</blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>
help

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