以自助使用者身分使用 VMMWork with VMM as a self-service user

重要

已不再支援此版本的 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)。This article describes how to work with System Center - Virtual Machine Manager (VMM) as a self-service user.

自助使用者可以與 VMM 互動,以將虛擬機器和服務部署至私人雲端。Self-service users can interact with VMM to deploy virtual machines and services to private clouds. 根據您的權限,您可以從 VHD 和範本部署 VM,以及建立和共用您自己的範本和設定檔。Depending on your permissions, you can deploy VMs from VHDs and templates, and create and share your own templates and profiles. 您可以使用 VMM 主控台 (或 PowerShell) 與 VMM 互動。You interact with VMM using the VMM console (or PowerShell).

建立和部署虛擬機器Create and deploy virtual machines

在 VMM 程式庫中建立資源Create resources in the VMM library

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.

如果您具有 [作者] 權限,則可以在程式庫中建立範本和設定檔。If you have Author permissions you can create templates and profiles in the library. 進一步瞭解Learn more.

共用程式庫資源Share library resources

您身為自助使用者,可以在符合下列條件時,與自助使用者角色的其他成員共用程式庫資源︰As a self-service user you can share your library resources with other members of your self-service user role when the following conditions are met:

  • 您必須是資源擁有者。You must be the resource owner.
  • 您必須屬於已指派 [共用] 動作的自助使用者角色。You must belong to self-service user role that has been assigned the Share action.
  • 若要使用共用資源,使用者必須屬於已指派 [接收] 動作的自助使用者角色。To use the shared resource, the user must belong to a self-service user role that has been assigned the Receive action.

共用資源,如下所示︰Share resources as follows:

  1. 按一下 [程式庫] ,然後以滑鼠右鍵按一下您想要共用的範本或實體資源 > [內容] 。Click Library, right-click the template or physical resource that you want to share > Properties.
  2. 在 [存取] > [使用者] 中,按一下 [新增] 。In Access > Users, click Add.
  3. 在 [選取使用者] 的 [使用者] 中,與您角色的其他成員共用資源。In Select Users, in User, share the resource with another member of your role. 在 [使用者角色] 中,與其他自助使用者角色共用資源。In User Role, share the resource with other self-service user roles.

匯入程式庫資源Import library resources

建議您使用此程序中所述的方法,從 VMM 程式庫匯入和匯出檔案型資源。We recommend you use the method described in this procedure to import and export file-based resources to and from the VMM library. 請注意下列事項:Note the following:

  • 在程式庫的 [自助使用者內容] 節點中,您可以將資源匯入至使用者角色資料路徑。You can import resource to the user role data path in the Self Service User Content node in the library.
  • 您可以從使用者角色資料路徑或私人雲端程式庫匯出資源。You can export resources from your user role data path, or private cloud library.
  • 若要匯入和匯出自助使用者角色,則需要 [作者] 權限。To import and export your self-service user role needs Author permissions.

匯入資源,如下所示︰Import resources as follows:

  1. 按一下 [程式庫] > [匯入] > [匯入實體資源] 。Click Library > Import > Import Physical Resource.

  2. 按一下 [新增自訂資源] 匯入副檔名為 .CR 的資料夾和其內容。Click Add custom resource to import a folder with the .CR extension and its contents. 或者,您可以選取副檔名不是 .CR 且包含所支援檔案類型之一或多個檔案的資料夾。Alternatively, you can select a folder without a .CR extension that contains one or more files of a supported file type.

    • 如果您選取副檔名不是 .CR 的資料夾,則只有所支援檔案類型的檔案才會出現在 VMM 程式庫中。If you select a folder without a .CR extension, only the files of a supported file type will appear in the VMM library.
    • 不過,如果您使用 Windows 檔案總管來存取程式庫共用,則可以根據在 VMM 外部設定的檔案和共用權限,來存取資料夾中的所有檔案。However, if you use Windows Explorer to access the library share, you can access all files in the folder depending on the file and share permissions that are configured outside VMM.
    • 如果副檔名為 .CR 的資料夾包含要匯入的檔案超過一百個,建議您先壓縮檔案,再進行匯入。If the folder with .CR extension contains more than one hundred file to be imported, it is recommended that you zip the files before the import. 這將會提高效能。This will improve performance.
  3. 按一下 [新增資源] ,將一或多個檔案匯入至另一個程式庫位置。Click Add resource to import one or more files to another library location.

  4. 完成後,請按一下 [匯入] 。When you are finished, click Import. 檢查資源列在 [自助使用者內容] > 使用者角色資料路徑> [自助使用者物件] 。Check that the resources are listed Self Service User Content > user role data path > Self Service User Objects.

匯出程式庫資源Export library resources

  1. 按一下 [程式庫] > [匯出] > [匯出實體資源] 。Click Library > Export > Export Physical Resource.
  2. 按一下 [新增] ,然後選取您想要匯出的實體資源。Click Add and select the physical resources you want to export. 然後按一下 [確定]。 Then click OK.
  3. 在 [請指定匯出檔案的目的地] 中,按一下 [瀏覽] ,然後選取目的地資料夾。In Specify a destination for the export files, click Browse and select a destination folder. 然後按一下 [確定]。 Then click OK.
  4. 完成後,請按一下 [匯出] 。When you're finished, click Export.

後續步驟Next steps

佈建 VMProvision VMs