設定 VMM 計算光纖中的程式庫Set up the library 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) 程式庫,以及如何與其互動。Read this article to understand the System Center - Virtual Machine Manager (VMM) library and how you interact with it.

VMM 程式庫是一個檔案共用,內含用來在 VMM 光纖中部署虛擬機器和服務的資源目錄。The VMM library is a file share that includes a catalog of resources that are used to deploy virtual machines and services in the VMM fabric. 此程式庫會儲存:The library stores:

  • 檔案型資源,例如虛擬硬碟、ISO 映像、指令碼、驅動程式檔案和應用程式套件 (SQL Server 資料層應用程式和 Web Deploy)。File-based resources such as virtual hard disks, ISO images, and scripts, driver files and application packages (SQL Server data-tier applications and Web Deploy).
  • 非檔案型資源,例如用來建立 VM 和服務的虛擬機器範本和服務範本。Non-file-based resources such as virtual machine templates and service templates that are used to create VMs and services.
  • 離線虛擬機器儲存在程式庫中。Offline virtual machines are stored in the library.

當您安裝 VMM 時,預設會在 VMM 管理伺服器上建立單一程式庫共用。When you install VMM by default a single library share is created on the VMM management server. 您可以新增其他共用。You can add additional shares. 您可以部署檔案伺服器的容錯移轉叢集,以取得高可用性。For high availability you can deploy a failover cluster of file servers. 不支援向外延展檔案伺服器 (SOFS)。Scale out file server (SOFS) isn't supported. 您可以使用 VMM 主控台中的 [程式庫] 檢視,以與程式庫和程式庫資源互動。You interact with libraries and library resources using the Library view in the VMM console.

可以在程式庫中執行什麼作業?What can I do in the library?

資源類型Resource type 可以新增什麼項目?What can I add?
檔案型資源File-based resources 虛擬硬碟 (.vhd/.vhdx/.vmdk)、ISO 映像檔 (.iso) PowerShell 指令碼 (.ps1)、SQL Server 指令碼 (.sql)、Web Deploy (MSDeploy) 套件 (.zip)、SQL Server 資料層應用程式 - DACS (.dacpac)、Server App-V 套件 (.osd)、驅動程式檔案 (.inf)、回應檔案 (.inf、xml)、虛擬磁碟 (.vfd/.flp)Virtual hard disks (.vhd/.vhdx/.vmdk), ISO image files (.iso) PowerShell scripts (.ps1), SQL Server scripts (.sql), Web Deploy (MSDeploy) packages (.zip), SQL Server data-tier apps - DACS (.dacpac), Server App-V packages (.osd), driver files (.inf), answer files (.inf, xml), virtual floppy disks (.vfd/.flp)
範本和設定檔Templates and profiles 範本可協助您利用一致的設定,快速建立 VM 和服務。Templates help you to quickly create VMs and services with consistent settings. 您可以建立並新增具有特定範本設定的設定檔。You create and add profiles with specific settings to templates.

VM 範本會用來建立單一 VM。VM templates are used to create a single VM. 您可以從現有的虛擬硬碟、程式庫中的另一個 VM 範本或主機上已部署的 VM 來建立範本。A template can be created from an existing virtual hard disk, another VM template in the library, or from a VM deployed on a host.

服務範本是用來建立多個 VM,而且可以包括 Windows Server 角色和功能的設定。Service templates are used to create multiple VMs and can include settings for Windows Server roles and features. 除了使用硬體和客體作業系統設定檔之外,服務範本還可以利用應用程式和 SQL Server 設定檔。In addition to using hardware and guest OS profiles service templates can leverage application and SQL Server profiles.

硬體設定檔定義硬體設定,例如主機上的 CPU、記憶體、進行資源配置之 VM 的優先順序。Hardware profiles define hardware settings such as CPU, memory, priority of VM for resource allocation on host.

客體作業系統設定檔定義將在從範本建立 VM 時套用的作業系統設定。Guest OS profiles define operating system settings that will be applied when a VM is created from a template.

應用程式設定檔提供安裝應用程式所需的指示。Application profiles provide instructions required to install an app. VMM 支援使用這些機制來進行應用程式部署 - 資料層應用程式 (DAC) 和 WebDeploy (MSDeploy),即執行針對 Windows Installer (.msi)、setup.exe、Windows PowerShell 期望狀態組態 (DSC)、Puppet 和 Chef 建立的指令碼。VMM supports these mechanisms for app deployment - data-tier apps (DAC) and WebDeploy (MSDeploy), running a script created for Windows installer (.msi), setup.exe, Windows PowerShell Desired State Configuration (DSC), Puppet, and Chef.

SQL Server 設定檔提供針對 SQL Server DAC 自訂 SQL Server 執行個體的指示。SQL Server profiles provide instructions for customizing a SQL Server instance for a SQL Server DAC.
對等物件Equivalent objects 對應的物件是由使用者定義的一組視為對應的程式庫資源。Equivalent objects are user-defined groupings of library resources that are considered equivalent. 將物件標示為對應項目之後,當您在範本或設定檔中指向程式庫共用上的特定虛擬磁碟時,VMM 可以在建立 VM 或服務時取代任何對應的物件。After you've marked objects as equivalent, when you point to a specific virtual disk on a library share in a template or profile, 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 the availability of templates and profiles. VMM 支援將虛擬磁碟、.iso 映像和自訂資源作為對應的物件。VMM supports virtual disks, .iso images, and custom resources as equivalent objects.
雲端程式庫Cloud libraries 指派給私人雲端的唯讀程式庫共用,以及具有適當權限之自助使用者可以儲存 VM 和服務的預存節點。Read-only library shares that are assigned to a private cloud and a stored node where self-service users with appropriate permissions can store VMs and services. 您可以將資源新增至雲端程式庫,讓它們可以用於私人雲端使用者。You can add resources to cloud libraries to make them available for private cloud users.
自助使用者內容Self-service user content 自助使用者可以上傳他們可在撰寫範本時使用的專屬資源。Self-service users can upload their own resources which can be used when they author templates. 使用者可以與其他自助使用者共用資源。Users can share resources with other self-service users.
預存的 VM 和服務Stored VMs and services 使用者可以將未使用的 VM 儲存至雲端程式庫的預存節點中。Users can store their VMs that aren't in use in the stored node of the cloud library.
更新類別目錄和基準Update catalog and baselines 如果您透過 VMM 管理更新,則 WSUS 更新基準會儲存在程式庫中。If you manage updates through VMM then WSUS update baselines are stored in the library.
自訂資源Custom resources 新增自訂資源,因此不會編製索引的資源會顯示在程式庫中。Add custom resources so that resources that would otherwise not be indexed show up in the library. 若要這樣做,您可以建立副檔名為 .CR 的資料夾,並將它儲存至程式庫共用。To do this you create a folder with a .CR extension and save it to a library share. 所有可存取共用的使用者都可以使用資料夾內容。Folder contents are available to all users who can access the share. 自訂資源的範例包括前置與後置執行指令碼,以及自訂安裝套件。Examples for custom resources include pre and post-execution scripts, and custom installation packages.
管理已複寫的程式庫共用Manage replicated library shares 您可以管理已複寫的程式庫伺服器。You can manage library servers, which are replicated. 您可以使用任何複寫技術 (例如 DFSR) 來透過 VMM 管理已複寫的共用。You can use any replication technologies such as DFSR to manage the replicated shares through VMM.

後續步驟Next steps

了解如何將檔案型資源新增至程式庫。Learn about adding file-based resources to the library.