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

VGA output of own OS not displayed via VNC #612

Open
jbreu opened this issue Oct 20, 2024 · 0 comments
Open

VGA output of own OS not displayed via VNC #612

jbreu opened this issue Oct 20, 2024 · 0 comments

Comments

@jbreu
Copy link

jbreu commented Oct 20, 2024

Operating system

WSL Ubuntu 22.04.2 LTS

Description

Hi folks,
I am trying to get my own OS written from scratch (https://github.com/jbreu/jos ) running with this project and dispayed in the browser. However it always get a black screen in the VNC view (either in Browser or with a native vnc client exposing the correct port). I guess it has something to do in how qemu inside docker renders the vga output and/or the fact I use Windows/WSL as host, but I cant get to it. One thing I noticed was that without adding --device=/dev/dri I dont have the cardX/renderD128 devices inside my qemu.

Running it natively with

qemu-system-x86_64.exe -s -S -cpu max -action panic=pause -no-reboot -monitor stdio -cdrom dist/x86_64/kernel.iso -display vnc=:0

works fine.

My OS uses plain qemu vga for outputting console/graphics.

Any hints?

Docker compose

docker run -it --rm --env=BOOT_MODE=legacy --env=CPU_CORES=4 --env=RAM_SIZE=4G --env=DISK_SIZE=16G --volume=/mnt/c/Users/Jakob/Documents/workspace/os-series/dist/x86_64/kernel.iso:/boot.iso -p 22 -p 5900:5900 -p 8006:8006 -p 5700:5700 --restart=no --runtime=runc --cap-add NET_ADMIN --env=DISPLAY=web --env=VGA=std --env=DEBUG=Y --device=/dev/kvm --device=/dev/dri -d qemux/qemu-docker:latest

Docker log

Booting `jos'

2024-10-20 17:28:05

Screenshots (optional)

No response

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

1 participant