在 VMM 光纖中從現有的虛擬硬碟部署 VMDeploy VMs in the VMM fabric from an existing virtual hard disk

重要

已不再支援此版本的 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.

本文說明如何透過現有的虛擬硬碟 (VHD) 在 System Center - Virtual Machine Manager (VMM) 網狀架構中建立和部署虛擬機器。This article describes how to create and deploy virtual machines in the System Center - Virtual Machine Manager (VMM) fabric, from an existing virtual hard disk (VHD).

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

  • 您必須是 VMM 伺服器上的系統管理員或委派系統管理員,或是自助使用者,才能完成這些步驟。To complete the steps you must be an Administrator or Delegated Administrator on the VMM server, or a self-service user.
  • 如果您是自助使用者,您需要 [部署] 權限並指派 [存放並重新部署] 動作。If you're a self-service user you need Deploy permissions with the Store and re-deploy action assigned. 您必須先將 VM 部署至私人雲端,再將它存放至程式庫。You must first deploy the VM to a private cloud, and then store it in the library.
  • 您想要使用的 VHD 必須存放至 VMM 程式庫。The VHD you want to use must be stored in the VMM library. 深入了解Learn more
  • 使用已透過 Sysprep 一般化的 VHD。Use a VHD that has been generalized using Sysprep. 如果您未這樣做,已複製 VM 的識別會與來源 VM 相同;如果一起開啟,就可能會發生問題。If you don't the identity of the cloned VM will be the same as the source VM, and issues might occur if you turn them on together.

建立 VMCreate a VM

  1. 按一下 [VM 和服務] > [建立虛擬機器] > [建立虛擬機器] 。Click VMs and Services > Create Virtual Machine > Create Virtual Machine.

  2. 在 [建立虛擬機器精靈] > [選取來源] 中,按一下 [使用現有虛擬機器、VM 範本或虛擬硬碟] > [瀏覽] 。In Create Virtual Machine Wizard > Select Source, click Use an existing virtual machine, VM template, or virtual hard disk > Browse. 選取現有的 VHD。Select an existing VHD.

  3. 在 [身分識別] 中,指定 VM 的名稱和選擇性描述。In Identity, specify the VM name and an optional description. 如果您選擇的 VHD 使用 .vhdx 格式,請在 [世代] 方塊中,選取 [第 1 代] 或 [第 2 代] 。If the VHD you choose is in the .vhdx format, in the Generation box, select Generation 1 or Generation 2. 然後按 [下一步] 。Then click Next.

  4. 在 [設定硬體] 中,從 [硬體設定檔] 清單選取您要使用的設定檔,或手動進行硬體設定。In Configure Hardware, either select the profile that you want to use from the Hardware profile list, or configure the hardware settings manually. 所顯示的硬體設定會因您部署的是第 1 代或第 2 代機器而有所不同。The hardware setting displayed will differ depending on whether you're deploying a generation 1 or generation 2 machine. 然後按 [下一步] 。Then click Next.

    • 在 [相容性] 中,如果您想要將虛擬機器部署到私人雲端,請選取可供私人雲端使用的功能設定檔。In Compatibility, if you want to deploy the virtual machine to a private cloud, select a capability profile that is available to the private cloud.

    • 在 [匯流排組態] 中,如果您想要從 DVD 或 .iso 映像安裝作業系統,請確定設定了虛擬 DVD 光碟機來使用 [現有的 ISO 映像檔] 選項等可用選項。In Bus Configuration, if you want to install an operating system from a DVD or an .iso image, ensure there is a virtual DVD drive that is configured to use an available option such as the Existing ISO image file option. 如果您想要使用 ISO 映像檔,該檔案必須存在於 VMM 程式庫。If you want to use an ISO image file, the file must be present in the VMM library.

    • 如果您想要將虛擬機器部署至 VMM 程式庫,再將它部署至主機,請使用 VMM 程式庫預設提供的其中一個空白虛擬硬碟。If you want to store the virtual machine in the VMM library before you deploy it to a host, use of one of the blank virtual hard disks that are provided by default in the VMM library. 按一下 [匯流排組態] 中的 VHD。Click the VHD in Bus Configuration. 按一下 [使用現有的虛擬硬碟] > [瀏覽] ,然後選取一個空白硬碟。Click Use an existing virtual hard disk > Browse and select a blank hard disk

    • 如果虛擬機器是從網路開機以安裝作業系統的第 1 代,請在 [網路介面卡] 中,使用傳統網路介面卡類型。If the virtual machine is a generation 1 that boots from the network to install an operating system, in Network Adapters, use the legacy network adapter type.

  5. 在 [選取目的地] 頁面中,指定虛擬機器的部署方式 - 在私人雲端中、在主機上或存放至程式庫。In Select Destination page, specify how the virtual machine should be deployed - in a private cloud, on a host, or stored in the library.

