qemu-system-x86_64 : No Display when system wakeup from suspend
Host environment
- Operating system: Ubuntu 22.04.4 LTS
- OS/kernel version: Kernel 6.5.0-1019-oem
- Architecture: x86
- QEMU flavor: qemu-system-x86_64
- QEMU version: 9.0.92 (v9.1.0-rc2-53-g075fd020)
- QEMU command line:
./qemu-system-x86_64 -M q35 -m 4096 -vga virtio --kernel /boot/vmlinuz-$(uname -r) -initrd ./tiny-initrd.img -append 'console=ttyS0' -serial stdio -monitor unix:/tmp/mon.sock,server,nowait
Emulated/Virtualized environment
- Operating system: Linux
- OS/kernel version: Kernel 6.5.0-1019-oem
- Architecture: x86
Description of problem
Qemu display window is blank with message Display output is not active.
Steps to reproduce
- Use https://gitlab.com/berrange/tiny-vm-tools/-/blob/master/make-tiny-image.py to generate tiny-initrd.img
- Run qemu and drop into shell
- Put machine into S3 (echo mem > /sys/power/state)
- Use socat to connect to QEMU monitor and wake up the machine (system_wakeup)
- System resumes in shell, but no output in display
Additional information
Same behavior, if I try standard ubuntu22.04.qcow2 image. Before suspend GUI is there and after wakeup from suspend blank display with message Display output is not active.