How to test gfxstream in Ubuntu24.04 guest with crosvm

133 views
Skip to first unread message

Hongwei Tang

unread,
Aug 14, 2024, 2:13:27 PM8/14/24
to crosvm-dev
I run Ubuntu24.04 with crosvm:
./target/debug/crosvm run --disable-sandbox \
--block ubuntu-24.04.qcow2 \
--initrd initrd.img-6.8.0-40-generic \
-p "root=/dev/vda2" \
--gpu backend=virglrenderer,displays=\[\[mode=windowed\[1280,800\]\]\] \
--display-window-mouse \
--display-window-keyboard \
-c 4 \
--mem 4096 \
--net tap-name=crosvm_tap \
vmlinuz-6.8.0-40-generic

I build the gfxstream in the guest OS, and I set the following two environment:
export MESA_LOADER_DRIVER_OVERRIDE=zink
export VK_ICD_FILENAMES=$(gfxstream_dir)/guest-build/guest/vulkan/gfxstream_vk_devenv_icd.x86_64.json

However when I run vkcube, there are some errors:
vulkan: No DRI3 support detected - required for presentation

I run xdpyinfo | grep DRI, there is no any information.

If I run crosvm with backend=virglrenderer, xdpyinfo | grep DRI will show "DRI3"

How can I test gfxstream in Ubuntu guest.

Thanks a lot.

Reply all
Reply to author
Forward
0 new messages