Hardware assisted virtualization and data execution protection must be enabled in the BIOS

Error: 도커 실행시 아래와 같은 에러 문구가 뜬다.

Hardware assisted virtualization and data execution protection must be enabled in the BIOS.

Check: Hyper-V 관련 항목들이 모두 체크 되어 있어야 한다. 

제어판 > 프로그램 > 프로그램 및 기능 > Windows 기능 켜기/끄기 (Windows 10 환경)

Hardware assisted virtualization and data execution protection must be enabled in the BIOS

[시도1] 관리자 권한으로 터미널 실행 후 아래의 명령을 실행해 Hypervisor 를 Enable

> Enable Hypervisor with following command - bcdedit /set hypervisorlaunchtype auto
> Enable Hyper V - You can do this by running the following command as administrator. - dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All

안된다 ... 

[시도2] BIOS 내에서 Virtualization 관련 설정 Enabled (참고 : https://han3126.tistory.com/341) 

- 메인보드마다 버전마다 BIOS 화면이 다를 수 있으므로 헷갈리면 각자에게 맞는 메인보드로 검색해서 보면 좋을것 같다.

[시도2] 를 한 후에 다시 Hyper-V 항목으로 돌아가면 체크할 수 있게 되어 이제부터 가상화를 사용할 수 있는 환경이 된다. 

윈도우에서 도커를 잘 사용하고있었는데 어느날 다음과 같은 에러가 떴다.

---에러내용--
Hardware assisted virtualization and data execution protection must be enabled in the BIOS. See https://docs.docker.com/docker-for-windows/troubleshoot/#virtualization-must-be-enabled

Hardware assisted virtualization and data execution protection must be enabled in the BIOS





--수정 방법--
cmd관리자 권한으로 실행 -> 아래 명령 후 실행 -> 컴퓨터 재부팅
bcdedit /set hypervisorlaunchtype auto



--상세 설명--
http://stackoverflow.com/questions/39684974/docker-for-windows-error-hardware-assisted-virtualization-and-data-execution-p





Hardware assisted virtualization and data execution protection must be enabled in the BIOS
Hardware assisted virtualization and data execution protection must be enabled in the BIOS

Hardware assisted virtualization and data execution protection must be enabled in the BIOS.

BIOS에서 virtualization 옵션을 조정해주어야 합니다.

Hardware assisted virtualization and data execution protection must be enabled in the BIOS
Hardware assisted virtualization and data execution protection must be enabled in the BIOS

PC BIOS 설정을 확인합니다. 메인보드 사양마다 달라서 제 BIOS 를 캡처했습니다.

Intel Virtualization Technology 를 Disable -> Enabled 로 변경합니다.

Hardware assisted virtualization and data execution protection must be enabled in the BIOS
Hardware assisted virtualization and data execution protection must be enabled in the BIOS
Docker Engine starting

▶ Docker Engine이 정상 동작합니다.

저작자표시비영리변경금지

'초보 개발자 > Docker & Kubernetes' 카테고리의 다른 글

[Docker] Hardware assisted virtualization and data execution protection must be enabled in the BIOS 오류  (0) 2021.11.24

How do I enable hardware assisted virtualization and data execution protection in the BIOS?

Hardware assisted virtualization and data execution protection must be enabled in the BIOS.
Enable Hyper V - You can do this by running the following command as administrator. - dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All..
Enable Hypervisor with following command - bcdedit /set hypervisorlaunchtype auto ..

How do I enable hardware assisted virtualization in BIOS?

Enabling Hardware Virtualization.
Reboot your Computer and Press the BIOS Key. ... .
Locate the section for CPU configuration. ... .
Find the Settings for Virtualization. ... .
Select the Option for Enabling Virtualization. ... .
Save the Changes You Have Made. ... .
Exit Your BIOS and Reboot Your Computer..

What does hardware assisted virtualization do?

Hardware-assisted virtualization is the use of a computer's physical components to support the software that creates and manages virtual machines (VMs). Virtualization is an idea that traces its roots back to legacy mainframe system designs of the 1960s.