Package: qemu-system-x86
Version: 3.1
Dear Maintainers,
On each VM start with the "-full-screen" option there is a delay.
Duration varies from about a minute to a few seconds. With repeated VM
starts the delay seems to shorten. Then the following message quickly
appears (usually for less than 1 or 2 seconds) before the real guest
display is shown: "Guest has not initialized display (yet).".
When guest display is shown it is expanded and overflows outside the
host screen. Using "Ctrl+Alt+f" two times to toggle the QEMU fullscreen
seems to rescale the guest display correctly. Also after the first
"Ctrl+Alt+f" the QEMU non-fullscreen window is expanded and overflows
outside the host monitor. The QEMU non-fullscreen window seems to
rescale the guest display correctly after using "Ctrl+Alt+2" followed by
"Ctrl+Alt+1".
I tested this with my dual monitor setup (laptop screen + external
monitor both with the same resolution 1920x1080) for which I use the
following "xrandr" commands:
xrandr --output "$displayOne" --below "$displayTwo" # <- Extended
xrandr --output "$displayOne" --same-as "$displayTwo" # <- Mirrored
The described overflowing of the VM display was identical in both dual
monitor modes and also in a single monitor setup. Single monitor test
was with just the laptop screen and without any "xrandr" commands.
HOW TO REPRODUCE:
The overflowing behavior is reproducible with the following simplified
"qemu-system-x86" command when I run it manually from terminal (it is
single line in case email reformats it):
qemu-system-x86_64 -full-screen -enable-kvm -machine type=q35,accel=kvm
-netdev user,id=vnet -device e1000,netdev=vnet -cpu host -smp cores=2 -m
2048 -drive file=DISK.raw,format=raw,index=0,media=disk -drive
file=IMAGE.iso,index=2,media=cdrom
Test is reproducible with empty/formated "DISK.raw" and for example
Debian 10 Netinst ISO as "IMAGE.iso" (= no need to install VM just start
the empty one:). Then it is very easy: if you do not see the Debian
swirl in bottom right corner after starting VM, the guest display
overflows outside the host screen:).
RELEVANT SYSTEM DETAILS:
My system has enabled only the integrated graphics in Intel Core
i7-3632QM CPU and uses XFCE with "xfwm4" window manager. All packages
are automatically updated from Debian 10 "main" repository - current
versions for relevant packages are:
linux-image-4.19.0-12-amd64 4.19.152-1
qemu-system-gui 3.1+dfsg-8+deb10u8
qemu-system-x86 3.1+dfsg-8+deb10u8
qemu-utils 3.1+dfsg-8+deb10u8
xfce4-session 4.12.1-6
xfdesktop4 4.12.4-2
xfwm4 4.12.5-1
xserver-xorg 7.7+19
xserver-xorg-video-fbdev 0.5.0-1
xserver-xorg-video-vesa 2.4.0-1
Let me know if you need any more info. I will try to test
"qemu-system-x86" 5.0 or 5.1 from Debian Backports or Unstable when I
have more time.
Best Regards
Bakhelit