System Center 1801+ Virtual Machine Manager VM State

Microsoft.SystemCenter.VirtualMachineManager.VMStateMonitor (UnitMonitor)

監視虛擬機器的光纖相關狀態

Knowledge Base article:

摘要

VM Health Event 監視會追蹤下列虛擬機器狀態:

健全狀況狀態

虛擬機器狀態

紅色 (重大/錯誤)

建立失敗

自訂失敗

P2V 建立失敗

V2V 建立失敗

移轉失敗

主機沒有回應

遺失

不支援

IncompleteVMConfig

原因

重大/錯誤健全狀況狀態 (紅色):

虛擬機器狀態

可能的原因

建立失敗

虛擬機器未順利建立。若要找出作業中的哪個步驟失敗,請在 VMM 主控台的 [作業] 檢視中檢視作業詳細資料。作業失敗錯誤碼可提供作業失敗的原因。如需詳細資訊,請參閱 VMM 1801+ 說明中的<在 VMM 中監控工作>(https://technet.microsoft.com/library/cc956042.aspx)。

檢視虛擬機器狀態的疑難排解,網址為 http://go.microsoft.com/fwlink/?LinkId=268228。

可能的原因包括:

主機或程式庫伺服器上的磁碟空間不足。

主機或程式庫伺服器上的記憶體不足。

VMM 管理伺服器與主機或程式庫伺服器之間的通訊失敗。

建立虛擬機器所需的物件已在使用中,而且被另一個程序鎖定。

未在主機上設定虛擬機器的網路介面卡連接的虛擬網路。

虛擬機器上的虛擬 DVD 設成連接到不在主機上的磁碟機。

主機上的資源使用量短時間內突然增加,因為正在主機上建立或部署多部虛擬機器,而導致更新失敗。

自訂失敗

當自訂因為等候虛擬機器開機 (開始自訂時) 或關機 (自訂後) 時逾時而失敗的話,就可能發生。

可能的原因包括:

為虛擬機器指定了不正確的作業系統版本。

自訂的 unattend.xml 具有無效的項目。

虛擬機器因為資源不足 (例如記憶體或 CPU) 而花太長時間開機或關機。

加入網域時發生問題,例如密碼無效或網路連線問題。

產品金鑰無效。

如需其他疑難排解資訊,請查看 %systemdrive%\Windows\Panther\ 中的記錄檔。檢視虛擬機器狀態的疑難排解,網址為 http://go.microsoft.com/fwlink/?LinkId=121829。

移轉失敗

虛擬機器在從某個主機移轉至另一個主機,或從主機移轉至程式庫伺服器時失敗。

可能的原因包括:

主機上的磁碟空間不足。

主機上的記憶體不足。

目的主機已有同名的虛擬機器。

主機上的資源使用量短時間內突然增加,因為正在主機上建立或部署多部虛擬機器。

進行自動放置 (虛擬機器自助或以拖放方式放置) 期間,未在主機的慣用磁碟區上設定任何預設虛擬機器路徑。

SAN 轉移失敗,因為來源或目的電腦上發生虛擬磁碟服務 (VDS) 錯誤。此失敗可能是由暫時性 VDS 錯誤造成。

目的伺服器上已啟用 Windows 防火牆,但沒有為 BITS 通訊埠新增任何防火牆例外。

虛擬機器的 Virtual Server 執行身分帳戶沒有網路認證。

檢視虛擬機器狀態的疑難排解,網址為 http://go.microsoft.com/fwlink/?LinkId=121829。

遺失

Virtual Machine Manager 找不到虛擬機器。

可能的原因包括:

虛擬機器的主機位於伺服器叢集中,但虛擬機器容錯移轉至其他主機。如果虛擬機器目前的主機現在已由 VMM 管理,虛擬機器會在下次重新整理之後恢復正常狀態。

主機上的 Virtual Machine Manager 代理程式與 Virtual Server 服務沒有足夠的權限。兩種服務均必須具有虛擬機器的完整存取權。

系統管理員將虛擬機器的組態檔手動移到其他主機,卻未登錄或更新 Hyper-V 或 Virtual Server 中的虛擬機器。

系統管理員以手動方式在程式庫共用內移動預存虛擬機器的組態檔,或是移到其他程式庫共用,卻未重新整理 VMM 中的來源與目的程式庫共用。因此 VMM 資料庫中的虛擬機器路徑並未更新。

虛擬機器組態檔 (.vmc) 已損毀。

已從 Hyper-V、Virtual Server 或 VMware ESX Server 刪除虛擬機器,卻未從 VMM 移除虛擬機器。

檢視虛擬機器狀態的疑難排解,網址為 http://go.microsoft.com/fwlink/?LinkId=121829。

不支援

虛擬機器有在 Virtual Server 中建立但不支援的復原磁碟。您必須捨棄或合併該復原磁碟,才能在 VMM 中管理虛擬機器。

若要解決此問題,請在 VMM 主控台的 [虛擬機器] 檢視中使用 [停用復原磁碟] 動作。如需詳細資訊,請參閱 VMM 2008 R2 說明中的<如何停用虛擬機器的復原磁碟>(http://go.microsoft.com/fwlink/?LinkId=121821)。

檢視虛擬機器狀態的疑難排解,網址為 http://go.microsoft.com/fwlink/?LinkId=121829。

解決方式

解決造成此監視的重大或警告健全狀況狀態的方式,完全取決於發生的錯誤或作業失敗。

如需虛擬機器的每個重大與警告狀態的詳細疑難排解資訊,請參閱 VMM TechNet Library 中的下列主題 (http://go.microsoft.com/fwlink/?LinkId=102009):

Troubleshooting Virtual Machine Statuses (疑難排解虛擬機器狀態) (http://go.microsoft.com/fwlink/?LinkId=121829)

Troubleshooting “Not Responding” Status for a Virtual Machine Host (疑難排解虛擬機器主機「沒有回應」狀態) (http://go.microsoft.com/fwlink/?LinkId=121830)

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.VirtualMachine
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.VirtualMachineManager.VMStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
VMM 狀態狀況不良
虛擬機器狀態為 {0},不佳
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.VirtualMachineManager.VMStateMonitor" Accessibility="Public" Target="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VirtualMachine" TypeID="Microsoft.SystemCenter.VirtualMachineManager.VMStateMonitorType" ParentMonitorID="SystemHealth!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.VirtualMachineManager.VMStateMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VirtualMachine"]/State$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="VMStateHealthy" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="VMStateCritical" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>300</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<PropertyValue>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VirtualMachine"]/State$</PropertyValue>
<FailedValue>Failed</FailedValue>
<MissingValue>NotApplicable</MissingValue>
<PausedValue>Paused</PausedValue>
<UnsupportedClusterPattern>Unsupported</UnsupportedClusterPattern>
<NotRespondingPattern>NotResponding</NotRespondingPattern>
<IncompletePattern>NotApplicable</IncompletePattern>
<ExcludedState1>CustomizationFailed</ExcludedState1>
<ExcludedState2>UpdateFailed</ExcludedState2>
</Configuration>
</UnitMonitor>