VM Qemu AVX support aktivieren

Cyberscitymaste

Active Member
Oct 3, 2016
29
0
41
51
Hallo liebe Gemeinschaft ich habe gelesen das Qemu nun AVX mit unterstützt da meine CPU leider den AVX Befehlssatz nicht mit drin hat.

wie kann ich in Qemu AVX aktivieren ich finde nirgends einen Schalter wo man Module aktivieren kann.

vielen dank für Hilfe.

siehe diese Seite.
 
Last edited:
Hi,
wenn deine CPU nicht AVX unterstützt, dann kann QEMU das auch nicht an die VM "durchreichen". Also es gäbe noch die Möglichkeit das Hardware-Virtualisierung/KVM bei der VM auszumachen und dann über die Software-Virtualisierung zu gehen. Aber bin mir grad nicht sicher ob QEMU da schon AVX unterstützt und selbst wenn wird das sicher sehr langsam sein, da ja alles emuliert werden muss.
 
Du kannst es versuchen, indem Du bei den VM Optionen die KVM Hardware Virtualization Checkbox ausmachst und in /etc/pve/virtual-guest/cpu-models.conf ein eigenes CPU-Modell definierst:
Code:
root@pve8a1 ~ # cat /etc/pve/virtual-guest/cpu-models.conf
cpu-model: avx
   flags +avx;+avx2
   reported-model qemu64
Das kann dann auch in der UI ausgewählt werden.

EDIT: hatte , statt ; benutzt
 
Last edited:
das scheint nicht zu funktionieren

processor : 7
vendor_id : AuthenticAMD
cpu family : 15
model : 107
model name : QEMU Virtual CPU version 2.5+
stepping : 1
microcode : 0x1000065
cpu MHz : 1999.385
cache size : 512 KB
physical id : 0
siblings : 8
core id : 7
cpu cores : 8
apicid : 7
initial apicid : 7
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm rep_good nopl cpuid extd_apicid pni cx16 hypervisor lahf_lm cmp_legacy svm 3dnowprefetch vmmcall
bugs : fxsave_leak sysret_ss_attrs null_seg swapgs_fence amd_e400 spe ctre_v1 spectre_v2
bogomips : 4006.66
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual


kein AVX

trotz auswahl der CPU

cpu-model: avx
flags +avx,+avx2
reported-model qemu64

anscheinend ist unsere Quemu wohl noch nicht gepätcht mit AVX
 
es scheint so als ist die Config falsch

Jun 15 09:07:27 pve qmeventd[218121]: Starting cleanup for 119
Jun 15 09:07:27 pve qmeventd[218121]: file /etc/pve/virtual-guest/cpu-models.conf line 2 (section 'avx') - unable to parse value of 'flags': value does not match the regex pattern
 
Stimmt, es sollte flags +avx;+avx2 sein.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!