无法将用户添加到Hyper-V管理员组的退出代码2220 [英] Unable to add user to the Hyper-V Administrators group exit code 2220

查看:172
本文介绍了无法将用户添加到Hyper-V管理员组的退出代码2220的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2015中使用Windows 10 LTSB.启用Hyper-V后,我安装了独立的Visual Studio Emulator for Android. Hyper-V可以正常运行,因为可以向其中添加虚拟机.

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.

但是,当我尝试在Visual Studio Emulator for Android Manager中创建一个android虚拟机时,它失败并显示为无法将用户添加到Hyper-V Administrators组退出代码2220".

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".

经过研究,我发现在ProgramData\Microsoft\Windows\Hyper-V\中没有Hyper-V Administrator组,也没有InitialStorage.xml.

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\.

我的hyper-v安装成功了吗?还是有什么解决方案?

Was my hyper-v installation succeed? Or is there any solution for that?

谢谢大家.

PS.记录信息:

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.

推荐答案

这是什么硬件?您的机器兼容SLAT吗?要使Hyper-V正常运行,必须使用SLAT.

What hardware is this? Is your machine SLAT compatible? SLAT is necessary to get Hyper-V up and going.

仿真器的Hyper-V要求要求处理器支持支持第二级地址转换(SLAT)的硬件.在Windows Server 2008左右的Hyper-V中引入了SLAT支持,作为一种减少虚拟机地址映射过程中开销的机制. Windows 8/10上的Hyper-V R2需要SLAT硬件,在SLAT上运行的仿真器也需要SLAT.

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?

有两种方法可以检查您是否装有SLAT硬件.最好的方法是从CodePlex( http://slatstatuscheck.codeplex.com/)下载SLATStatusCheck工具.该工具运行的是WPF 4.5应用程序,可非常简单地指示您是否具有兼容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.

另一种途径是CoreInfo.exe,它是SysInternals( http://technet.microsoft.com/zh-CN/sysinternals/cc835722.aspx ).当使用"-v"参数运行CoreInfo.exe时,"EPT支持Intel扩展页表(SLAT)"条目旁边将带有"*".注意coreinfo必须在管理员级别的命令提示符下运行.

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有时会说谎!如果您已经在运行Hyper-V,则可能会错误地在板条功能上返回"false negative". CoreInfo甚至在屏幕条目(我忽略了它)中告诉了您–注意:CoreInfo必须在没有运行虚拟机监控程序的系统上执行才能获得准确的结果".请注意,无论是否正在运行Hyper-V,SLATStatusCheck都会返回正确的结果.

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.

更多资源

  • Second Level Address Translation Benefits in Hyper-V R2 - http://www.virtualizationadmin.com/articles-tutorials/microsoft-hyper-v-articles/general/second-level-address-translation-benefits-hyper-v-r2.html
  • How to check if the Processor (CPU) supports the function SLAT? http://www.softwaretipspalace.com/how-to/260-check-slat-support-on-intel-amd-processors-cpu.html
  • SLAT Status Check Tool - http://slatstatuscheck.codeplex.com/ CoreInfo download from SysInternals - http://technet.microsoft.com/en-us/sysinternals/cc835722.aspx

(大部分)来自我的博客文章,网址为

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 .

这篇关于无法将用户添加到Hyper-V管理员组的退出代码2220的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