SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
30.45k stars 3.18k forks source link

qemu run into black screen #24577

Closed Ygarr closed 2 months ago

Ygarr commented 3 months ago

How to fix this to make SerenityOS running?:

qemu-system-x86_64 -enable-kvm -m 2G -drive format=raw,file=serenity-x86_64-20240619-1cc4d29.img -drive format=raw,file=serenity_disk.img

BertalanD commented 3 months ago

Our build scripts pass a lot more arguments to qemu (to set up devices, etc.), see Meta/run.py

Ygarr commented 3 months ago

Ok, I also see, used old, patched version of qemu: https://github.com/SerenityOS/serenity/tree/master/Ports/qemu

BertalanD commented 3 months ago

Don't let the port deceive you, that's only interesting if you want to run Qemu on SerenityOS. Most people just use the distro-provided Qemu version (though we also have a build script in Toolchain/ for historical reasons), so the latest should work :)

Ygarr commented 3 months ago

I also made such "bedroll": qemu-system-x86_64 -cpu max -m 2G -drive format=raw,index=0,media=disk,id=disk,file=serenity-x86_64-20240619-1cc4d29.img -smp 2 -drive format=raw,file=serenity_disk.img -device e1000 -device VGA,vgamem_mb=64 -accel kvm -chardev qemu-vdagent,clipboard=on,mouse=off,id=vdagent,name=vdagent -device ich9-intel-hda -display sdl,gl=off -device virtio-vga -serial stdio

but seems main thing is to boot "boot/Kernel" from within .img :thinking:

Ygarr commented 3 months ago

Note: (btw) : That full compile and build SerenityOS from last sources works great!