Установка docker в виртуальную машину

На гипервизоре в powershell включить у нужной машины поддержку vt-x
Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true

На виртуальной машине
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl –install
wsl –list –online
wsl –install -d Ubuntu-20.04
wsl –setdefault Ubuntu-20.04
wsl –set-default-version 2

VMware Workstation and Hyper-V are not compatible

Если Hyper-V у вас в системе не установлен, то вы можете нормально установить и пользоваться VMWare Workstation.
Если у вас тоже возникла ошибка “VMware Workstation and Hyper-V are not compatible. Remove the Hyper-V role from the system before running VMware Workstation”:

То нужно произвести следующие действия:

Вбить в поиск фразу “включение или отключение компонентов Windows”
В разделе “Параметры” выбрать соответствующий пункт:
Отключить компоненты Hyper-V

Перезагрузиться

Вариант через cmd:
This is because the Hyper-V role is installed and this conflicts with VMware Workstation. To disable Hyper-V from starting the following command can be used:

bcdedit /set hypervisorlaunchtype off
A reboot of of the Windows OS is necessary.
To enable the Hyper-V role again use the following command:
bcdedit /set hypervisorlaunchtype auto
A reboot of of the Windows OS is necessary.

How to fix hyper-v cannot be installed a hypervisor is already running

Enable-WindowsOptionalFeature –Online -FeatureName Microsoft-Hyper-V –All -NoRestart

The above command installs only the hypervisor but does not install the administration tools, if you want to manage the Hyper-V within the virtual machine you must install RSAT for Hyper-V to do this run the following command:

Install-WindowsFeature RSAT-Hyper-V-Tools -IncludeAllSubFeature

you want to create a cluster then you need to install the Cluster service, run:
Install-WindowsFeature RSAT-Clustering -IncludeAllSubFeature

you can install Multipath I/O to enable multiple paths to the storage, if this is your case follow:
Install-WindowsFeature Multipath-IO

Restart to finalize the virtual machine with the command:
Restart-Computer

Scroll to top