summary refs log tree commit diff stats
path: root/gitlab/issues/target_i386/host_missing/accel_KVM/1484.toml
blob: 2071c702d411429cee425e2bea7a425181ed222d (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
id = 1484
title = "cachy linux iso not booting in linux, host machine freezes"
state = "opened"
created_at = "2023-02-10T00:38:48.969Z"
closed_at = "n/a"
labels = ["accel: KVM", "target: i386"]
url = "https://gitlab.com/qemu-project/qemu/-/issues/1484"
host-os = "Fedora-37"
host-arch = "x86_64"
qemu-version = "``QEMU emulator version 7.2.0 (v7.2.0-11948-ge6523b71fc-dirty)``"
guest-os = "Cachy Linux 230121"
guest-arch = "x86_64 (claims to be x86-64-v3, but seems like installation live-iso is x86-64-v1)"
description = """- cachyos-gnome-linux-230121.iso
  - boots native (core-i7 haswell) via ventoy-boot 
  - boots on windows (Win10 22H2 19045.2546) using  
    ```
    qemu-system-x86_64 -cpu qemu64 -m 4096 -machine "type=q35,kernel-irqchip=off" -accel whpx -smp "sockets=1,cores=8,threads=1" -bios E:\\vstorage\\win_m01_edk2-x8_64.fd -boot d -cdrom E:/transcend/cachyos-gnome-linux-230121.iso  -display gtk -vga virtio -rtc base=utc -netdev user,id=vmnic1,net=192.168.20.0/24,dns=192.168.20.3,dhcpstart=192.168.20.15,hostfwd=tcp::9551-:22 -device virtio-net,netdev=vmnic1 -device virtio-serial -chardev socket,path=C:/tmpq/Downloads/qga.sock,server=on,wait=off,id=qga0 -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -chardev spicevmc,id=ch1,name=vdagent,clipboard=on  -device virtserialport,chardev=ch1,id=ch1,name=com.redhat.spice.0  -qmp "tcp:127.0.0.1:5955,server,nowait"
    ```
  - does not boot on Linux. Infact it crashes the host, which is a much bigger problem
    ```
    qemu-system-x86_64 -cpu qemu64 -m 4096 -machine "type=q35" -accel "kvm" -smp "sockets=1,cores=8,threads=1" -boot d  -drive "index=0,if=pflash,format=raw,readonly=on,file=/usr/share/edk2/ovmf/OVMF_CODE.fd" -drive "index=1,if=pflash,format=raw,file=/vol/15KJ_Images/vstorage/m20_OVMF_VARS.fd" -cdrom /vol/15KJ_Images/transcend/cachyos-gnome-linux-230121.iso  -device virtio-vga-gl  -display "spice-app,gl=on" -rtc "base=utc" -net "user" -device "virtio-net,netdev=vmnic" -device virtio-serial -chardev socket,path=/tmp/qga.sock,server=on,wait=off,id=qga0 -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -chardev spicevmc,id=ch1,name=vdagent,clipboard=on  -device virtserialport,chardev=ch1,id=ch1,name=com.redhat.spice.0  -netdev "user,id=vmnic,net=192.168.20.0/24,dns=192.168.20.3,dhcpstart=192.168.20.15" -qmp tcp:0:5955,server,nowait
    ```  
    when qemu windows pops up graphics inside the popped up virtviewer spice VM-window is garbled, seemingly of the grub2 bootscreen.  
    Initially, after window popup the mouse pointer can move for a few more seconds.  
    Then host machine GUI freezes  
    Then caps lock toggle/LED works for a while  
    Then host machine itself freezes. Even Ctrl-Alt-Fx to linux-console does not work.  
    Then forced to long-press power button and reboot  

Its one thing for the qemu to not be able to boot VM/iso, Its a whole different level bug to freeze the host-machine.   
Fault inside VM should not affect outside. Plus, I think, I ran qemu-system-x86-64 as ordinary user and not as root.

The self-built qemu-7.2.0 from handcrafted srpm has worked well with my other images.

It may have something to do with virtio-vga-gl in linux but will need to test on next reboot to linux."""
reproduce = """1. just run qemu command on linux"""
additional = """"""