I launch Windows PowerShell as administrator and type wsl --install Ubuntu-24.04
This attempts to install ubuntu but then gives me an error sayingWSL2 is not supported with your current machine configurationand it recommends I run wsl.exe --install --no-distribution

I enter wsl.exe --install --no-distribution as suggested and it givesThe operation completed successfully. However if i repeat the same steps as before to try and install ubuntu it gives the same results.

Similarly, if I go to my start menu, search for ubuntu and click on Ubuntu 24.04.1 LTS it begins to install but quickly gives error message 0x80370102. Again related to virtualisation

Troubleshooting steps I have tried:
I have checked in my BIOS that all settings related to virtualization are enabled.
I have checked in Task Manager > Performance and it says Virtualization:Enabled

- I have checked in Windows Features that Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform and Windows Subsystem for Linux are all turned on. I have also tried turning these off, restarting, turning them on, restarting

I have tried enabling Windows Sandbox and restarting
I have tried
wsl --updatebut I am already up to date

- I have checked that hypervisorlaunchtype is on Auto

- In Windows Security -> Device Security -> Core Isolation I have tried with and without Memory Integrity enabled (after restart)
Is there anything I am missing here? I have had a look at related posts already but I'm really stuck, hence my post here.