
2.7 重新配置 VMware 虚拟机
在转换虚拟机后,可能需要对其进行配置,使其可在目标虚拟环境中启动。如果虚拟机的虚拟环境改变或您需要提升虚拟机性能,也可能需要配置虚拟机。
【说明】只能配置运行 Windows XP 或更高版本的虚拟机(如 Windows 7、Windows Server 2003、Windows Server 2008),不能配置运行 Windows 以外的其他操作系统的虚拟机(例如Linux)。
转换过程对源计算机而言为无损操作,与此不同的是,配置过程会对源计算机产生影响。创建配置作业时,所做的设置将应用于配置源计算机,并且将无法恢复。
2.7.1 保存sysprep 文件到vCenter Server 中
要自定义运行Windows Server 2003或Windows XP 的虚拟机的客户机操作系统,必须将Sysprep 文件保存到运行Converter Standalone 服务器的计算机上的指定位置,其默认位置 为 “ %ALLUSERSPROFILE%\Application Data\VMware\VMware vCenter Converter Standalone\sysprep\”。
【说明】在Windows XP、Windows Server 2003 中,%ALLUSERSPROFILE%默认路径为“C:\Documents and Settings”;在Windows Vista及其以后的系统,%ALLUSERSPROFILE%默认路径为“C:\ProgramData”。
2.7.2 启动配置向导
VMware vCenter Converter Standalone可以配置 VMware Desktop 虚拟机或者由 ESX 主机或 vCenter Server 管理的虚拟机。物理机不能作为配置源,只能配置已关闭的虚拟机。
(1)运行VMware vCenter Converter Standalone,单击“配置计算机”按钮,如图2-177所示。

图2-177 配置计算机
(2)在“源系统”对话框的“选择源类型”对话框中,选择要重新配置的源,这可以选择VMware 架构虚拟机或VMware Workstation 虚拟机,或者其他虚拟机。如果要配置的系统是在 ESX 主机上运行或在由 vCenter Server 管理的 ESX 主机上运行的虚拟机,则必须选择VMware Infrastructure 虚拟机作为源类型。进行配置之前,请关闭源计算机。在此选择“VMware Infrastructure 虚拟机”,输入vCenter Server的IP 地址、管理账户及密码,如图2-178所示。

图2-178 指定服务器连接信息
(3)在“源计算机”对话框中,选择要重新配置的虚拟机,如图2-179所示。

图2-179 选择重新配置的虚拟机
(4)在“选项”对话框中,自定义重新配置项,如图2-180所示。

图2-180 选项
(5)在“摘要”对话框,显示了重新配置参数,如图2-181所示。

图2-181 摘要
(6)之后Converter开始配置虚拟机,如图2-182所示。

图2-182 开始配置虚拟机