Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it redroid support for qemu with -device virtio-gpu #774

Open
2 tasks done
sakura2333 opened this issue Oct 24, 2024 · 3 comments
Open
2 tasks done

it redroid support for qemu with -device virtio-gpu #774

sakura2333 opened this issue Oct 24, 2024 · 3 comments

Comments

@sakura2333
Copy link

sakura2333 commented Oct 24, 2024

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)

  • grep binder /proc/filesystems
  • 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 sakura2333 changed the title it redroid it redroid support for qemu with -device virtio-gpu Oct 24, 2024
@solitudealma
Copy link

不支持nvidia gpu吧

@zhouziyang
Copy link
Member

virgl is do supported (on Nvidia and other Graphics cards).

BTW, debug blob link is broken.

@solitudealma
Copy link

virgl is do supported (on Nvidia and other Graphics cards).

BTW, debug blob link is broken.

Can I use Nvidia graphics card passthrough? If it is Intel, it still takes up too much space. Is it better than Waydroid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants