WSL: Problema ao iniciar o ubuntu wsl2
Environment
Habilite o recurso Plataforma de Máquina Virtual do Windows e verifique se a virtualização está habilitada no BIOS. Para obter mais informações, acesse https://aka.ms/wsl2-install Press any key to continue...
Steps to reproduce
WSL logs: Habilite o recurso Plataforma de Máquina Virtual do Windows e verifique se a virtualização está habilitada no BIOS. Para obter mais informações, acesse https://aka.ms/wsl2-install Press any key to continue…
Expected behavior
Actual behavior
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 17
Execute no PowerShell como Administrador:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartdism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestartReinicie o computador e execute esses:
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-Vbcdedit /set hypervisorlaunchtype autoReinicie o computador e pronto!
Conforme destacado por @stavski, em alguns casos pode ser necessário verificar e reparar a imagem do Windows. Para isso, antes de tudo, execute os comandos:
DISM /Online /Cleanup-image /ScanhealthDISM /Online /Cleanup-image /RestorehealthObrigado funcionou corretamente mas tive que executar esses dois comandos antes de tudo e reiniciar o pc.
DISM /Online /Cleanup-image /Scanhealth DISM /Online /Cleanup-image /Restorehealth
It worked on win11
Consegui e finalmente deu certo esse erro, obrigado
Thanks!! It worked on win11 2023. /o/