維護 VMM 計算光纖中的主機和虛擬機器Service hosts and virtual machines in the VMM compute fabric

重要

已不再支援此版本的 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 service Hyper-V hosts and virtual machines in the System Center Virtual Machine Manager (VMM) fabric.

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

建議您將 HYPER-V 主機叢集中的主機保持在最新狀態,使其具有同樣的更新,以避免 VMM 作業發生問題。We recommend you keep hosts in a Hyper-V host cluster up-to-date with the same updates, to avoid VMM operations issues.

您可以透過下列方式來維護主機和 VM:You can service hosts and VMs by:

  • 設定服務視窗:服務視窗可提供排程 VMM 外部維護的方法。Setting up servicing windows: Servicing windows provide a method for scheduling servicing outside VMM. 您可以將服務視窗與個別主機、虛擬機器或服務建立關聯。You can associate a servicing window with individual hosts, virtual machines, or services. 在使用其他應用程式來排程維護工作之前,您可以使用 Windows PowerShell 指令碼或自訂應用程式來查詢物件,並判斷該物件目前是否在服務視窗中。Before using other applications to schedule maintenance tasks, you can use Windows PowerShell scripts or custom applications to query the object and determines if it is currently in a servicing window. 服務視窗不會干擾 VMM 的一般用途和功能。Servicing windows do not interfere with the regular use and functionality of VMM.
  • 將主機放置在維護模式中:您可以在需要對實體主機執行維護工作 (例如套用安全性更新或更換實體主機電腦的硬體) 時,隨時啟動虛擬機器主機的維護模式。Placing hosts in maintenance mode: You can start maintenance mode for a virtual machine host whenever you need to perform maintenance tasks on the physical host, such as applying security updates or replacing hardware on the physical host computer. 您可以將 VMM 光纖中的 Hyper-V 主機和 VMware ESX 主機放置在維護模式中。You can place Hyper-V hosts and VMware ESX hosts in the VMM fabric into maintenance mode. 請注意:Note that:
    • 當主機處於維護模式時,便會套用下列限制︰When a host is in maintenance mode, the following restrictions apply:
      • 無法在該主機上建立 VM。VMs can't be created on the host.
      • 無法將 VM 移至該主機。VMs can't be moved to the host.
      • 該主機具有零的分級,因此無法選取放置。The host has a zero rating and can't be selected for placement.
      • 動態最佳化時會排除該主機。The host is excluded from dynamic optimization.
    • 若是 ESX 主機,如果沒有設定 VMware 分散式資源排程器,則主機上的所有虛擬機器都必須手動關閉或是移到其他主機,才能在 ESX 主機上順利啟動維護模式。For ESX hosts, if the VMware Distributed Resources Scheduler is not configured, all virtual machines on the host must be either manually shut down or moved to another host to successfully start maintenance mode on an ESX host.
    • 如果您是使用 Operations Manager 監視,並啟用監視的維護模式,則 Operations Manager 代理程式會針對置於維護模式中的主機,隱藏其警示、通知、規則、監視、自動回應、狀態變更和新警示。If you're monitoring with Operations Manager and you have maintenance mode enabled for monitoring, the Operations Manager agent suppresses alerts, notifications, rules, monitors, automatic responses, state changes, and new alerts for hosts that are placed in maintenance mode.

設定服務視窗Set up a servicing window

  1. 在 VMM 主控台中,按一下 [設定] > [建立] > [建立服務視窗] 。In the VMM console, click Settings > Create > Create Servicing Window.
  2. 在 [新服務視窗] 中,指定視窗的名稱和選擇性描述。In New Servicing Window, specify a name and optional description for the window.
  3. 在 [類別] 中,輸入或選取服務視窗的類別。In Category, enter or select the category of servicing window.
  4. 在 [開始時間] 中,輸入維護視窗的日期、當日時間和時區。In Start time, enter the date, time of day, and time zone for the maintenance window.
  5. 在 [持續時間] 中,指定服務視窗的小時數或分鐘數。In Duration, specify the number of hours or minutes in the servicing window.
  6. 在 [定期模式] 下方,選取頻率 (每日、每週或每月),然後排程該頻率內的發生次數。Under Recurrence pattern, select the frequency (Daily, Weekly, or Monthly), and then schedule the occurrences within that frequency.
  7. 視窗設定之後,您即可將它指派給主機或 VM。After the window is set up, you can assign it to a host or VM. 若要指派給主機,請按一下主機內容 > [服務視窗] > [管理] ,選取您想要新增至主機的視窗。To assign to a host, click the host properties > Servicing Window > Manage, and select the window you want to add to the host.

將主機放置到維護模式中Put hosts in maintenance mode

  1. 在 VMM 主控台中,按一下 [光纖] > [光纖資源] > [伺服器] > [所有主機] 。In the VMM console, click Fabric > Fabric Resources > Servers > All Hosts.
  2. 選取要放置在維護模式中的主機,然後按一下 [主機] 群組中的 [啟動維護模式] 。Select the host to place in maintenance mode, and in the Host group click Start Maintenance Mode. 您可以進行下列選擇:You can select to:
    • 如果您想要將所有高可用性 VM 都移至叢集中其他主機 (必須位於能夠即時移轉的叢集中),可以選取 [將所有虛擬機器移到叢集中的其他主機] 。You can select Move all virtual machines to other hosts in the cluster if you want to move all highly available VMs to other hosts in the cluster (the host must be in a cluster that's capable of live migration)
    • 否則,請選取 [將所有執行中的虛擬機器置於儲存狀態] 。Otherwise, select Place all running virtual machines into a saved state. 請注意,如果使用者目前正在使用 VM,這將會導致服務中斷。Note that list causes a loss of service for users currently using the VM.
  3. 您可以檢查 [光纖] > [主機] 中的主機狀態,確認其是否處於維護模式。You can verify that host is in maintenance mode by checking its status in Fabric > Hosts.

若要讓主機退出維護節點,請選取該主機,然後按一下 [停止維護模式] 。To bring a host out of maintenance node, select it and click Stop Maintenance Mode. 請注意,VMM 不會自動重新啟動 VM,亦不會自動將 VM 移轉回主機。Note that VMM doesn't automatically restart the VM, and doesn't automatically migrate VMs back to the host.