准备 ASDK 主机Prepare the ASDK host computer

在主计算机上安装 Azure Stack 开发工具包 (ASDK) 之前,必须先准备好用于安装的 ASDK 主机。Before you can install the Azure Stack Development Kit (ASDK) on the host computer, the ASDK host must be prepared for installation. 准备好主机后,它将从 CloudBuilder.vhdx 虚拟机 (VM) 硬盘驱动器启动,以开始 ASDK 部署。When the host has been prepared, it will boot from the CloudBuilder.vhdx virtual machine (VM) hard drive to begin ASDK deployment.

准备开发工具包主机Prepare the development kit host computer

在主机上安装 ASDK 之前,必须先准备 ASDK 主机环境。Before you can install the ASDK on the host computer, the ASDK host computer environment must be prepared. 若要准备该环境,请执行以下步骤:To prepare that environment, follow these steps:

  1. 以本地管理员身份登录到 ASDK 主计算机。Sign in as a local admin to your ASDK host computer.

  2. 确保已将 CloudBuilder.vhdx 文件移到 C:\ 驱动器的根目录 (C:\CloudBuilder.vhdx)。Ensure that the CloudBuilder.vhdx file has been moved to the root of the C:\ drive (C:\CloudBuilder.vhdx).

  3. 运行以下脚本,将 ASDK 安装程序文件 (asdk-installer.ps1) 从 Azure Stack GitHub 工具存储库下载到 ASDK 主计算机上的 C:\AzureStack_Installer 文件夹:Run the following script to download the ASDK installer file (asdk-installer.ps1) from the Azure Stack GitHub tools repository to the C:\AzureStack_Installer folder on your ASDK host computer:

    重要

    每次安装 ASDK 时,请务必下载 asdk-installer.ps1 文件。Be sure to download the asdk-installer.ps1 file each time you install the ASDK. 此脚本经常发生更改,应该为每个 ASDK 部署使用最新版本。Frequent changes are made to this script and the most current version should be used for each ASDK deployment. 旧版本的脚本可能无法与最新版本一起使用。Older versions of the script might not work with the most current release.

    # Variables
    $Uri = 'https://raw.githubusercontent.com/Azure/AzureStack-Tools/master/Deployment/asdk-installer.ps1'
    $LocalPath = 'C:\AzureStack_Installer'
    # Create folder
    New-Item $LocalPath -Type directory
    # Enforce usage of TLSv1.2 to download from GitHub
    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
    # Download file
    Invoke-WebRequest $uri -OutFile ($LocalPath + '\' + 'asdk-installer.ps1')
    
  4. 从提升了权限的 PowerShell 控制台启动 C:\AzureStack_Installer\asdk-installer.ps1 脚本,然后单击“准备环境”。 From an elevated PowerShell console, start the C:\AzureStack_Installer\asdk-installer.ps1 script, and then click Prepare Environment.

    在 ASDK 中准备环境

  5. 在安装程序的“选择 Cloudbuilder vhdx”页上浏览到 cloudbuilder.vhdx 文件并将其选中,该文件是在前述步骤中下载并提取的。 On the Select Cloudbuilder vhdx page of the installer, browse to and select the cloudbuilder.vhdx file that you downloaded and extracted in the previous steps. 在此页上,如果需要向 ASDK 工具包主计算机添加其他驱动程序,还可以启用“添加驱动程序” 复选框。On this page, you can also enable the Add drivers check box if you need to add additional drivers to the ASDK kit host computer. 单击“下一步” 。Click Next.

    选择 cloudbuilder.vhdx 并将驱动程序添加到 ASDK

  6. 在“可选设置” 页上,提供 ASDK 主计算机的本地管理员帐户信息,然后单击“下一步” 。On the Optional settings page, provide the local admin account info for the ASDK host computer and then click Next.

    如果在此步骤中未提供本地管理员凭据,则在设置 ASDK 过程中重启计算机后,需要直接访问或通过 KVM 访问主机。If you don't provide the local admin credentials in this step, you'll need direct or KVM access to the host after the computer restarts as part of setting up the ASDK.

    ASDK 中的可选设置 - 提供本地管理员帐户信息

    还可以提供以下可选设置的值:You can also provide values for the following optional settings:

    • 计算机名:此选项设置 ASDK 主机的名称。Computername: This option sets the name for the ASDK host. 名称必须符合 FQDN 要求,且长度不得超过 15 个字符。The name must comply with FQDN requirements and must be 15 characters or less in length. 默认值是由 Windows 生成的随机计算机名称。The default is a random computer name generated by Windows.

      • 选择网络适配器。Select a network adapter. 确保可以连接到该适配器,然后单击“下一步” 。Make sure you can connect to the adapter before you click Next.

        网络适配器设置的屏幕截图

      • 请确保显示的 IP 地址网关DNS 值正确,提供有效的时间服务器 IP 地址,然后单击“下一步” 。Make sure that the displayed IP address, Gateway, and DNS values are correct, provide a valid Time server IP address, and then click Next.

        提示

        若要查找时间服务器 IP 地址,请访问 ntppool.org 或 ping time.windows.com。To find a time server IP address, visit ntppool.org or ping time.windows.com.

        IP 配置设置的屏幕截图

  7. 单击“下一步” ,启动准备过程。Click Next to start the preparation process.

  8. 但准备过程指示“已完成”时, 单击“下一步” 。When the preparation indicates Completed, click Next.

    在 ASDK 中准备环境

  9. 单击“立即重新启动”, 将 ASDK 主计算机启动到 cloudbuilder.vhdx 中,然后继续部署过程Click Reboot now to boot the ASDK host computer into the cloudbuilder.vhdx and continue the deployment process.

    重新启动 ASDK

后续步骤Next steps

安装 ASDKInstall the ASDK