0
I have a Linux Ubuntu Server 24.04 running very nicely on some moderately old hardware, with an AMD CPU. I am able to run a Python program that uses polars without problem. I have installed a QEMU/KVM VM on this machine running Ubuntu 24.04 Desktop. I am using Host-passthrough CPU configuration on the VM. When I try to run the same Python program I get the message that I am missing the following CPU Features: "avx2", "bmi2", and "movbe". I have added the POLARS_SKIP_CPU_CHECK=1 environment variable to /etc/environment (and rebooted). Now, I don't get the complaint message but the program still crashes. I have tried using different CPU Models in KVM but they seem to make the matter worse - there are even more features missing. I have installed polars-lts-cpu, which mode no difference.
So, I have 2 questions: 1) Why will Python Polars run on the KVM host but not on the guest; and 2) perhaps more importantly, what can I do about it?
Regards, Stuart M