Skip to content

Instantly share code, notes, and snippets.

@sirspudd
Created November 6, 2019 10:14
Show Gist options
  • Select an option

  • Save sirspudd/37a94da9eaf6a0e2814f333c26c4382d to your computer and use it in GitHub Desktop.

Select an option

Save sirspudd/37a94da9eaf6a0e2814f333c26c4382d to your computer and use it in GitHub Desktop.
CPUID.01H:ECX.x2apic Bug and amd Threadripper kvm stuff
kvm: warning: host doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
kvm: Host doesn't support requested features
start failed: command '/usr/bin/kvm -id 104 -name win1607 -chardev 'socket,id=qmp,path=/var/run/qemu-server/104.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -chardev 'socket,id=qmp-event,path=/var/run/qemu-server/104-event.qmp,server,nowait' -mon 'chardev=qmp-event,mode=control' -pidfile /var/run/qemu-server/104.pid -daemonize -smbios 'type=1,uuid=4478887a-76d1-4cbb-b63e-30141c1107bf' -smp '1,sockets=1,cores=1,maxcpus=1' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vga std -vnc unix:/var/run/qemu-server/104.vnc,x509,password -no-hpet -cpu 'kvm64,+lahf_lm,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed,hv_synic,hv_stimer,enforce' -m 2048 -device 'vmgenid,guid=13e0bd2c-bfa5-4f6b-a1ec-757144e38226' -readconfig /usr/share/qemu-server/pve-q35.cfg -device 'usb-tablet,id=tablet,bus=ehci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:6ff4f776953c' -drive 'if=none,id=drive-ide2,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/dev/pve/vm-104-disk-0,if=none,id=drive-virtio0,format=raw,cache=none,aio=native,detect-zeroes=on' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100' -device 'ahci,id=ahci0,multifunction=on,bus=pci.0,addr=0x7' -drive 'if=none,id=drive-sata0,media=cdrom,aio=threads' -device 'ide-drive,bus=ahci0.0,drive=drive-sata0,id=sata0,bootindex=201' -netdev 'type=tap,id=net0,ifname=tap104i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown' -device 'e1000,mac=D6:7D:DB:DA:09:67,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' -rtc 'driftfix=slew,base=localtime' -machine 'type=q35' -global 'kvm-pit.lost_tick_policy=discard'' failed: exit code 1
root@pve-master:/pool_t1# cat /sys/module/kvm_amd/parameters/avic
1
root@pve-master:/pool_t1# modprobe -r kvm_amd
root@pve-master:/pool_t1# modprobe kvm_amd npt=1 nested=1 avic=0
root@pve-master:/pool_t1# qm start 104
(vm starts without any issue only kvm64 --> host cpu type set following needs to be
cat /sys/module/kvm/parameters/ignore_msrs
Y
modprobe.d/kvm.conf
options kvm ignore_msrs=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment