Ensure that Virtual Machine Platform is enabled in optional Windows features Windows 11

개요

Android 개발환경을 설정하며 의도치 않게 WSL2의 구동에 영향을 미치는 환경설정을 변경하였습니다.

C:\Windows\system32>wsl 가상 컴퓨터 플랫폼 Windows 기능을 사용하도록 설정하고 BIOS에서 가상화가 사용하도록 설정되어 있는지 확인 하세요.

위 오류 문구를 통해 검색하여, 웹에 제시되어 있는 해결법에 따라 Linux 용 Windows 하위 시스템, 가상 머신 플랫폼 을 비활성화, 재부팅, 활성화, 재부팅하였으나 개선되지 않았습니다.

그래서 검색어를 변경하여 아래와 같이 영문 오류 메시지를 이용하여 검색하여 해결방법을 찾았고 이를 공유합니다.

Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.

해결

문제 확인 및 진단

# 관리자 권한으로 cmd 실행 # 진단 C:\Windows\system32>bcdedit Windows 부팅 관리자 -------------------- identifier {bootmgr} device partition=\Device\HarddiskVolume2 path \EFI\Microsoft\Boot\bootmgfw.efi description Windows Boot Manager locale ko-KR inherit {globalsettings} default {current} resumeobject {fa42bf7d-49fa-11e9-b4b3-8caa000d495c} displayorder {current} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215} toolsdisplayorder {memdiag} timeout 30 Windows 부팅 로더 ------------------- identifier {current} device partition=C: path \Windows\system32\winload.efi description Windows 10 locale ko-KR inherit {bootloadersettings} recoverysequence {fa42bf7f-49fa-11e9-b4b3-8caa000d495c} displaymessageoverride Recovery recoveryenabled Yes isolatedcontext Yes allowedinmemorysettings 0x15000075 osdevice partition=C: systemroot \Windows resumeobject {fa42bf7d-49fa-11e9-b4b3-8caa000d495c} nx OptIn bootmenupolicy Standard hypervisorlaunchtype Off

hypervisorlaunchtype 항목이 off로 되어 있는 것이 문제라고 합니다.

조치

아래와 같이 hypervisorlaunchtype 항목을 auto 로 변경한 후, 재부팅합니다.

C:\Windows\system32>bcdedit /set hypervisorlaunchtype auto

참고

  • Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
  • WSL2 ERROR [가상 컴퓨터 플랫폼 Windows 기능을 사용하도록 설정하고 BIOS에서 가상화가 사용하도록 설정되어 있는지 확인하세요.]
  • WSL CODE 4294967295 오류와 해결

이 문서는 자동으로 번역되었을 수 있습니다. 번역 품질에 대한 의견이 있는 경우 페이지 하단의 양식을 사용해 알려 주시기 바랍니다.

문서 콘텐츠


지침

Windows 가상화 활성화 또는 비활성화:

  1. Windows 기능 툴을 실행합니다.
    1. 검색 아이콘을 클릭합니다.
    2. 검색 필드에 Windows 기능 켜기 또는 끄기를 입력합니다.
    3. Open을 클릭합니다.

      Ensure that Virtual Machine Platform is enabled in optional Windows features Windows 11

  2. 가상 머신 플랫폼Windows 하이퍼바이저 플랫폼 옵션을 확인(또는 선택 취소)합니다.

    Ensure that Virtual Machine Platform is enabled in optional Windows features Windows 11

  3. OK를 클릭합니다.
  4. Windows에서 필요한 VMP 종속성을 추가하고 결국 재부팅을 요청합니다.

추가 정보

  • Dell 시스템에서 하드웨어 가상화를 활성화 또는 비활성화하는 방법
  • Android™용 Windows 서브시스템(Microsoft.com)
  • Android용 Windowsemoji 서브시스템 | Microsoft 문서

문서 속성


영향을 받는 제품

Desktops & All-in-Ones, Laptops, Workstations

