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

Enable event-based refresher mode for VMM hosts

· 52CE 我爱测

Describes a new, event-based triggering system for host refresh in Virtual Machine Manager.

This article describes a new, event-based triggering system for host refresh in Virtual Machine Manager.

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

Summary

Microsoft System Center 2012 Virtual Machine Manager Service Pack 1 (SP1) and later versions of Virtual Machine Manager enable a new, event-based triggering system for host refresh. This system replaces previous, push-based modes that were based on intervals that were specified in the registry. Generally, we recommend this new mode because it improves consistency and makes sure that there is less change data about which the Virtual Machine Manager server must be notified.

Update host computers

In some cases, the refresher mode may not be automatically set on Virtual Machine Manager hosts. To update host computers, run the following Windows PowerShell commands:

Get a list of refresher mode settings for each host

Get-SCVMHost | Sort-Object -Property Name | select @{Name="HostName";Expression={$_.Name}},@{Name="RefresherMode";Expression={$_.GetRefresherMode()}}

This mode will be either Legacy or EventBased

Get-SCVMHost | Where-Object -FilterScript {$_.GetRefresherMode() -eq "Legacy"} | ForEach-Object -Process { Read-SCVirtualMachine -VMHost $_ }

Add a registry key

Be aware that, after you install System Center 2012 R2 Update Rollup 6 (SC 2012 R2 UR6), you must make an additional change in order to enable the correct refreshing of virtual machines across hosts. If you are using System Center 2012 R2 Update Rollup 6 or a later version, you must add the following registry values on the Virtual Machine Manager server:

Registry location: HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft System Center Virtual Machine Manager Server\Settings
Registry key: VMPropertiesEventAssitedUpdateInterval
Registry type: DWORD
Min value: 0 seconds
Max value: 20 days

Note: The values for VMPropertiesEventAssitedUpdateInterval must be specified in seconds.

You can add this registry key manually or use the following sample PowerShell script:

New-ItemProperty 'HKLM:\software\microsoft\Microsoft System Center Virtual Machine Manager Server\Settings' -Name VMPropertiesEventAssitedUpdateInterval -Value 120 -PropertyType "DWord" -Force

You can also change the light refresher interval by editing the VMPropertiesUpdateInterval registry value. The default interval is 2 minutes (120 seconds).

For more information, see the following Microsoft Knowledge Base article:

3050317 Update Rollup 6 for System Center 2012 R2 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)

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

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