在私人雲端中部署 VMDeploy the VM in a private cloud

  1. 在 [選取雲端] 中,選取您要放置虛擬機器的私人雲端。In Select Cloud select the private cloud on which you want to place the virtual machine. 如果您是以系統管理員身分來連接,您可以選取要將虛擬機器部署在私人雲端中的主機。If you are connected as an Administrator, you can select the host on which the virtual machine should be deployed in the private cloud. 雲端建議是根據 0-5 星級評等。Cloud suggestions are based on a 0-5 star rating. 進一步瞭解Learn more. 請確認設定,並視需要修改:Verify the settings and modify if required:

    • 預期的使用率:從空白 VHD 建立 VM 的預期使用率是根據標準預設值。Expected utilization: Expected utilization for a VM created from a blank VHD is based on standard defaults. VMM 會更新主機建議和分級,以回應對預期虛擬機器使用率所做的修改。VMM updates host suggestions and ratings in response to modifications made to the expected virtual machine utilization.
    • 讓此 VM 成為高可用性:若選取此選項,就只能選取位於叢集中的主機。Make this VM highly available: With this option selected, only hosts that are located in a cluster are available for selection.
    • 詳細資料:指出主機的狀態、作業系統,以及虛擬化軟體的類型和狀態。Details: Indicates the status of the host, the operating system, and the type and status of the virtualization software.
    • 分級說明:當主機獲得零評等時提供說明。Rating Explanation: Provides an explanation if a host received a zero rating.
    • SAN 說明部署與傳輸說明:列出任何停用存放區域網路 (SAN) 傳輸的因素。SAN Explanation or Deployment and Transfer Explanation: Lists any factors that make a storage area network (SAN) transfer unavailable. 如果虛擬機器在建立時直接存放至資源庫,或在資源庫重新整理期間新增到資源庫,則 VMM 無法將存放至 SAN 的虛擬機器辨識為可使用 SAN 轉移進行部署。VMM does not recognize a virtual machine that is stored on a SAN as available for deployment by using SAN transfer if the virtual machine was stored directly in the library when it was created or was added to the library during a library refresh. 若要避免這個問題,請使用 LAN 轉移,將虛擬機器部署至主機,然後將虛擬機器存放至相同的 VMM 資源庫、資源庫共用和邏輯單元編號 (LUN)。To avoid this issue, deploy the virtual machine to a host by using a LAN transfer, and then store the virtual machine in the same VMM library, library share, and logical unit number (LUN).
    • 如果無法使用快速檔案複製,[部署與傳輸說明] 索引標籤會提供說明。The Deployment and Transfer Explanation tab provides an explanation if fast file copy cannot be used. 快速檔案複製採用 Windows Offloaded Data Transfers (ODX)。Fast file copy is based on the Windows Offloaded Data Transfers (ODX). 進一步瞭解Learn more.
  2. 在 [設定設定值] 中,檢閱 VM 設定。In Configure Settings, review the VM settings. 接受主機上的預設 VM 路徑,或指定其他位置。Either accept the default VM path on the host or specify a different location. 您可以選擇性地選擇 [新增此路徑至主機上的預設虛擬機器路徑清單] 。you can optionally select to Add this path to the list of default virtual machine paths on the host. 接受 [機器資源] 中的 VHD 預設值,或視需要加以修改。In Machine Resources accept the default values for the VHD, or modify as required. 若要防止放置時選擇各自的值,請按一下設定旁邊的釘選圖示。To prevent placement from choosing its own values, click the pin icon next to the setting. 自助使用者無法使用此選項。This option isn't available for self-service users.

  3. 在 [選取網路] 中 (如有出現),選擇性地選取網路設定,然後按一下 [下一步] 。In Select Networks, if it appears, optionally select the network settings, and click Next.

  4. 在 [新增內容] 中,設定當主機啟動或停止時,所要採取的動作,以及您要安裝在 VM 上的作業系統。In Add Properties, configure the action to take when the host starts or stops, and the operating system that you will install on the VM. 然後按一下 [下一步] 。Then click Next.

  5. 確認 [摘要] 中的設定,然後按一下 [建立] 。In Summary, confirm the settings, and click Create. 確認 [VM 和服務] > [雲端] 中已建立 VM,然後選取雲端。Confirm that the VM was created in VMs and Services > Clouds, and select the cloud. 虛擬機器會出現在 [VM] 窗格中。The virtual machine appears in the VMs pane.

