在 VMM 光纖中設定檔案存放裝置Set up file storage in the VMM 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) 存放網狀架構中,管理支援 SMB 3.0 的檔案存放裝置。You can manage file storage that supports SMB 3.0 in the System Center - Virtual Machine Manager (VMM) storage fabric. 這包括 Windows 檔案伺服器、向外延展檔案伺服器 (SOFS)、EMC 等協力廠商的網路連接儲存裝置 (NAS) 和 NetApp。This includes Windows file servers, scale-out file servers (SOFS), network-attached storage (NAS) devices from third-parties such as EMC, and NetApp.

本文說明如何將檔案存放裝置新增至 VMM 光纖。This article describes how to add file storage to the VMM fabric. 當檔案共用可在光纖中使用之後,您可以將其指派給 Hyper-V 主機和叢集。After file shares are available in the fabric, you can assign them to Hyper-V hosts and clusters.

將檔案共用新增至 VMM 光纖Add a file share to the VMM fabric

當您新增檔案伺服器時,VMM 會自動探索目前存在於伺服器上的所有共用。When you add a file server, VMM automatically discovers all the shares that are currently present on the server.

  1. 按一下 [光纖] > [存放裝置] > [新增資源] > [存放裝置] 。Click Fabric > Storage > Add Resources > Storage Devices.
  2. 在 [新增存放裝置精靈] > [選取提供者類型] 中,選取 [新增 Windows 檔案伺服器為受管理存放裝置] ,以在 VMM 主控台中管理單一或叢集檔案伺服器。In Add Storage Devices Wizard > Select Provider Type, select Add a Windows-based file server as managed storage device to manage a single or clustered file server in the VMM console.
  3. 在 [指定探索範圍] 中,指定檔案伺服器的的位址或名稱。In Specify Discovery Scope, specify the address or name of the file server. 如果檔案伺服器位於不受虛擬機器主機所在之網域信任的網域中,請選取 [此電腦位於不受信任的 Active Directory 網域] 。If the file server resides in a domain that isn't trusted by the domain in which the virtual machine hosts are located, select This computer is in an untrusted Active Directory domain. 選取可存取檔案伺服器的執行身分帳戶。Select a Run As account that can access the file server.
  4. 在 [收集資訊] 中,VMM 會自動嘗試探索並匯入檔案伺服器上的共用資訊。In Gather Information, VMM automatically tries to discover and import information about the shares on the file server. 如果探索程序成功,則會顯示檔案伺服器的相關資訊。If the discovery process succeeds, information about the file server is displayed. 當此程序完成時,按一下 [下一步] 。When the process finishes, click Next.
  5. 在 [選取存放裝置] 中,選取您要讓 VMM 管理的檔案共用。In Select Storage Devices, select the file shares that you want VMM to manage.
  6. 檢閱 [摘要] 中的設定,然後按一下 [完成] 。In Summary, review the settings and click Finish.

建立檔案共用Create a file share

您必須在檔案伺服器上建立檔案共用。You need to create a file share on the file server. 當您這樣做時,VMM 會自動指派權限。When you do this VMM assigns permissions automatically.

  1. 按一下 [光纖] > [存放裝置] > [提供者] 。Click Fabric > Storage > Providers.
  2. 選取檔案伺服器 > [建立檔案共用] 。Select the file server > Create File Share.
  3. 在 [建立檔案共用] 中,指定您要建立共用的路徑。In Create File Share, specify the path on which you want to create the share. 如果不存在,則 VMM 會加以建立。If it doesn't exist VMM will create it.

指派檔案共用Assign files shares

您可以在要建立 VM 以使用檔案共用作為存放裝置的任何主機上,指派檔案共用。You can assign file shares on any host on which you want to create VMs that will use the file share as storage.

  1. 按一下 [光纖] > [伺服器] > [所有主機] ,然後選取您要設定的主機或叢集節點。Click Fabric > Servers > All Hosts, and select the host or cluster node you want to configure.

  2. 在 [主機] > [內容] 中,按一下 [內容] > [主機存取] 。In Host > Properties, click Properties > Host Access. 指定執行身分帳戶。Specify a Run As account. 預設會列出用來將主機新增至 VMM 的執行身分帳戶。By default the Run As account that was used to add the host to VMM is listed. 在 [執行身分帳戶] 方塊中進行帳戶設定。In the Run As account box, configure the account settings. 您無法使用針對 VMM 服務帳戶所使用的帳戶。You can't use the account that you use for the VMM service.

    • 如果您使用網域帳戶作為 VMM 服務帳戶,請將網域帳戶新增至檔案伺服器上的本機系統管理員群組。If you used a domain account for the VMM service account, add the domain account to the local Administrators group on the file server.
    • 如果您使用本機系統帳戶作為 VMM 服務帳戶,請將 VMM 管理伺服器的電腦帳戶新增至檔案伺服器上的本機系統管理員群組。If you used the local system account for the VMM service account, add the computer account for the VMM management server to the local Administrators group on the file server. 例如,針對名為 VMMServer01 的 VMM 管理伺服器,新增電腦帳戶 VMMServer01$。For example, for a VMM management server that is named VMMServer01, add the computer account VMMServer01$.
    • 所有存取 SMB 3.0 檔案共用的主機或主機叢集都必須使用執行身分帳戶新增至 VMM。Any host or host cluster that accesses the SMB 3.0 file share must have been added to VMM using a Run As account. VMM 會自動使用此執行身分帳戶來存取 SMB 3.0 檔案共用。VMM automatically uses this Run As account to access the SMB 3.0 file share.
    • 如果您在新增主機或主機叢集時指定明確的使用者認證,您可以從 VMM 中移除主機或叢集,然後使用執行身分帳戶再次將它新增。If you specified explicit user credentials when you added a host or host cluster, you can remove the host or cluster from VMM, and then add it again by using a Run As account.
  3. 按一下 [主機名稱內容] > [存放裝置] > [新增檔案共用] 。Click Host Name Properties > Storage > Add File Share.

  4. 在 [檔案共用路徑] 中,選取所需的 SMB 3.0 檔案共用,然後按一下 [確定] 。In File share path, select the required SMB 3.0 file share, and then click OK. 若要確認主機具有存取權,請開啟 [作業] 工作區以檢視作業狀態。To confirm that the host has access, open the Jobs workspace to view the job status. 或者,再次開啟主機內容,然後按一下 [存放裝置] 索引標籤。在 [檔案共用] 下方,按一下 SMB 3.0 檔案共用。Or, open the host properties again, and then click the Storage tab. Under File Shares, click the SMB 3.0 file share. 確認 [存取共用檔案] 旁邊出現綠色的核取記號。Verify that a green check mark appears next to Access to file share.

  5. 針對您要存取 SMB 3.0 檔案共用的任何獨立主機,或針對叢集中的所有節點,重複此程序。Repeat this procedure for any standalone host that you want to access the SMB 3.0 file share, or for all nodes in a cluster.

後續步驟Next steps

在設定 HYPER-V 主機或叢集之後,請了解佈建 VMAfter you set up the Hyper-V host or cluster, learn about provisioning VMs.