將檔案型資源新增至 VMM 資源庫Add file-based resources to the VMM library

重要

已不再支援此版本的 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) 程式庫之後,如果想要將檔案型資源新增至程式庫,並將程式庫中的物件標示為對應,請使用本文。After you've set up the System Center - Virtual Machine Manager (VMM) library, use this article if you want to add file-based resources to the library, and mark objects in the library as equivalent.

您可以如下方式,將檔案型資源新增至資源庫:You can add file-based resources to the library as follows:

  • 將檔案複製到 VMM 主控台中的共用Copy files to the share in the VMM console
  • 在資源庫共用之間匯入和匯出檔案型資源Import and export file-based resources between library shares
  • 從 VMM 主控台外部將檔案複製到資源庫共用Copy files to the library share from outside the VMM console

注意

Sysprep 虛擬硬碟,然後將其新增到 VMM 程式庫 深入了解.Sysprep the virtual hard disk and then add it to the VMM library Learn more.

將檔案複製到 VMM 主控台中的共用Copy files to the share in the VMM console

  1. 移至 [資源庫] > [資源庫伺服器] 。Go to Library > Library Servers.
  2. 以滑鼠右鍵按一下資源庫共用 > [瀏覽] 。Right-click a library share > Explore.
  3. 將檔案複製到共用。Copy files to the share.

在資源庫之間匯入和匯出檔案Import and export files between libraries

  1. 按一下 [資源庫] > [匯入實體資源] 。Click Library > Import Physical Resource.
  2. 選取是否要匯入資源或自訂資源、選取目的地資源庫伺服器、共用,以及選擇性的資料夾。Select whether to import a resource or custom resources, select the destination library server, share, and optionally a folder. 按一下 [確定] > [匯入] 。Click OK > Import. 在 [資源庫伺服器] > 目標位置 > [實體資源庫物件] 中確認匯入。Verify the import in Library Servers > target location > Physical Library Objects.
  3. 若要匯出,按一下 [匯出實體資源] 。To export click Export Physical Resource.
  4. 以滑鼠右鍵按一下資源庫共用 > [瀏覽] 。Right-click a library share > Explore. 選取要匯出的資源 (選取並按住 SHIFT 鍵,即可選取多個),然後按一下 [確定] 。Select the resources you want to export (Select and hold the SHIFT key for multiple) and click OK. 選取目的地資料夾,然後按一下 [確定] > [匯出] 。Select a destination folder and click OK > Export.
  5. 將檔案複製到共用。Copy files to the share.

將物件標示為對應Mark objects as equivalent

您可以將資源庫資源群組在一起,以便將其視為對應。You can group library resources together so they're considered equivalent. 接著,當您建立和設定檔並指向資源庫共用上的特定虛擬磁碟時,VMM 可以在建立 VM 或服務時取代任何對應的物件。Then when you create templates and profiles and point to a specific virtual disk on a library share, VMM can substitute any equivalent object when a VM or service is created. 這表示您不需要依賴特定實體資源就可以撰寫範本和設定檔,而且可以服務資源,而不影響範本和設定檔可用性。This means you can author templates and profiles without relying on specific physical resources, and resources can be serviced without affecting template and profile availability.

VMM 支援將虛擬磁碟、.iso 映像和自訂資源作為對應的物件。VMM supports virtual disks, .iso images, and custom resources as equivalent objects. 對應的資源必須是相同的檔案類型。Equivalent resources must be the same file type.

您必須是系統管理員、委派的系統管理員或自助使用者,才能將物件標示為對應。You'll need to be an admin, delegated admin, or self-service user to mark objects as equivalent. 委派的系統管理員可以在其範圍內的資源庫共用上進行標示。Delegated admins can mark on library shares within their scope. 自助使用者可以在其使用者角色資料路徑中標示物件。Self-service users can marks objects in their user role data path.

  1. 按一下 [資源庫] > [資源庫伺服器] 。Click Library > Library servers.
  2. 針對系統管理員或委派的系統管理員,[資源庫伺服器] 欄會指出每個資源的位置。For admins and delegated admins the Library Server column indicates the location of each resource. 自助使用者應該展開 [自助使用者內容] > [類型] 以排序資源庫資源。Self-services users should expand Self Service User Content > Type to sort library resources.
  3. 以滑鼠右鍵按一下資源 > [標示為對應] 。Right-click the resources > Mark Equivalent.
  4. 在 [對應的資源庫物件] 中,輸入系列名稱和版本值以建立新的對應集合,或按一下系列名稱以新增至現有的集合。In Equivalent Library Objects, type the family name and release value to create a new equivalent set, or click a family name to add to an existing set. 物件必須具有要對應的相同系列名稱、版本值與命名空間 (由 VMM 自動指派)。Objects must have the same family name, release value, and namespace (automatically assigned by VMM) to be equivalent.

後續步驟Next steps

深入了解如何將設定檔新增至 VMM 資源庫。Learn about adding profiles to the VMM library.