Enable VirtualBox AVX2
- Check cpuflags: use
cat /proc/cpuinfoon GNU/Linux, or checkStructured Extended Feature Flags Enumerationsection in VirtualBox log(VBox.log); AVX2 could be enabled only if cpu has AVX2 flag. - Execute
vboxmanage setextradata "VM_NAME" VBoxInternal/CPUM/IsaExts/AVX2 1, replace “VM_NAME” with your name of VM to enable AVX2. If you’re running VM on Windows host,vmboxmanageis in the installation directory of VirtualBox, the same folder ofVirtualBox.exe. - Just boot your VM to check if AVX2 is enabled.
Reference: AskUbuntu