大网数据广告活动
启动与系统组件

VMM installation fails with the HostAgentBadSharePathname error

· 52CE 我爱测

Discusses that you receive a HostAgentBadSharePathname error message when you try to install System Center 2012 Virtual Machine Manager. Provides a resolution.

This article discusses an issue in which you receive a HostAgentBadSharePathname error message when you try to install System Center 2012 Virtual Machine Manager.

Original product version:   Microsoft System Center 2012 R2 Virtual Machine Manager, System Center 2012 Virtual Machine Manager
Original KB number:   3004796

Symptoms

When you try to install System Center 2012 Virtual Machine Manager (VMM 2012 R2 or VMM 2012), the installation fails and you receive an error message that resembles the following:

Virtual Machine Manager cannot process the request because an error occurred while authenticating Server-SCVMM-001.Contoso.com. Possible causes are:

  1. The specified user name or password are not valid.
  2. The Service Principal Name (SPN) for the remote computer name and port does not exist.
  3. The client and remote computers are in different domains and there is not a two-way full trust between the two domains.

Log in by using an account on the same domain as the VMM management server, or by using an account on a domain that has a two-way full trust with the domain of the VMM management server, and then try the operation again. If this does not work, purge the Kerberos tickets on the VMM management server by using kerbtray.exe, available at https://www.microsoft.com/download/details.aspx?id=17657. Then, reset the SPN for Server-SCVMM-001.Contoso.com by using setspn.exe. If this still does not fix the problem, make Server-SCVMM-001.Contoso.com a member of a workgroup instead of a domain, restart the computer, rejoin the domain, and then try the operation again.

Note:
In this error message, Server-SCVMM-001.Contoso.com represents the actual server name. This error message is shown in the following screen shot.

Additionally, the following entry will be logged in the Installer (MSI) log (%ProgramData%\VMMLogs\SetupWizard.log):

10:30:07:FailureReason = Microsoft.VirtualManager.Setup.Exceptions.BackEndErrorException: Virtual Machine Manager cannot process the request because an error occurred while authenticating Server-SCVMM-001.Contoso.com. Possible causes are:

  1. The specified user name or password are not valid.
  2. The Service Principal Name (SPN) for the remote computer name and port does not exist.
  3. The client and remote computers are in different domains and there is not a two-way full trust between the two domains.

Log in by using an account on the same domain as the VMM management server, or by using an account on a domain that has a two-way full trust with the domain of the VMM management server, and then try the operation again. If this does not work, purge the Kerberos tickets on the VMM management server by using kerbtray.exe, available at https://www.microsoft.com/download/details.aspx?id=17657. Then, reset the SPN for Server-SCVMM-001.Contoso.com by using setspn.exe. If this still does not fix the problem, make Server-SCVMM-001.Contoso.com a member of a workgroup instead of a domain, restart the computer, rejoin the domain, and then try the operation again.
---> Microsoft.Carmine.WSManWrappers.WSManProviderException: Virtual Machine Manager cannot process the request because an error occurred while authenticating Server-SCVMM-001.Contoso.com. Possible causes are:

  1. The specified user name or password are not valid.
  2. The Service Principal Name (SPN) for the remote computer name and port does not exist.
  3. The client and remote computers are in different domains and there is not a two-way full trust between the two domains.

Log in by using an account on the same domain as the VMM management server, or by using an account on a domain that has a two-way full trust with the domain of the VMM management server, and then try the operation again. If this does not work, purge the Kerberos tickets on the VMM management server by using kerbtray.exe, available at https://www.microsoft.com/download/details.aspx?id=17657. Then, reset the SPN for Server-SCVMM-001.Contoso.com by using setspn.exe. If this still does not fix the problem, make Server-SCVMM-001.Contoso.com a member of a workgroup instead of a domain, restart the computer, rejoin the domain, and then try the operation again.
---> System.IO.FileNotFoundException: The network path was not found. at WSManAutomation.IWSManSession.Get(Object resourceUri, Int32 flags) at Microsoft.Carmine.WSManWrappers.MyIWSManSession.Get(Object resourceUri, Int32 flags) at Microsoft.Carmine.WSManWrappers.WsmanAPIWrapper.Get(MyWSManResourceLocator resLocator, WSManUri url, Type type, Boolean forceTypeCast) --- End of inner exception stack trace --- at Microsoft.Carmine.WSManWrappers.ErrorContextParameterHelper.ThrowTranslatedCarmineException(FileNotFoundException fioe) at Microsoft.Carmine.WSManWrappers.WsmanAPIWrapper.Get(MyWSManResourceLocator resLocator, WSManUri url, Type type, Boolean forceTypeCast) at Microsoft.Carmine.WSManWrappers.WsmanAPIWrapper.Get(WSManUri url, Type type, Boolean forceTypeCast) at Microsoft.Carmine.WSManWrappers.WSManCachedRequest`1.Get(String url) at Microsoft.Carmine.VSImplementation.WindowsAgentHostFileInformation.Refresh() at Microsoft.Carmine.VSImplementation.HostFileInformation.GetHostFileInformation(WSManConnectionParameters connParams, String filename) at Microsoft.VirtualManager.Engine.ImageLibrary.ItemBase.RetrieveFileInfo(Boolean throwOnError, ErrorInfo& errorInfo) at Microsoft.VirtualManager.Engine.ImageLibrary.VHD.RetrieveFileInfo(Boolean throwOnError, ErrorInfo& errorInfo) at Microsoft.VirtualManager.Setup.DBConfigurator.AddLibVHD(String fullyQualifiedServerName, String libFolderName, String libFileName, Int64 fileSize, String libName, CarmineObjectAccessibility accessibility, String libDescription, VHDFormatType vhdFormatType, Guid serverGuid, Guid libraryShareID, Guid osId, VHDType vhdType, VirtualizationPlatform virtualizationPlatform) at Microsoft.VirtualManager.Setup.DBConfigurator.SetupAsLibServer(Nullable`1 existingServerGuid) --- End of inner exception stack trace --- at Microsoft.VirtualManager.Setup.DBConfigurator.SetupAsLibServer(Nullable`1 existingServerGuid) at Microsoft.VirtualManager.Setup.VirtualMachineManagerHelpers.AddLibrary() at Microsoft.VirtualManager.Setup.InstallItemCustomDelegates.PangaeaServerPostinstallProcessor()
*** Carmine error was: HostAgentBadSharePathname (2917); HR: 0x80070035

The Server-SCVMM-001.Contoso.com server name also appears in a VMM debug log entry that resembles the following:

WinRM: URL: [http://Servername.Contoso.com:5985], Verb: [GET], Resource: [http://schemas.microsoft.com/wbem/wsman/1/wmi/root/scvmm/FileInformation?Filename=\\\Server-SCVMM-001.Contoso.com\MSSCVMMLibrary\VHDs\Blank Disk - Small.vhd]

Cause

This problem may occur if the name of the server contains the following characters:

-SCVMM-

This string is case-sensitive. Therefore, if the server name contains the same string in lowercase characters, or if it does not contain the two hyphen (-) characters, the setup program should not fail or generate this error.

Note:
-SCVMM- is a reserved name within the Virtual Machine Manager product.

Resolution

To resolve this problem, rename the server before you install System Center 2012 Virtual Machine Manager.

More information

For more information about how to collect a VMM debug log, see the following Microsoft Knowledge Base article:

2913445 How to enable debug logging in Virtual Machine Manager

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 04/09/2024
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。