對適用於 Microsoft SCVMM 的 AWS Systems Manager 進行故障診斷
下列是常見的錯誤和故障診斷步驟。
錯誤:無法安裝增益集
如果出現下列錯誤,請嘗試在執行 VMM 主控台的電腦上安裝 KB2918659
Add-in cannot be installed The assembly "Amazon.Scvmm.Addin" referenced to by add-in component "AWS 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 無法將 VM 映像儲存至設定路徑時。要解決此問題,請依下列步驟執行。
在 Hyper-V 伺服器上建立一個目錄。例如:C:\vmimages。
共用您剛剛在 Hyper-V 中建立的目錄。應向執行 SCVMM 的任何使用者提供該目錄的存取權。
在外掛程式中,設定匯出路徑為
\\hyperv\vmimages
。執行匯出。
映像將匯出到 Hyper-V 伺服器上的本機目錄。SCVMM 外掛程式會從 Hyper-V 提取映像,並上傳至 Amazon S3。
解除安裝增益集
如果需要解除安裝增益集,請使用下列程序。
解除安裝增益集
-
開啟 VMM 主控台。
-
選擇 Settings (設定) 工作空間,然後按一下 Console Add-Ins (主控台增益集)。
-
選取 AWS Systems Manager for Microsoft SCVMM。
-
在功能區中,按一下 Remove (移除)。
-
出現確認提示時,請按一下 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...