在主機上部署 VMDeploy the VM on a host

  1. 在 [選取主機] 中檢視分級,按一下您要部署 VM 的主機,然後按一下 [下一步] 。In Select Host, view the ratings, click the host on which you want to deploy the VM, and click Next. 主機建議是根據 0-5 星級評等。The host suggestions are based on a 0-5 star rating. 進一步瞭解Learn more. 請確認設定,並視需要修改:Verify the settings and modify if required:

    • 預期的使用率:從空白 VHD 建立 VM 的預期使用率是根據標準預設值。Expected utilization: Expected utilization for a VM created from a blank VHD is based on standard defaults. VMM 會更新主機建議和分級,以回應對預期虛擬機器使用率所做的修改。VMM updates host suggestions and ratings in response to modifications made to the expected virtual machine utilization.
    • 讓此 VM 成為高可用性:若選取此選項,就只能選取位於叢集中的主機。Make this VM highly available: With this option selected, only hosts that are located in a cluster are available for selection.
    • 詳細資料:指出主機的狀態、作業系統,以及虛擬化軟體的類型和狀態。Details: Indicates the status of the host, the operating system, and the type and status of the virtualization software.
    • 分級說明:當主機獲得零評等時提供說明。Rating Explanation: Provides an explanation if a host received a zero rating.
    • SAN 說明部署與傳輸說明:列出任何停用存放區域網路 (SAN) 傳輸的因素。SAN Explanation or Deployment and Transfer Explanation: Lists any factors that make a storage area network (SAN) transfer unavailable. 如果虛擬機器在建立時直接存放至資源庫,或在資源庫重新整理期間新增到資源庫,則 VMM 無法將存放至 SAN 的虛擬機器辨識為可使用 SAN 轉移進行部署。VMM does not recognize a virtual machine that is stored on a SAN as available for deployment by using SAN transfer if the virtual machine was stored directly in the library when it was created or was added to the library during a library refresh. 若要避免這個問題,請使用 LAN 轉移,將虛擬機器部署至主機,然後將虛擬機器存放至相同的 VMM 資源庫、資源庫共用和邏輯單元編號 (LUN)。To avoid this issue, deploy the virtual machine to a host by using a LAN transfer, and then store the virtual machine in the same VMM library, library share, and logical unit number (LUN).
    • 如果無法使用快速檔案複製,[部署與傳輸說明] 索引標籤會提供說明。The Deployment and Transfer Explanation tab provides an explanation if fast file copy cannot be used. 快速檔案複製採用 Windows Offloaded Data Transfers (ODX)。Fast file copy is based on the Windows Offloaded Data Transfers (ODX). 進一步瞭解Learn more.
  2. 在 [設定設定值] 中,檢閱 VM 設定。In Configure Settings, review the VM settings. 接受主機上的預設 VM 路徑,或指定其他位置。Either accept the default VM path on the host or specify a different location. 您可以選擇性地選擇 [新增此路徑至主機上的預設虛擬機器路徑清單] 。you can optionally select to Add this path to the list of default virtual machine paths on the host. 接受 [機器資源] 中的 VHD 預設值,或視需要加以修改。In Machine Resources accept the default values for the VHD, or modify as required. 若要防止放置時選擇各自的值,請按一下設定旁邊的釘選圖示。To prevent placement from choosing its own values, click the pin icon next to the setting. 自助使用者無法使用此選項。This option isn't available for self-service users.

  3. 在 [選取網路] 中 (如有出現),選擇性地選取網路設定,然後按一下 [下一步] 。In Select Networks, if it appears, optionally select the network settings, and click Next.

  4. 在 [新增內容] 中,設定當主機啟動或停止時,所要採取的動作,以及您要安裝在 VM 上的作業系統。In Add Properties, configure the action to take when the host starts or stops, and the operating system that you will install on the VM. 然後按一下 [下一步] 。Then click Next.

  5. 確認 [摘要] 中的設定,然後按一下 [建立] 。In Summary, confirm the settings, and then click Create.

將 VM 存放至資源庫Store the VM in the library

  1. 在 [選取程式庫伺服器] 中,按一下您要使用的資源庫伺服器,然後按一下 [下一步] 。In Select Library Server, click the library server that you want to use, and then click Next.
  2. 在 [選取路徑] 中,指定要用來存放虛擬機器的資源庫共用位置。In Select Path, specify the library share location to store the virtual machine. 按一下 [瀏覽] 選取資源庫共用和選擇性的資料夾位置,按一下 [確定] ,然後按一下 [下一步] 。Click Browse to select a library share and an optional folder location, click OK, and then click Next.
  3. 確認 [摘要] 中的設定,然後按一下 [建立] 。In Summary confirm the settings, and then click Create.
  4. 若要確認已建立虛擬機器,請在 [程式庫] 工作區的 [程式庫] 窗格中,展開 [程式庫伺服器] ,展開您存放虛擬機器的程式庫伺服器,然後按一下 [預存虛擬機器和服務] 。To confirm that the virtual machine was created, in the Library workspace, in the Library pane, expand Library Servers, expand the library server where you stored the virtual machine, and then click Stored Virtual Machines and Services. 預存的虛擬機器會出現在 [實體程式庫物件] 窗格中。The stored virtual machine appears in the Physical Library Objects pane.

後續步驟Next steps