redroid-doc icon indicating copy to clipboard operation
redroid-doc copied to clipboard

it redroid support for qemu with -device virtio-gpu

Open sakura2333 opened this issue 4 months ago • 0 comments

Describe the bug 请详细描述问题(ZH_CN) A clear and concise description of what the bug is. I seems -device virtio-vga-gl can't work with nvidia driver

`sudo cat /etc/libvirt/qemu.conf | grep cgroup_device_acl -C6

As well as this, any configured block backed disks,

all sound device, and all PTY devices are allowed.

This will only need setting if newer QEMU suddenly

wants some device we don't already know about.

cgroup_device_acl = [ "/dev/null", "/dev/full", "/dev/zero", "/dev/random", "/dev/urandom", "/dev/ptmx", "/dev/kvm", "/dev/dri/card0", "/dev/dri/renderD128"
] `

image

I tried use devices virtio-gpu.

` host:ubuntu22.04: sudo modprobe binder_linux devices="binder,hwbinder,vndbinder" sudo modprobe ashmem_linux sudo modprobe virtio_gpu

qemu-system-x86_64
-m 2048
-smp 2
-hda /home/perilla/virt/redroid.qcow2
-boot d
-net nic -net user,hostfwd=tcp::1122-:22,hostfwd=tcp::19000-:9000,hostfwd=tcp::15555-:5555
-vnc :0
-device virtio-gpu
-display sdl,gl=on
-enable-kvm `

`qemu: sudo modprobe binder_linux devices="binder,hwbinder,vndbinder" sudo modprobe ashmem_linux sudo modprobe virtio_gpu

docker run -itd --rm --privileged --pull always -v ~/data:/data -p 5555:5555 redroid/redroid:12.0.0_64only-latest androidboot.redroid_gpu_mode=host `

it seems redroid not startup

make sure the required kernel modules present 确保必须的内核功能已开启(ZH_CN)

  • [x] grep binder /proc/filesystems
  • [x] grep ashmem /proc/misc (optional)

Collect debug logs 收集调试日志(ZH_CN) curl -fsSL https://raw.githubusercontent.com/remote-android/redroid-doc/master/debug.sh | sudo bash -s -- [CONTAINER] omit CONTAINER if not exist any more. 如容器已退出,可忽略CONTAINER参数(ZH_CN) Uploading redroid-debug.GdBCMMBF.tgz…

Screenshots 截图(ZH_CN) If applicable, add screenshots to help explain your problem.

sakura2333 avatar Oct 24 '24 06:10 sakura2333