我正在运行独立的 Hyper-V Server 2012,并尝试在其上创建第一个 VM,但出现以下错误:
根据我的研究,这个错误与 Intel IPMI 驱动程序有关,但我有一块华硕主板,所以我不认为这是问题所在。然而,我还是运行了 ResetAccess.exe 修复程序,不出所料,它说的是“此版本的 Windows 不需要此修复程序”。
谢谢
答案1
这几乎肯定是由于 NTFS 权限造成的。您是否尝试过在 C:\Users 文件夹下以外的其他地方创建机器?也许可以尝试创建一个新文件夹并授予该Everyone
组对该文件夹的完全访问权限,看看您是否可以在其中创建虚拟机。我不建议您保留这样的权限设置,但这可以确认这是文件系统权限问题。
主机服务器是否安装了其他角色?例如,它是域控制器吗?
答案2
好的,我有一个类似问题,但并不完全相同,所以我将我获得的知识留在这里以供将来参考:
完全搞砸了文件夹权限在我的 Hyper-V 服务器上,我在创建 VM、启动或恢复复制等时开始收到相同的 0x80070005 访问被拒绝错误。
我的故障排除方法是使用 SysInternals ProcMon全部捕获vmms.exe 活动在出现此错误的操作期间。我必须在主服务器和副本服务器上执行此操作,才能找出错误实际发生在哪一台服务器上。
这让我发现 vmms.exe 访问哪些文件实际上存在问题。我有另一台运行良好的 Hyper-V 服务器,我用它来比较该服务器上的权限设置,并发现缺少了什么。
问题围绕两个目录及其子目录:
c:\ProgramData\Microsoft\Windows\Hyper-V(这是所有 Hyper-V 2012 服务器上都存在的配置目录)
e:\hyper-V 副本(这是我设置的接收复制的目录)
工作服务器上的许多权限在损坏的服务器上神秘地消失了。使用正确的设置,我编写了这个批处理文件以在损坏的服务器上运行:
echo WARNING: back up before running this! Could damage your server and data! Make sure you know what you're doing.
echo Hit CTRL-Break to cancel.
pause
c:
cd c:\ProgramData\Microsoft\Windows\Hyper-V
icacls "InitialStore.xml" /T /grant:r "BUILTIN\Administrators":(F)
icacls "InitialStore.xml" /T /grant:r "NT AUTHORITY\SYSTEM":(F)
icacls "InitialStore.xml" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(R)
icacls "Planned Snapshots" /T /grant:r "BUILTIN\Administrators":(F)
icacls "Planned Snapshots" /T /grant:r "BUILTIN\Administrators":(OI)(CI)(IO)(F)
icacls "Planned Snapshots" /T /grant:r "NT AUTHORITY\SYSTEM":(F)
icacls "Planned Snapshots" /T /grant:r "NT AUTHORITY\SYSTEM":(OI)(CI)(IO)(F)
icacls "Planned Snapshots" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(R,WD,AD)
icacls "Planned Snapshots" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(CI)(IO)(GR,WD,AD)
icacls "Planned Snapshots" /T /grant:r "CREATOR OWNER":(OI)(CI)(IO)(F)
icacls "Planned Snapshots Cache" /T /grant:r "BUILTIN\Administrators":(F)
icacls "Planned Snapshots Cache" /T /grant:r "BUILTIN\Administrators":(OI)(CI)(IO)(F)
icacls "Planned Snapshots Cache" /T /grant:r "NT AUTHORITY\SYSTEM":(F)
icacls "Planned Snapshots Cache" /T /grant:r "NT AUTHORITY\SYSTEM":(OI)(CI)(IO)(F)
icacls "Planned Snapshots Cache" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(R,WD,AD)
icacls "Planned Snapshots Cache" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(CI)(IO)(GR,WD,AD)
icacls "Planned Snapshots Cache" /T /grant:r "CREATOR OWNER":(OI)(CI)(IO)(F)
icacls "Planned Virtual Machines" /T /grant:r "BUILTIN\Administrators":(F)
icacls "Planned Virtual Machines" /T /grant:r "BUILTIN\Administrators":(OI)(CI)(IO)(F)
icacls "Planned Virtual Machines" /T /grant:r "NT AUTHORITY\SYSTEM":(F)
icacls "Planned Virtual Machines" /T /grant:r "NT AUTHORITY\SYSTEM":(OI)(CI)(IO)(F)
icacls "Planned Virtual Machines" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(R,WD,AD)
icacls "Planned Virtual Machines" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(CI)(IO)(GR,WD,AD)
icacls "Planned Virtual Machines" /T /grant:r "CREATOR OWNER":(OI)(CI)(IO)(F)
icacls "Planned Virtual Machines Cache" /T /grant:r "BUILTIN\Administrators":(F)
icacls "Planned Virtual Machines Cache" /T /grant:r "BUILTIN\Administrators":(OI)(CI)(IO)(F)
icacls "Planned Virtual Machines Cache" /T /grant:r "NT AUTHORITY\SYSTEM":(F)
icacls "Planned Virtual Machines Cache" /T /grant:r "NT AUTHORITY\SYSTEM":(OI)(CI)(IO)(F)
icacls "Planned Virtual Machines Cache" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(R,WD,AD)
icacls "Planned Virtual Machines Cache" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(CI)(IO)(GR,WD,AD)
icacls "Planned Virtual Machines Cache" /T /grant:r "CREATOR OWNER":(OI)(CI)(IO)(F)
icacls "Resource Types" /T /grant:r "BUILTIN\Administrators":(F)
icacls "Resource Types" /T /grant:r "BUILTIN\Administrators":(OI)(CI)(IO)(F)
icacls "Resource Types" /T /grant:r "NT AUTHORITY\SYSTEM":(F)
icacls "Resource Types" /T /grant:r "NT AUTHORITY\SYSTEM":(OI)(CI)(IO)(F)
icacls "Resource Types" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(R,WD,AD)
icacls "Resource Types" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(CI)(IO)(GR,WD,AD)
icacls "Resource Types" /T /grant:r "CREATOR OWNER":(OI)(CI)(IO)(F)
icacls "Snapshots" /T /grant:r "BUILTIN\Administrators":(F)
icacls "Snapshots" /T /grant:r "BUILTIN\Administrators":(OI)(CI)(IO)(F)
icacls "Snapshots" /T /grant:r "NT AUTHORITY\SYSTEM":(F)
icacls "Snapshots" /T /grant:r "NT AUTHORITY\SYSTEM":(OI)(CI)(IO)(F)
icacls "Snapshots" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(R,WD,AD)
icacls "Snapshots" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(CI)(IO)(GR,WD,AD)
icacls "Snapshots" /T /grant:r "CREATOR OWNER":(OI)(CI)(IO)(F)
icacls "Snapshots Cache" /T /grant:r "BUILTIN\Administrators":(F)
icacls "Snapshots Cache" /T /grant:r "BUILTIN\Administrators":(OI)(CI)(IO)(F)
icacls "Snapshots Cache" /T /grant:r "NT AUTHORITY\SYSTEM":(F)
icacls "Snapshots Cache" /T /grant:r "NT AUTHORITY\SYSTEM":(OI)(CI)(IO)(F)
icacls "Snapshots Cache" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(R,WD,AD)
icacls "Snapshots Cache" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(CI)(IO)(GR,WD,AD)
icacls "Snapshots Cache" /T /grant:r "CREATOR OWNER":(OI)(CI)(IO)(F)
icacls "Virtual Machines" /T /grant:r "BUILTIN\Administrators":(F)
icacls "Virtual Machines" /T /grant:r "BUILTIN\Administrators":(OI)(CI)(IO)(F)
icacls "Virtual Machines" /T /grant:r "NT AUTHORITY\SYSTEM":(F)
icacls "Virtual Machines" /T /grant:r "NT AUTHORITY\SYSTEM":(OI)(CI)(IO)(F)
icacls "Virtual Machines" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(R,WD,AD)
icacls "Virtual Machines" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(CI)(IO)(GR,WD,AD)
icacls "Virtual Machines" /T /grant:r "CREATOR OWNER":(OI)(CI)(IO)(F)
icacls "Virtual Machines Cache" /T /grant:r "BUILTIN\Administrators":(F)
icacls "Virtual Machines Cache" /T /grant:r "BUILTIN\Administrators":(OI)(CI)(IO)(F)
icacls "Virtual Machines Cache" /T /grant:r "NT AUTHORITY\SYSTEM":(F)
icacls "Virtual Machines Cache" /T /grant:r "NT AUTHORITY\SYSTEM":(OI)(CI)(IO)(F)
icacls "Virtual Machines Cache" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(R,WD,AD)
icacls "Virtual Machines Cache" /T /grant:r "NT VIRTUAL MACHINE\Virtual Machines":(CI)(IO)(GR,WD,AD)
icacls "Virtual Machines Cache" /T /grant:r "CREATOR OWNER":(OI)(CI)(IO)(F)
(我没有费心检查所有目录是否都相同,也许是相同的,您只需使用上一级目录的几个命令进行设置即可)
我不得不在我的 Hyper-V Replica 目录中执行类似操作以使复制再次起作用。
我希望这可以帮助别人...