本文介绍如何准备运行 Windows Server 2003 的计算机以迁移到 Azure。
注释
Windows Server 2003 扩展支持于 2015 年 7 月 14 日结束。 Azure 支持团队继续帮助解决与在 Azure 上运行 Windows Server 2003 相关的问题。 但是,此支持仅限于不需要 OS 级故障排除或修补程序的问题。 建议将应用程序迁移到运行较新版本 Windows Server 的 Azure 实例,以确保有效地利用 Azure 云的灵活性和可靠性。 但是,如果仍选择将 Windows Server 2003 迁移到 Azure,则可以使用 Azure Migrate:服务器迁移工具(如果 Windows Server 是 VMware 或 Hyper-V 上运行的 VM)。
注意
本文引用的 Windows Server 版本已达到支持终止(EOS)。Microsoft 已正式终止对以下操作系统的支持:
- Windows Server 2003
- Windows Server 2008(包括 SP2 和 R2 SP1)
- Windows Server 2012
- 由于此结果,Azure 迁移无法保证这些操作系统版本的一致性或可靠性。 客户可能会遇到问题,强烈建议在开始迁移之前升级到受支持的 Windows Server 版本。
- 可以使用无代理迁移 将Hyper-V VM 和 VMware VM 迁移到 Azure。
- 若要在迁移后连接到 Azure VM,必须在 Azure VM 上安装 Hyper-V Integration Services。 默认情况下,Windows Server 2003 计算机未安装此项。
- 没有用于安装 Hyper-V Integration Services 的直接下载链接,因此需要执行以下作:
- 对于未安装它的 Hyper-V VM,请在具有 Hyper-V 角色并运行 Windows Server 2012 R2/Windows Server 2012 的计算机上提取集成服务的安装文件,然后将安装程序复制到运行 Windows Server 2003 的计算机上。 安装文件在运行 Windows Server 2016 的计算机上不可用。
- 对于 VMware VM,创建一个启动任务,该任务会在迁移后 Azure VM 启动时安装 Integration Services。
在 Hyper-V VM 上安装
在迁移之前,请检查是否已安装 Hyper-V Integration Services,然后根据需要安装。
按照 以下说明 检查它是否已安装。
如果未安装,请使用 Hyper-V 角色登录到运行 Windows Server 2012 R2/Windows Server 2012 的计算机。
转到 C:\Windows\System32\vmguest.iso 的安装文件,并装载该文件。
将安装文件夹复制到 Windows Server 2003 计算机,并安装 Integration Services。
安装后,可以在 Integration Services 中保留默认设置。
在 VMware VM 上安装
使用 Hyper-V 角色登录到运行 Windows Server 2012 R2/Windows Server 2012 的计算机。
导航到 C:\Windows\System32\vmguest.iso 的安装文件,并装载该文件。
将安装文件夹复制到 VMware VM。
在 VM 上的命令行中,运行
gpedit.msc
。打开计算机配置>Windows 设置>脚本(启动/关闭)。
在 “启动>添加>脚本名称”中,键入 setup.exe 地址。
迁移到 Azure 后,该脚本会在首次启动 Azure VM 时运行。
手动重启 Azure VM。 启动诊断中有一个弹出窗口,指示需要重启。
运行脚本并在 Azure VM 上安装 Hyper-V Integration Services 后,可以从启动中删除该脚本。
安装后,可以在 Integration Services 中保留默认设置。