마지막 게시 날짜

15 2 2022

버전

5

문서 유형

How To

죄송합니다. 현재 피드백 시스템은 사용하실 수 없습니다. 잠시 후에 다시 시도하십시오.

의견에는 <>()\와 같은 특수 문자를 사용할 수 없습니다.

I want to use Windows Subsystem for Android on Windows 11. I encountered a problem while following the article in the link step by step. When I try to open an app (in Amazon Store or files app in wsa menu) it gives me this error:

Ensure that Virtual Machine Platform is enabled in optional Windows features. Ensure that your device has virtualization enabled in the bios...

I already have Virtual Machine Platform, Hyper-V and Hypervisor turned on in Windows features. And Intel virtualization technology turned on in bios.

Ensure that Virtual Machine Platform is enabled in optional Windows features Windows 11
.

I found this commands in Web for turn on Hyper-V and Hypervisor on command line:

DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V bcdedit /set hypervisorlaunchtype auto

However I'am still get same error.

I apologize if I missed something. Thanks...

Environment

C:\Users\Liu.D.H>ver Microsoft Windows [Version 10.0.19041.264] C:\Users\Liu.D.H>bcdedit Windows Boot Manager -------------------- identifier {bootmgr} device partition=\Device\HarddiskVolume1 description Windows Boot Manager locale en-US inherit {globalsettings} default {current} resumeobject {8c132511-806f-11e9-8860-f798d1b7a8f1} displayorder {current} {89f269f4-cc9f-11e6-8727-64006a16df31} {8c132516-806f-11e9-8860-f798d1b7a8f1} toolsdisplayorder {memdiag} timeout 5 Windows Boot Loader ------------------- identifier {current} device partition=C: path \WINDOWS\system32\winload.exe description Windows 10 locale en-US inherit {bootloadersettings} recoverysequence {8c132514-806f-11e9-8860-f798d1b7a8f1} displaymessageoverride Recovery recoveryenabled Yes allowedinmemorysettings 0x15000075 osdevice partition=C: systemroot \WINDOWS resumeobject {8c132511-806f-11e9-8860-f798d1b7a8f1} nx OptIn bootmenupolicy Legacy hypervisorlaunchtype Off Windows Boot Loader ------------------- identifier {89f269f4-cc9f-11e6-8727-64006a16df31} device partition=\Device\HarddiskVolume1 path \Windows\system32\winload.exe description Windows 7 locale zh-CN inherit {bootloadersettings} osdevice partition=\Device\HarddiskVolume1 systemroot \Windows resumeobject {89f269f3-cc9f-11e6-8727-64006a16df31} nx OptIn detecthal Yes Windows Boot Loader ------------------- identifier {8c132516-806f-11e9-8860-f798d1b7a8f1} device partition=C: path \WINDOWS\system32\winload.exe description Windows10 with Hyper-V locale en-US inherit {bootloadersettings} recoverysequence {8c132514-806f-11e9-8860-f798d1b7a8f1} displaymessageoverride Recovery recoveryenabled Yes allowedinmemorysettings 0x15000075 osdevice partition=C: systemroot \WINDOWS resumeobject {8c132511-806f-11e9-8860-f798d1b7a8f1} nx OptIn bootmenupolicy Legacy hypervisorlaunchtype Auto C:\Users\Liu.D.H>systeminfo Host Name: DESKTOP-LDH OS Name: Microsoft Windows 10 Education OS Version: 10.0.19041 N/A Build 19041 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Workstation OS Build Type: Multiprocessor Free Registered Owner: Windows User Registered Organization: Product ID: 00328-10000-00001-AA635 Original Install Date: 2020-05-11, 22:13:14 System Boot Time: 2020-06-08, 10:12:11 System Manufacturer: Dell Inc. System Model: Vostro 3900 System Type: x64-based PC Processor(s): 1 Processor(s) Installed. [01]: Intel64 Family 6 Model 60 Stepping 3 GenuineIntel ~3601 Mhz BIOS Version: Dell Inc. A10, 2015-07-30 Windows Directory: C:\WINDOWS System Directory: C:\WINDOWS\system32 Boot Device: \Device\HarddiskVolume1 System Locale: zh-cn;Chinese (China) Input Locale: zh-cn;Chinese (China) Time Zone: (UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi Total Physical Memory: 16,301 MB Available Physical Memory: 9,703 MB Virtual Memory: Max Size: 33,709 MB Virtual Memory: Available: 26,300 MB Virtual Memory: In Use: 7,409 MB Page File Location(s): C:\pagefile.sys Domain: WORKGROUP Logon Server: \\DESKTOP-LDH Hotfix(s): 6 Hotfix(s) Installed. [01]: KB4552925 [02]: KB4534170 [03]: KB4537759 [04]: KB4545706 [05]: KB4557968 [06]: KB4556803 Network Card(s): 4 NIC(s) Installed. [01]: TAP-Windows Adapter V9 Connection Name: 以太网 Status: Media disconnected [02]: Realtek PCIe GBE Family Controller Connection Name: Ethernet_Realtek DHCP Enabled: Yes DHCP Server: 113.55.112.1 IP address(es) [01]: 113.55.127.140 [02]: fe80::3d0a:ecde:2178:d77c [03]: 2001:250:2800:cc09:6600:6aff:fe16:df31 [03]: Realtek RTL8188CU Wireless LAN 802.11n USB 2.0 Network Adapter Connection Name: Wi-Fi 2 Status: Media disconnected [04]: Microsoft KM-TEST Loopback Adapter Connection Name: Npcap Loopback Adapter DHCP Enabled: Yes DHCP Server: 255.255.255.255 IP address(es) [01]: 169.254.104.11 [02]: fe80::d8bf:11ab:7b05:680b Hyper-V Requirements: VM Monitor Mode Extensions: Yes Virtualization Enabled In Firmware: Yes Second Level Address Translation: Yes Data Execution Prevention Available: Yes C:\Users\Liu.D.H>

Ensure that Virtual Machine Platform is enabled in optional Windows features Windows 11

Steps to reproduce

Open Ubuntu 18.04 or 20.04.

Expected behavior

Works as expected.

Actual behavior

Ensure that Virtual Machine Platform is enabled in optional Windows features Windows 11

I can confirm that I have enabled Virtual Machine Platform and VT-x. But the errors when I started Ubuntu is confused.
And for some reasons I do not want to enable Hyper-V features. From the doc (https://docs.microsoft.com/en-us/windows/wsl/), it is not a requirement for WSL2.

How do I enable virtual machine in Windows 11?

Step one: Access the UEFI (or BIOS).
Save your work and close any open apps..
Select Start > Settings > System > Recovery > Advanced startup, then select Restart now..
Once your PC restarts, you'll see a screen that displays Choose an option. ... .
Your PC will restart again and you'll be in the UEFI utility..

How do I enable the virtual machine option platform optional?

Article Content.
Launch the Windows Features tool: Click the Search icon. Type Turn Windows features on or off in the search field. Click Open..
Check (or clear) the Virtual Machine Platform and Windows Hypervisor Platform options..
Click OK..
Windows adds the required VMP dependencies and asks to reboot..

How do I know if virtualization is enabled in Windows 11?

Press the 'Win' key to bring the Start Menu or simply press the 'Search' button in Windows to bring the Search bar..
Now, type 'MSInfo32' and press enter..
Once you scroll all the way down inside the 'System Information' app, you will see whether VBS is enabled on your PC..

How do I enable virtualization based security in Windows 11?

Enable virtualization-based security: Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard . Add a new DWORD value named EnableVirtualizationBasedSecurity. Set the value of this registry setting to 1 to enable virtualization-based security and set it to 0 to disable it.