While publishing through visual studio, facing the issue "The virtual machine could not be started because a required feature is not installed."

Vivek Sagar Pandey 386 Reputation points
2020-12-10T18:38:23.083+00:00

Hi There,

I have created a Azure Virtual machine, windows 10 pro. Installed docker in it.
I am trying to publish a code-base for OPC Publisher Edge module to Container registry using Visual studio 2019.

The systeminfo shows the following:

"Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed."

While publishing the code it throws the following error:


1>Step 6/17 : RUN dotnet restore "opcpublisher/opcpublisher.csproj"
1> ---> Running in a13f7240c82c
1>Removing intermediate container a13f7240c82c
1>hcsshim::CreateComputeSystem a13f7240c82c1a570cfaf4f91d4833431f57393b6fd3903848cbd6c4f4e5c449: The virtual machine could not be started because a required feature is not installed.
.
.
.
1>Docker command failed with exit code 1.
1>hcsshim::CreateComputeSystem a13f7240c82c1a570cfaf4f91d4833431f57393b6fd3903848cbd6c4f4e5c449: The virtual machine could not be started because a required feature is not installed.


Any solution for this issue is really appreciated. Thanks in Advance!

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
543 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,196 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,415 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,643 questions
0 comments No comments
{count} votes

Accepted answer
  1. Winston 2,761 Reputation points
    2020-12-11T00:52:48.607+00:00

    Hi @Vivek Sagar Pandey ,

    That systeminfo dialog is stating that your attempting to publish a virtualized artifact on-top of an existing virtualization. This is called Nested Virtualization and it's not enabled on everything by default. For how to enable nested virtualization on a VM more please see this doc.

    0 comments No comments

0 additional answers

Sort by: Most helpful