Open stelar7 opened 3 years ago
Seems to be a duplicate of #6422
Almost, according to the OP of that issue
The QEMU window appears but is reported as not responding almost immediately by Windows and needs to be force closed.
That is not the case here, QEMU works fine, but the screen is black and no more log output is printed
And the disable_virtio
(that seemed to be the solution in that issue) is already set
A temporary (?) fix:
Change export SERENITY_EXTRA_QEMU_ARGS="-accel whpx"
to export SERENITY_EXTRA_QEMU_ARGS="-accel whpx,kernel-irqchip=off"
That workaround may be good to document in the WSL instructions, maybe make a small PR?
Weird, FWIW I'm on qemu 6.0.0 (20210505) and the current WSL instructions are working correctly for me, I don't require kernel-irqchip=off
.
In fact, my issue is that -accel whpx
makes the whole process slow to a crawl immediately after the framebuffer initialisation, and no one else seems to have reported anything of the sort. I will open a separate bug report for that one.
I had the same black-screen issue, and the "kernel-irqchip=off" change solved it for me. So thanks, @stelar7!
I think the key message in the log is whpx: injection failed, MSI (0, 0) delivery: 0, dest_mode: 0, trigger mode: 0, vector: 0, lost (c0350005)
- so worth mentioning that if this does get added to the docs.
Upstream qemu bug: https://gitlab.com/qemu-project/qemu/-/issues/346
I'm also experiencing the same issues booting my image with -accel whpx
(whpx: injection failed), so I changed it to -accel whpx,kernel-irqchip=off
, which seems to work.
This is on Windows 11, with QEMU emulator version 9.0.50 (v9.0.0-14417-ga1d2d66911-dirty).
Hardware virtualization is enabled in the BIOS and Windows Hypervisor Platform is also enabled.
I have tried with Hyper-V and Virtual Machine platform both on and off, but only using -accel whpx
without the kernal-irqchip=off
option, will fail.
This is the batch file I use on Windows, to start the image (Ubuntu already installed on it):
@echo off
start "" /B ^
qemu ^
-name "ubuntu_24_04_openshift" ^
-m 12288 ^
-smp 6 ^
-hda %QEMU_VMS%\ubuntu_24_04_openshift.img ^
-accel whpx,kernel-irqchip=off ^
-net nic ^
-net user ^
-vga virtio ^
-usb ^
-device usb-tablet ^
-display sdl ^
-drive file=%QEMU_VMS%\ubuntu_24_04_openshift.img,format=qcow2,cache=writeback
However, when I try to creat the image the first time, I need to boot from cd-rom to start the installation process. In this case, - accel whpx,kernel-irqchip=off` doesn't work and I need to leave out the accelaration altogether:
This is the batch file I use on Windows, to boot the iso image to start the installation:
@echo off
start "" /B ^
qemu ^
-name "ubuntu_24_04_openshift" ^
-m 12288 ^
-smp 6 ^
-cdrom %QEMU_VMS%\ubuntu-24.04-desktop-amd64.iso ^
-boot d ^
-hda %QEMU_VMS%\ubuntu_24_04_openshift.img ^
-net nic ^
-net user ^
-vga virtio ^
-usb ^
-device usb-tablet ^
-display sdl ^
-drive file=%QEMU_VMS%\ubuntu_24_04_openshift.img,format=qcow2,cache=writeback
I'm not sure why I can't use -accel whpx,kernel-irqchip=off
when booting from cd-rom to start the installation. On boot it shows errors it can't find any boot devices (cd-rom, hdd).
I have also played around with different -cpu
setting, using -cpu max
throws another error. Choosing other cpus doesn't really make a difference. My processor is an AMD Ryzen 9 3950X 16-Core Processor.
QEMU emulator version 6.0.0 (v6.0.0-11869-g800a25ea45-dirty)
Console output: