新增 Hyper-V 主機和叢集Update Hyper-V hosts and clusters

重要

已不再支援此版本的 Virtual Machine Manager (VMM),建議升級至 VMM 2019This version of Virtual Machine Manager (VMM) has reached the end of support, we recommend you to upgrade to VMM 2019.

請閱讀本文,以了解如何將 System Center Virtual Machine Manager (VMM) 網狀架構中的 Hyper-V 主機和叢集維持在最新狀態。Read this article to learn about keeping Hyper-V hosts and clusters updated in the System Center Virtual Machine Manager (VMM) fabric.

在您開始使用 Intune 之前Before you start

您需要在 VMM 光纖中設定更新 (WSUS 伺服器),以及設定更新基準。You'll need to set up an update (WSUS server) in the VMM fabric, and configure update baselines.

更新主機或叢集Update a host or cluster

  1. 在 [光纖] > [伺服器] > [顯示] > [相容性] 中,選取您想要更新的電腦。In Fabric > Servers > Show > Compliance, select the computers you want to update. 將會顯示電腦的所有基準。All the baselines for the computer will be shown. 電腦可能符合某些規範,但不符合其他規範。The computer could be compliant for some baselines and not for others.
  2. 按一下 [修復] 。Click Remediate. 如果選取的物件不相容,則只會看到這個選項。You'll only see this option if the selected objects aren't compliant.
  3. 在 [更新修復] 中,選取或清除更新基準或個別更新,以判斷要安裝的更新。In Update Remediation, select or clear update baselines or individual updates to determine which updates to install. 當您選取電腦時,一開始會選取所有更新。When you select a computer all updates are initially selected. 如果您是執行 Hyper-V 叢集,請注意:If you're running a Hyper-V cluster note that:
    • 若要更新所有叢集節點,請依叢集名稱選取主機叢集。To update all cluster nodes, select the host cluster by its cluster name.
    • 若要更新單一節點,請選取叢集中的個別主機。To update single nodes, select the individual hosts in the cluster. 具有這項設定,VMM 就不會顯示叢集修復選項,但會將每個節點視為獨立 HYPER-V 主機。With this setting VMM doesn't display cluster remediation options but treats each node as a standalone Hyper-V host.
  4. 如果您想要在修復完成後手動重新啟動電腦,請按一下 「Do not restart the servers after remediation」 (修復後不要重新啟動伺服器)。If you prefer to restart the computers manually after remediation completes, click Do not restart the servers after remediation. 如果有任何更新需要重新啟動電腦,則預設會重新啟動電腦。By default, the computer restarts if any updates require it. 如果您選擇不重新啟動需要重新啟動的更新,則電腦狀態在修復之後會是 [擱置機器重新啟動] 。If you choose not to restart and updates need it, the computer status will be Pending Machine Reboot after the remediation. 除非您重新啟動,否則不會啟用更新。The updates won't be activated until you restart. 具有此狀態,VMM 就不會在重新整理期間掃描電腦的相容性。With this status VMM won't scan the machines for compliance during refreshes.
  5. 如果您是執行叢集:If you're running a cluster:
    • 如果叢集節點已處於維護模式,請選取 [允許修復內含節點已進入維護模式的叢集] 。If cluster node is already in maintenance mode, select Allow remediation of clusters with nodes already in maintenance mode. 在維護模式中,VM 無法建立或移至主機。In maintenance mode VMs can't be created or moved to the host. 主機的分級為零,而且動態最佳化會予以排除。The host has a zero rating and is excluded from dynamic optimization.
    • 選取 [即時移轉] 從主機中移除虛擬機器,然後執行更新修復,以將它們維持在線上。Select Live migration to remove virtual machines from a host before performing update remediation so that they remain online. 如果您不需要將它們保存在線上,而且想要執行較快的更新,請按一下 [儲存狀態] 關閉虛擬機器,然後繼續進行修復。If you don't need to keep them online and want to perform a quicker update, click Save state to shut down virtual machines and proceed with remediation.
  6. 按一下 [修復] 開始更新。Click Remediate to start updating. 修復之後,如果沒有擱置的重新開機,則伺服器或叢集會顯示為 [相容] 。After remediation, if no reboot is pending the server or cluster will show as Compliant.

注意

若補救是透過選取主機來完成,S2D 叢集中的單一節點補救可能不會成功。Remediation of single node in a S2D cluster might not succeed if remediation is done by selecting the host. 我們建議您在叢集層級進行補救,然後為補救選取主機。We recommend you to remediate at cluster level and then select the hosts for remediation.

在 S2D 叢集中,一旦在節點上安裝更新,節點就會重新開機,而且會起始修復 (resync) 作業。In S2D cluster, once the update is installed on the node, the node is rebooted and repair (resync) operation is initiated. 若 resync 未在 600 分鐘 (預設值) 內完成,則更新作業會失敗。If the resync is not completed within 600 minutes (default value), the update job fails. 若要避免作業失敗,您可以在登錄機碼中變更等候時間。To avoid the job failure, you can change the wait time in the registry key.

  • resync 等候時間的最小值是 600 分鐘,而最大值是 2880 分鐘。Minimum value for the resync wait time is 600 minutes and the maximum value can be of 2880 minutes.

  • S2DResyncWaitTimeInMins 是您可以用來變更預設 Resync 等候時間的登錄機碼設定。S2DResyncWaitTimeInMins is the registry key setting that you can use to change the default Resync wait time.

  • 以下是該登錄機碼的路徑: Here is the path for the registry key:

    \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft System Center Virtual Machine Manager Server\Settings > RegistryKey\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft System Center Virtual Machine Manager Server\Settings > RegistryKey

後續步驟Next steps

了解 VMM 更新Learn about VMM updates