#!/bin/bash
/opt/lessons/build/x86_64-softmmu/qemu-system-x86_64 \
-name guest=vm,debug-threads=on \
-machine pc,accel=kvm,usb=off \
-no-user-config -nodefaults \
-m 2048M \
-smp 4,sockets=1,cores=4,threads=1 \
-realtime mlock=off \
-rtc base=localtime,clock=vm,driftfix=slew \
-global kvm-pit.lost_tick_policy=delay \
-device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 \
-drive file=/opt/lessons/win10_32_1703.inst,format=qcow2,if=none,id=drive-virtio-disk0,cache=writeback,copy-on-read=off,discard=unmap \
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk0,id=virtio-disk0 \
-cpu host,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time \
-device vfio-pci,host=00:02.0,id=hostdev0,bus=pci.0,addr=0x2 \
-device vfio-pci,host=00:14.0,id=hostdev1,bus=pci.0,addr=0x14 \
-nographic \
-bios /opt/lessons/seabios-1.10.2/out/bios.bin \
-vga none
00:02.0 VGA compatible controller: Intel Corporation Sky Lake Integrated Graphics (rev 07)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port (rev f1)
00:1e.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO UART Controller (rev 21)
00:1e.6 SD Host controller: Intel Corporation Sunrise Point-LP Secure Digital IO Controller (rev 21)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)
root@RainOS:/opt/lessons# lscpu
If I removed the configuration of hyperv enlightenments of cpu, it will be ok.
If I updated the guest from win10_32 with version 1703 (15063.0) enterprise to win10_32 with version 1803,it will be ok too.
Can someone tell me why or give me some tips about how to debug such problems ?
Any pointers would be greatly appreciated.