I was using Windows 10 LTSB with Visual Studio 2015. After enabled Hyper-V
, I installed the standalone Visual Studio Emulator for Android
. The Hyper-V functioned well since it's okay to add virtual machine to it.
However, when I was trying to create an android virtual machine in the Visual Studio Emulator for Android Manager
, it failed with "Unable to add user to the Hyper-V Administrators group exit code 2220".
After some research I found there's no Hyper-V Administrator
group as well as no existence of InitialStorage.xml
in ProgramData\Microsoft\Windows\Hyper-V\
.
Was my hyper-v installation succeed? Or is there any solution for that?
Thanks everyone.
PS. logging information:
2015/8/15 12:44:53: [Informational] Reinitializing installed profiles.
2015/8/15 12:44:53: [Informational] Installed profiles initialized. Devices: 3 Platforms: 1
2015/8/15 12:44:53: [Informational] Reinitializing installable profiles.
2015/8/15 12:44:53: [Informational] Installable profiles initialized. Devices: 30 Platforms: 4
2015/8/15 12:45:00: [Informational] Waiting to uninstall device...
2015/8/15 12:45:00: [Informational] Uninstalling Device: 4.5" KitKat (4.4) HDPI Phone
2015/8/15 12:45:00: [Informational] Uninstalling virtual machine for 4.5" KitKat (4.4) HDPI Phone
2015/8/15 12:45:01: [Critical] Unable to add user to the Hyper-V Administrators group. Exit code 2220.
What hardware is this? Is your machine SLAT compatible? SLAT is necessary to get Hyper-V up and going.
The emulator’s Hyper-V requirement requires a processor that supports Second Level Address Translation ( SLAT ) enabled hardware. SLAT support was introduced to Hyper-V circa Windows Server 2008 as a mechanism to reduce overhead during address mapping for virtual machines. Hyper-V R2 on Windows 8/10 requires SLAT hardware, and emulators that run on SLAT do as well.
GOT SLAT?
There are two methods to check if you have SLAT hardware. The best route is download the SLATStatusCheck tool from CodePlex ( http://slatstatuscheck.codeplex.com/ ). This tool runs is a WPF 4.5 app which very simply indicates if you have SLAT compatible hardware or not. The tool is open source if you want to see how to do the checks yourself in code.
The other route is CoreInfo.exe, a tool available from SysInternals ( http://technet.microsoft.com/en-us/sysinternals/cc835722.aspx ). When you run CoreInfo.exe with a “-v” parameter, you will have a “*” next to the “EPT Supports Intel extended page tables (SLAT)” entry. Note coreinfo must be run in an admin level command prompt.
CoreInfo can sometimes lie! If you’ve already got Hyper-V running, it may erroneously return a “false negative” on the slat capabilities. CoreInfo even tells you this in a screen entry (which I overlooked) – “Note: CoreInfo must be executed on a system without a hypervisor running for accurate results”. Note that SLATStatusCheck returns the correct results regardless of whether Hyper-V is running or not.
MORE RESOURCES
Taken (mostly) from my blog post at http://blogs.msdn.com/b/devfish/archive/2012/11/06/are-you-slat-compatible-wp8-sdk-tip-01.aspx .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With