Virtualization

Please enable the Virtual Machine Platform Windows Feature and ensure Virtualization is enabled in the BIOS: How to enable virtualization (VT-X) in VMWare workstation

nested-virtualization

Docker is an open-source containerization platform that enables developers to package apps into containers and standardized executable components combining application source code with the operating system (OS) libraries and dependencies required to run that code in any environment. You need Docker in order to work with Windows Containers. Docker consists of the Docker Engine (dockerd.exe), and the Docker client (docker.exe). Kindly refer to these related guides: How to create and deploy a local Registry Server with Docker Image, how to Pull your first Nginx Container Image from Docker Hub and deploy it to your local machine, Azure DevOps and GitHub integration for Docker and Kubernetes deployment, how to create a static pod in Kubernetes, and how to install, register and start GitLab Runner on Windows.

The following errors below will be prompted because the prerequisite for installing Docker Desktop on a VM wasn't met. One of the requirements is to enable "BIOS-level hardware virtualization support must be enabled in the BIOS settings". This was omitted and therefore the below error was prompted.

Please see the how to install and uninstall Docker Desktop on Windows 10 and Windows Server.

Note: Even when you reset the factory default, this has its implications and will not resolve the issue. Restoring to factory defaults reset and destroys all Docker containers and images local to the machine, and restores the application to its original state, as when it was first installed.

Solution: Enable the Virtualization Engine (VT-x/EPT or V/RVI)

In order to have the same physical CPU prerequisites as you did in the past to run “Nested Virtualization“. We will be enabling the following features below.

  • Intel VT-x or AMD-V is required for running “Nested Virtualization” which supports nested 32-bit VMs
  • Intel EPT or AMD RVI is required for running nested 64-bit VMs.

In order to enable Virtualization on a VM, you will need to shut down the Virtual machine (VM). Right-click on the VM and select “Settings”.
– Alternatively, you can click on the VM and the VM details will be displayed. Just click on Edit virtual machine settings.

Screenshot-2021-10-17-at-17.06.52

Regardless of the steps chosen above, this will open up the Virtual Machine Settings window as shown below.
– Check (tick) the option to enable VT-x/EPT or V/RVI to have it enabled and
– Click on OK to complete the process.

Screenshot-2021-10-17-at-17.13.12
You do not need to edit the machines .vmx file after performing the opertions above. This is sufficient!

Please proceed with using your VM by powering it on. Double click on the Docker Desktop to launch it. After a while, the following window below will be displayed.
– Click on Start to continue using Docker Desktop.

Screenshot-2021-10-17-at-17.32.43

When you click on Start, the following tutorial window will be displayed. For me, I am not interested in cloning a repository, etc. Therefore, I will be skipping the tutorial as shone below.

Screenshot-2021-10-17-at-17.33.06

From now henceforth, you should be able to perform any docker-related operation without issues. Here is a guide on how to update Fujitsu server BIOS

Screenshot-2021-10-17-at-17.33.41

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x