blob: 8e3d1df0a3357a111246f6bebd240ed48e3f8246 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
virtual: 0.593
KVM: 0.506
x86: 0.448
device: 0.445
graphic: 0.410
performance: 0.364
semantic: 0.341
PID: 0.296
TCG: 0.290
socket: 0.235
VMM: 0.231
hypervisor: 0.214
permissions: 0.214
register: 0.210
mistranslation: 0.204
i386: 0.201
ppc: 0.189
user-level: 0.175
vnc: 0.152
architecture: 0.151
risc-v: 0.141
boot: 0.135
peripherals: 0.129
kernel: 0.121
network: 0.121
arm: 0.116
files: 0.100
debug: 0.064
assembly: 0.058
With -display sdl,gl=on and 3D acceleration, the position of mouse does not show correctly
Description of problem:
Real mouse position is nearly 100 px on the left of drawn cursor. The closer the cursor to the lower right corner of the VM window, the worse (divergence becomes way bigger than 100 px).
Split off from https://gitlab.com/qemu-project/qemu/-/issues/761
VM window is not necessary to be resized to reproduce this bug. If your VM desktop comes 1920x1080 originally, the bug can be reproduced from the very start.
Smaller resolutions show this bug too, but it not so noticeable.
Steps to reproduce:
1. Download and install official QEMU 9.0 from https://qemu.weilnetz.de/w64/qemu-w64-setup-20240423.exe
2. Go to https://www.kali.org/get-kali/#kali-virtual-machines and click big QEMU 64 icon, and wait till kali-linux-2024.2-qemu-amd64.7z has been downloaded
3. Extract kali-linux-2024.2-qemu-amd64.qcow2 from kali-linux-2024.2-qemu-amd64.7z
4. Run it: `qemu-system-x86_64.exe -accel tcg -device virtio-vga-gl -display sdl,gl=on -hda C:\kali-linux-2024.2-qemu-amd64.qcow2 -usb -device usb-tablet -m 4096 -machine q35 -smp 2 -cpu Westmere`
5. Enter `kali` as user and `kali` as password when prompted
6. When the desktop is shown up, click the leftmost, upmost blue "Applications" button. Then click Settings -\> Display
7. Pick 1920x1080 as resolution and click Apply, then Keep this configuration.
8. Click Firefox Browser icon on the top panel.
9. When the browser starts working, experience how hard to use its interface, though it's fast. Real mouse position is nearly 100 px on the left of drawn cursor. The closer the cursor to the lower right corner of the VM window, the worse (divergence becomes way bigger than 100 px).
Additional information:
Run `qemu-system-x86_64.exe -accel tcg -device virtio-vga -display sdl -hda C:\kali-linux-2024.2-qemu-amd64.qcow2 -usb -device usb-tablet -m 4096 -machine q35 -smp 2 -cpu Westmere` and experience correct behavior.
Mouse in Gtk mode works ok. OpenGL not available for Windows in GTK mode.
|