快速入门:创建 Azure Stack HCI 群集并将其注册到 AzureQuickstart: Create an Azure Stack HCI cluster and register it with Azure

适用于:Azure Stack HCI,版本 20H2Applies to: Azure Stack HCI, version 20H2

在本快速入门中,你将了解如何部署两个服务器的单站点 Azure Stack HCI 群集并将其注册到 Azure。In this quickstart, you'll learn how to deploy a two-server, single-site Azure Stack HCI cluster and register it with Azure. 有关多站点部署,请参阅 延伸群集概述For multisite deployments, see Stretched clusters overview.

开始之前Before you start

创建群集之前,请执行以下操作:Before creating a cluster, do the following:

  • 通过预装了 Azure Stack HCI 操作系统的首选 Microsoft 硬件合作伙伴,从 AZURE STACK HCI 目录 中购买两个服务器。Purchase two servers from the Azure Stack HCI Catalog through your preferred Microsoft hardware partner with the Azure Stack HCI operating system pre-installed. 查看 系统要求 ,确保你选择的硬件支持你计划在群集上运行的工作负荷。Review the system requirements to make sure the hardware you select will support the workloads you plan to run on the cluster. 建议使用具有高速网络适配器的系统,该系统使用 iWARP 进行简单配置。We recommend using a system with high-speed network adapters that use iWARP for simple configuration.
  • 创建一个用户帐户,该帐户是每个服务器上的本地管理员组的成员。Create a user account that’s a member of the local Administrators group on each server.
  • 获取 Azure 订阅(如果还没有)。Get an Azure subscription, if you don't already have one.
  • 在管理 PC 上安装 Windows 管理中心,并向 Azure 注册 windows 管理中心Install Windows Admin Center on a management PC and register Windows Admin Center with Azure. 请注意,你的管理计算机必须加入到你要在其中创建群集的同一 Active Directory 域或完全受信任的域。Note that your management computer must be joined to the same Active Directory domain in which you'll create the cluster, or a fully trusted domain.
  • 记下你的部署的服务器名称、域名、IP 地址和 VLAN ID。Take note of the server names, domain names, IP addresses, and VLAN ID for your deployment.

创建群集Create the cluster

按照以下步骤创建一个简单的双节点单站点群集。Follow these steps to create a simple two-node, single-site cluster. 有关更多详细信息或要创建延伸群集的详细信息,请参阅 使用 Windows 管理中心创建 AZURE STACK HCI 群集For more details or to create a stretched cluster, see Create an Azure Stack HCI cluster using Windows Admin Center.

  1. 在 Windows Admin Center 中,在“所有连接”下单击“添加” 。In Windows Admin Center, under All connections, click Add.
  2. 在“添加资源”面板中,在“Windows Server 群集”下选择“新建”。 In the Add resources panel, under Windows Server cluster, select Create new.
  3. 在“选择群集类型”下,选择“Azure Stack HCI”。Under Choose cluster type, select Azure Stack HCI.
  4. 在 " 选择服务器位置" 下,选择 一个站点中的所有服务器Under Select server locations, select All servers in one site.
  5. 单击“创建”。Click Create. 现在,你将看到 "创建群集" 向导。You will now see the Create Cluster wizard. 如果显示 " 凭据安全服务提供程序 (CredSSP) 弹出窗口,请选择 " 是 " 以暂时启用它。If the Credential Security Service Provider (CredSSP) pop-up appears, select Yes to temporarily enable it.

