AVX and VirtualBox v6.1.18 r142142

Discussions related to using VirtualBox on Windows hosts.
Post Reply
texace
Posts: 3
Joined: 26. Feb 2021, 14:52

AVX and VirtualBox v6.1.18 r142142

Post by texace »

Hi. I need to use AVX instructions in my project on guest Ubuntu 18.04, but Ubuntu does't have them. I have Ryzen 1600 and according to the specification it has the necessary instructions. On my host machine(Win 10) all work fine.

The output of "cat /proc/cpuinfo":

Code: Select all

...
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx fxsr_opt rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid tsc_known_freq pni ssse3 sse4_1 sse4_2 hypervisor lahf_lm cmp_legacy cr8_legacy 3dnowprefetch ssbd vmmcall fsgsbase arat
...
I tried to use this command on my host:

Code: Select all

VBoxManage setextradata "$vm_name" VBoxInternal/CPUM/IsaExts/AVX2 1
as said on askubuntu(i can't post links, but this is the last part of link - "questions/699077/how-to-enable-avx2-extensions-on-a-ubuntu-guest-in-virtualbox-5"), but nothing happened.

So, what should i do? Maybe someone has encountered this error?
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: AVX and VirtualBox v6.1.18 r142142

Post by fth0 »

Please post a zipped VBox.log file.
texace
Posts: 3
Joined: 26. Feb 2021, 14:52

Re: AVX and VirtualBox v6.1.18 r142142

Post by texace »

Here
Attachments
Logs.rar
(140.75 KiB) Downloaded 133 times
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: AVX and VirtualBox v6.1.18 r142142

Post by fth0 »

You have Hyper-V enabled on your host, and it blocks AVX and AVX2. See HMR3Init: Attempting fall back to NEM (Hyper-V is active), especially the bcdedit and shutdown commands.
texace
Posts: 3
Joined: 26. Feb 2021, 14:52

Re: AVX and VirtualBox v6.1.18 r142142

Post by texace »

Thank you, it was really helpful.
Steve6375
Posts: 25
Joined: 4. Jul 2013, 22:19

Re: AVX and VirtualBox v6.1.18 r142142

Post by Steve6375 »

I fixed the x86-64 v2 not supported issue by enabling Nested Paging in System - Acceleration
Post Reply