"One of Hyper-V components is not running", Linux in Windows Server 2012? - linux

I am trying to get Debian working in the host Windows Server 2012 R2. The Windows Server is running on other host, macOS with Parallels. I am getting the following error One of Hyper-V components is not running. Debian 9.1.0 is not listed in the supported VMs here and only older Debians are mentioned, could this cause the error?
How to resolve this error One of Hyper-V components is not running?

You are attempting to run Hyper-V as a nested hypervisor. It must have recognized that Parallels doesn't expose required features to Windows Server VM and hence, Hyper-V hypervisor itself is not running.
Have a look at Server manager and\or event log on Windows Server, it will most probably have an error, explaining that required hardware features are not present on the host to start Hyper-V.
Parallels describes how to enable Nested virtualisation support in this Knowledge Base article on their official site.

Related

Fix application deploy error on AzureDevops

I have created release in Azure Devops, which should be deplyoing my web application to IIS which is on a physical server (Windows Server 2008) but firstly I am getting a warning:
##[Warning 1]
The operating system the agent is running on is "Windows Server" (OS name: 2008, OS version: 7601), which will not be supported by the .NET 6 based v3 agent. Please upgrade the operating system of this host to ensure compatibility with the v3 agent. See https://aka.ms/azdo-pipeline-agent-version
Then I am getting a error:
I have created an Agent on my server, and until today I was not getting this error. How could I fix this?
Windows Server 2008 reached end of life years ago, so no modern tool is going to support it any more.
You might feel lucky that things were running, but that luck finally ran out. You have to upgrade your machine to a supported Windows version.

Creating Hyper-V VM fails with failed to load a library error

I am trying to create a Ubuntu 18 VM with Hyper-V under Windows 10 Enterprise.
In particular, I want to increase the disk space.
I get an error pop-up box with the following message.
Failed to load a library required by Hyper-V Manager. To resolve the problem, close Server Manager, then open Server Manager again, and then open Hyper-V Manager again.
I am running Hyper-V quick create as an Administrator.
The Hyper-V Manager is already running.
I have tried closing and re-opening Hyper-V Manager, but still get the same error.
Hyper-V Manager gives version as 10.0.17134.1
Windows 10 gives version as 1803 (OS Build 1714.1967)
This was due to configuring more than one SCSI controller entry. In theory, this should not prevent the VM from being created, but nevertheless it does.

Running Android emulator Hyper-V based on a Azure VM Windows Server 2016

Our goal is to run UI tests with Appium on our CI build. But it seems that running the Android emulator (Hyper-V based) within virtual build machine (Windows Server 2016) on Azure might not be supported.
So my question is, does Hyper-V based nested virtualization is supported from a Windows Server 2016 virtual machine on Azure ?
note: using a CPU Android emulation is not an option
Yes, it is possible, you need to be on Dv3 or Ev3 SKU.
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/nested-virtualization

The emulator is unable to verify that the virtual machine is running

I have a vm created in Azure, Windows Server 2012, x64 with Visual Studio 2015.
I'm trying the Weather application example from the site https://taco.visualstudio.com/en-us/docs/get-started-first-mobile-app/
When I try to start the application running the emulator VS Emulator 5 KitKat (4.4) I have errors with internet connection but I actually can connect to the internet.
Just after launch the application I get this message:
I hit Accept and then, after display the screen, I get next messages (Although the message is talking about Hyper-V, i´m using my MSDN account and Azure)
When I try to start the application running the emulator VS Emulator 5 KitKat (4.4) I have errors with internet connection but I actually can connect to the internet.
VS Emulators run as Hyper-V Virtual Machines. And if you are already in a Windows Server 2012 VM environment, it is not possible to to start another VM inside of it.
In Windows Server 2016 or Windows 10 VM it is possible to start an VM inside. For details, please refer to Enable Nested Virtualization.

Windows Phone Emulator error, Hyper-V components not running, Windows 8.1 hosted in Windows Azure

Environment:
Windows 8.1 Enterprise 64-bit hosted in Windows Azure
Visual Studio Ultimate 2013 (Update 2)
I get the following error when trying to run a very simple phone app. I know MS says a VM-within-a-VM environment isn't supported, but I know it can work. Has anyone had success with this? Any help is greatly appreciated.
Windows Phone Emulator
The Windows Phone Emulator wasn't able to ensure the virtual machine was running:
Something happened while starting a virtual machine: 'Emulator WVGA 512 MB.' failed to start.
(Virtual machine ID CADD6546-129A-4683-9A2D-52EAE777E888)
The Virtual Machine Management Service failed to start the virtual machine 'Emulator WVGA 512 MB.'
because one of the Hyper-V components is not running
(Virtual machine ID CADD6546-129A-4683-9A2D-52EAE777E888).
Prior to seeing the error, the emulator emits the on-screen messages:
Loading ...
The Windows Phone OS is starting ...
And then the error. Of all the Hyper-V services available, the Hyper-V Virtual Machine Management service is the only one which is running.
Thanks,
Chris
I had the same issue with Visual Studio running on windows 8.1 in vmware player
What I had to do to solve the problem was this :
Tick the box "Virtualize Intel VT-x/EPT or AMD-V/RVI" in the processor settings of your VM
Add the line "hypervisor.cpuid.v0 = FALSE" in the file "Windows 8 x64.vmx" (add it between line 5 and 6. Not sure this matters, but at this line I'm sure it works)
Should be working fine
"You cannot host it in Azure. It needs to be a physical machine." -- Jeff Sanders (MSFT)
Florian.C's answer got me on the right track to get the emulator working correctly in VMware Fusion on my MacBook Pro. In Fusion, the settings are under the "Processors & Memory" section. You have to open the "Advanced" section at the bottom and check the "Enable hypervisor applications for this virtual machine". Once that was done, I had to also open the .vmx file and add the "hypervisor.cpuid.v0 = "FALSE"" line. Originally I copied and pasted from SO and the VM threw an error when I booted it. It turns out the " I added around FALSE were not normal quotes. Once I fixed that, the VM booted and the emulator ran just fine under Fusion. Thanks for the great info!

Resources