创建群集向导有五个部分,每个部分都有多个步骤。The Create Cluster wizard has five sections, each with several steps.

  1. 入门。Get started. 在本部分中,你将检查先决条件,添加服务器,加入域,安装所需的功能和更新,然后重新启动服务器。In this section, you'll check the prerequisites, add servers, join a domain, install required features and updates, and restart the servers.
  2. 网络。Networking. 向导的此部分将验证是否启用了正确的网络适配器并禁用未使用的任何网络适配器。This section of the wizard verifies that the correct networking adapters are enabled and disables any you're not using. 你将选择管理适配器、设置虚拟交换机配置,并通过提供 IP 地址来定义你的网络。You'll select management adapters, set up a virtual switch configuration, and define your network by supplying IP addresses.
  3. 群集.Clustering. 本部分验证你的服务器是否具有一致的配置,适用于群集,并创建实际群集。This section validates that your servers have a consistent configuration and are suitable for clustering, and creates the actual cluster.
  4. 储存.Storage. 接下来,你将清理并检查驱动器、验证存储并启用存储空间直通。Next, you'll clean and check drives, validate your storage, and enable Storage Spaces Direct.
  5. SDN.SDN. 你可以跳过第5节,因为我们不会对此群集使用软件定义的网络 (SDN) 。You can skip Section 5 because we won't be using Software Defined Networking (SDN) for this cluster.

如果在向导中启用了 CredSSP 协议,则出于安全考虑,需要在每个服务器上禁用该协议。If you enabled the CredSSP protocol in the wizard, you'll want to disable it on each server for security purposes.

  1. 在 Windows Admin Center 中,在“所有连接”下选择刚创建的群集。In Windows Admin Center, under All connections, select the cluster you just created.
  2. 在“工具”下,选择“服务器”。Under Tools, select Servers.
  3. 在右窗格中,选择群集中的第一台服务器。In the right pane, select the first server in the cluster.
  4. 在“概览”下,选择“禁用 CredSSP”。Under Overview, select Disable CredSSP. 此时会看到顶部的红色“CredSSP 已启用”横幅消失。You will see that the red CredSSP ENABLED banner at the top disappears.
  5. 为群集中的第二个服务器重复步骤3和4。Repeat steps 3 and 4 for the second server in the cluster.

设置群集见证Set up a cluster witness

设置见证资源是必需的,因此,如果群集中的某个服务器进入脱机状态,则不会导致其他节点也无法使用。Setting up a witness resource is required so that if one of the servers in the cluster goes offline, it does not cause the other node to become unavailable as well. 对于本快速入门,我们将使用另一台服务器上的 SMB 文件共享作为见证服务器。For this quickstart, we'll use an SMB file share located on another server as a witness. 如果群集中的所有服务器节点都具有可靠的 internet 连接,则你可能更愿意使用 Azure 云见证。You may prefer to use an Azure cloud witness, provided all server nodes in the cluster have a reliable internet connection. 有关见证选项的详细信息,请参阅 设置分类见证For more information about witness options, see Set up a cluster witness.

  1. 在 Windows Admin Center 中,从顶部下拉箭头中选择“群集管理器”。In Windows Admin Center, select Cluster Manager from the top drop-down arrow.
  2. 在“群集连接”下,选择该群集。Under Cluster connections, select the cluster.
  3. 在“工具”下,选择“设置” 。Under Tools, select Settings.
  4. 在右窗格中,选择“见证”。In the right pane, select Witness.
  5. 对于 " 见证类型",请选择 " 文件共享见证"。For Witness type, select File share witness.
  6. 指定文件共享路径,例如 \ servername. com\Witness $ ,并根据需要提供凭据。Specify a file share path such as \servername.domain.com\Witness$ and supply credentials if needed.
  7. 单击“保存” 。Click Save.

注册到 AzureRegister with Azure

Azure Stack HCI 需要连接到 Azure,你将需要 Azure Active Directory 权限才能完成注册。Azure Stack HCI requires a connection to Azure, and you'll need Azure Active Directory permissions to complete the registration. 如果尚未安装,请要求 Azure AD 管理员授予权限或将其委派给你。If you don't already have them, ask your Azure AD administrator to either grant permissions or delegate them to you. 有关详细信息,请参阅 将 AZURE STACK HCI 连接到 AzureSee Connect Azure Stack HCI to Azure for more information. 注册后,群集会在后台自动进行连接。Once registered, the cluster connects automatically in the background.

后续步骤Next steps

本快速入门介绍了如何创建 Azure Stack HCI 群集并将其注册到 Azure。In this quickstart, you created an Azure Stack HCI cluster and registered it with Azure. 你现在已准备好 创建卷 ,然后 创建虚拟机You are now ready to Create volumes and then Create virtual machines.