It looks like MaaS provisioned instances on top of Virsh enabled machines are configured by default with libvirt cpu mode qemu64. This mode lacks cpu extensions like avx, avx2 which are required to run modern apps, like MongoDB 5+.
As a workaround, I managed to edit the libvirt domain, setting cpu to host-passthrough then restart the VM.
Is there a setting in MaaS than would configure the libvirt cpu to host-passthrough, or a setting to add cpu features like avx, avx2?
Quick question regarding src/provisioningserver/drivers/pod/virsh.py:
Any idea why DOM_TEMPLATE_ARM64 and others would define <cpu mode='host-passthrough'/> but DOM_TEMPLATE_AMD64 not? then fallbacks to qemu64 IIUC