Amazon Systems Manager for Microsoft SCVMM 问题排查 - Amazon Elastic Compute Cloud
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

Amazon Systems Manager for Microsoft SCVMM 问题排查

以下是常见的错误和故障排除步骤。

错误:无法安装插件

如果收到以下错误,请尝试在运行 VMM 控制台的计算机上安装 KB2918659。有关更多信息,请参阅 System Center 2012 SP1 更新汇总 5 的说明。请注意,要解决此问题,您无需安装本文列出的所有更新,只需安装 KB2918659。

Add-in cannot be installed
The assembly "Amazon.Scvmm.Addin" referenced to by add-in component "Amazon Systems Manager for 
Microsoft SCVMM" could not be found in the add-in package. This could be due to the following 
reasons:
1. The assembly was not included with the add-in package.
2. The AssemblyName attribute for the add-in does not match the name of the add-in assembly.
3. The assembly file is corrupt and cannot be loaded.

安装错误

如果您在安装过程中收到以下错误之一,很可能是由于 SCVMM 存在问题:

Could not update managed code add-in pipeline due to the following error:
Access to the path 'C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager
\Bin\AddInPipeline\PipelineSegments.store' is denied.
Could not update managed code add-in pipeline due to the following error:
The required folder 'C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager
\Bin\AddInPipeline\HostSideAdapters' does not exist.
Add-in cannot be installed
The assembly "Microsoft.SystemCenter.VirtualMachineManager.UIAddIns.dll" referenced by the 
add-in assembly "Amazon.Scvmm.AddIn" could not be found in the add-in package. Make sure 
that this assembly was included with the add-in package.

尝试执行以下步骤之一以解决此问题:

  • 授予验证的用户读取和运行 C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\Bin\AddInPipeline 文件夹的权限。在 Windows 资源管理器中,右键单击该文件夹,选择 Properties,然后选择 Security 选项卡。

  • 关闭 SCVMM 控制台,并以管理员身份再次启动该控制台。从 Start (开始) 菜单中,找到 SCVMM 并右键单击,然后选择 Run as administrator (以管理员身份运行)

检查日志文件

如果您使用插件时遇到问题,可检查生成的日志文件 %APPDATA%\Amazon\SCVMM\ec2addin.log,以获取有用的信息。

导入虚拟机时出错

日志文件 %APPDATA%\Amazon\SCVMM\ec2addin.log 中包含有关导入任务的详细信息。将 VM 从 SCVMM 导入到 Amazon EC2 时,可能会在日志文件中看到以下常见错误。

错误:无法提取 Hyper-V VirtualMachine 对象

解决方案:配置 Hyper-V PowerShell 模块的路径。

错误:您没有执行操作的权限

当 Hyper-V 无法将虚拟机映像保存到已配置的路径中时,通常会出现此错误。要解决此问题,请执行以下操作。

  1. 在 Hyper-V 服务器上创建一个目录。例如:C:\vmimages。

  2. 共享刚才在 Hyper-V 中创建的目录。任何运行 SCVMM 的用户都应该有权访问该目录。

  3. 在插件中,将导出路径设为 \\hyperv\vmimages

  4. 执行导出。

映像将导出到 Hyper-V 服务器上的本地目录。SCVMM 插件将从 Hyper-V 中提取它并上传到 Amazon S3。

卸载插件

如果您需要卸载插件,请按照以下过程操作。

卸载插件
  1. 打开 VMM 控制台。

  2. 选择 Settings (设置) 工作区,然后单击 Console Add-Ins (控制台插件)

  3. 选择 Amazon Systems Manager for Microsoft SCVMM

  4. 在功能区中,单击 Remove (删除)

  5. 当系统提示进行确认时,单击 Yes

如果您在卸载插件后重新安装并收到以下错误,可删除错误消息中建议的路径。

Error (27301)
There was an error while installing the add-in. Please ensure that the following path does not 
exist and then try the installation again.
        
C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\Bin\AddInPipeline\
AddIns\EC2WINDOWS...