Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

wayland in crosvm

136 views
Skip to first unread message

Hongwei Tang

unread,
Aug 15, 2024, 12:27:51 AM8/15/24
to crosvm-dev
Hi all,

I followed https://crosvm.dev/book/devices/wayland.html to test wayland in crosvm.
When I run "sommelier --virtgpu-channel weston-terminal", crosvm will give some error information, and there is no any change in weston.

Error info is:

[2024-08-15T03:28:12.339520593+00:00 ERROR devices::virtio::gpu] error processing gpu command CmdSubmit3d: ErrRutabaga(NixError(EPROTOTYPE))
[   52.258472] [drm:virtio_gpu_dequeue_ctrl_func [virtio_gpu]] *ERROR* response 0x1200 (command 0x207)
[2024-08-15T03:28:12.446150793+00:00 ERROR devices::virtio::gpu] error processing gpu command CmdSubmit3d: ErrRutabaga(InvalidCrossDomainState)
[   52.365038] [drm:virtio_gpu_dequeue_ctrl_func [virtio_gpu]] *ERROR* response 0x1200 (command 0x207)
[2024-08-15T03:28:12.452282417+00:00 ERROR devices::virtio::gpu] error processing gpu command CmdSubmit3d: ErrRutabaga(InvalidCrossDomainState)
[   52.371145] [drm:virtio_gpu_dequeue_ctrl_func [virtio_gpu]] *ERROR* response 0x1200 (command 0x207)

I run the crosvm with the following command:
crosvm run --disable-sandbox \
--block ubuntu-24.04.qcow2 \
--initrd initrd.img-6.11.0-rc3 \
-p "root=/dev/vda2" \
--gpu context-types=cross-domain,displays=\[\[mode=windowed\[1280,800\]\]\] \
--display-window-mouse \
--display-window-keyboard \
-c 4 \
--mem 8192 \
--net tap-name=crosvm_tap \
--wayland-sock $XDG_RUNTIME_DIR/wayland-1 \
vmlinuz-6.11.0-rc3

Thanks a lot

Wanjohi

unread,
Oct 17, 2024, 2:00:27 PM10/17/24
to crosvm-dev, Hongwei Tang

With my little understanding of CrosVM, it looks like you do not have a `3d` capable backend for it to run weston-terminal

This is a tiny-ish issue :D, do this and tell me if it helps:

1. Build crosvm with the feature "virgl_renderer"

2. Add "backend=3d,  context-types=cross-domain:virgl:virgl2 " to the gpu arguments in your script

It should ideally work out of the box, if you run "sommelier --virtgpu-channel --glamor weston-terminal"

Happy hacking ✌🏾
Reply all
Reply to author
Forward
0 new messages